diff options
Diffstat (limited to 'dev-ruby/ruby-beautify/ruby-beautify-0.97.4.ebuild')
-rw-r--r-- | dev-ruby/ruby-beautify/ruby-beautify-0.97.4.ebuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-ruby/ruby-beautify/ruby-beautify-0.97.4.ebuild b/dev-ruby/ruby-beautify/ruby-beautify-0.97.4.ebuild new file mode 100644 index 000000000000..2621bd49560f --- /dev/null +++ b/dev-ruby/ruby-beautify/ruby-beautify-0.97.4.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" + +RUBY_FAKEGEM_EXTRADOC="README.md WHATSNEW.md" +RUBY_FAKEGEM_RECIPE_DOC="rdoc" + +inherit ruby-fakegem + +DESCRIPTION="a cli tool (and module) to beautify ruby code" +HOMEPAGE="https://github.com/erniebrodeur/ruby-beautify" +LICENSE="MIT" + +KEYWORDS="~alpha amd64 arm hppa ia64 ppc ppc64 ~sparc x86" +SLOT="0" +IUSE="" + +all_ruby_prepare() { + sed -i -e '/codeclimate/I s:^:#:' spec/spec_helper.rb || die +} + +each_ruby_prepare() { + # Needed for specs + mkdir tmp || die + + # Use correct ruby interpreter to test and avoid bundler. Handle + # directory changes. + sed -i -e 's|bundle exec|'${RUBY}' -Ilib:../lib -S|' spec/bin/ruby-beautify_spec.rb || die +} |