diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-07-03 07:44:36 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-07-03 07:44:36 +0200 |
commit | 94553c90bc7de234cdafd7d7206ef35b05b593d0 (patch) | |
tree | 142b893b23393dfaf5c5e34825d2252b7d9d5e03 | |
parent | mail-client/mailx-support: add ${EPREFIX} to emake prefix (diff) | |
download | gentoo-94553c90bc7de234cdafd7d7206ef35b05b593d0.tar.gz gentoo-94553c90bc7de234cdafd7d7206ef35b05b593d0.tar.bz2 gentoo-94553c90bc7de234cdafd7d7206ef35b05b593d0.zip |
dev-ruby/ammeter: add ruby22
Package-Manager: portage-2.2.28
-rw-r--r-- | dev-ruby/ammeter/ammeter-1.1.3-r1.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-ruby/ammeter/ammeter-1.1.3-r1.ebuild b/dev-ruby/ammeter/ammeter-1.1.3-r1.ebuild new file mode 100644 index 000000000000..9611c04bc61a --- /dev/null +++ b/dev-ruby/ammeter/ammeter-1.1.3-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby20 ruby21 ruby22" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Write specs for your Rails 3+ generators" +HOMEPAGE="https://github.com/alexrothenberg/ammeter" +LICENSE="MIT" + +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +# Restrict tests since they now require the specific rspec version to be +# provided in an environment variable. +#RESTRICT="test" + +ruby_add_rdepend " + >=dev-ruby/activesupport-3.0:* + >=dev-ruby/railties-3.0:* + >=dev-ruby/rspec-rails-2.2:* +" + +ruby_add_bdepend " + test? ( + >=dev-ruby/rails-4.0 + >=dev-ruby/uglifier-1.3 + >=dev-ruby/rake-0.10 + >=dev-ruby/coffee-rails-4.0 + >=dev-ruby/sass-rails-4.0 + >=dev-ruby/jquery-rails-3.0 + dev-util/cucumber + dev-util/aruba + dev-ruby/sqlite3 + dev-ruby/bundler + )" + +all_ruby_prepare() { + # fix the gemspec; we remove the version dependencies from there, as + # it requires _older_ versions of its dependencies.. it doesn't + # really seem to be the case though. Also remove the references to + # git ls-files to avoid calling it. + sed -i \ + -e '/git ls-files/d' \ + -e '/\(cucumber\|aruba\)/s:,.*$::' \ + ${RUBY_FAKEGEM_GEMSPEC} || die + + # haml-rails is not packaged + sed -i -e '/haml-rails/d' ${RUBY_FAKEGEM_GEMSPEC} Gemfile || die + rm -f spec/ammeter/rspec/generator/matchers/have_correct_syntax_spec.rb || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec ${RUBY} -S rspec-3 spec || die +} |