From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-ruby/ammeter/Manifest | 3 ++ dev-ruby/ammeter/ammeter-1.1.4-r1.ebuild | 65 ++++++++++++++++++++++++++++++++ dev-ruby/ammeter/metadata.xml | 11 ++++++ 3 files changed, 79 insertions(+) create mode 100644 dev-ruby/ammeter/Manifest create mode 100644 dev-ruby/ammeter/ammeter-1.1.4-r1.ebuild create mode 100644 dev-ruby/ammeter/metadata.xml (limited to 'dev-ruby/ammeter') diff --git a/dev-ruby/ammeter/Manifest b/dev-ruby/ammeter/Manifest new file mode 100644 index 000000000000..0621acb69a47 --- /dev/null +++ b/dev-ruby/ammeter/Manifest @@ -0,0 +1,3 @@ +DIST ammeter-1.1.4.gem 19968 BLAKE2B dbc773e4db83d820e5ef1c6ae3af2e65f87ff1a10a09759c66a4dad87cd175e5e8af857435b6df6cb93167869d31fb1f43dcf220e063db03d048aa8926c7daaf SHA512 57d24c67be85fe34ded8feda045771974be7cdd828780a82ff0b2f6b52d0b35b48c2eb7e59dae70700fba676242918ef6463448090d7729d49db0f05f04b0131 +EBUILD ammeter-1.1.4-r1.ebuild 1599 BLAKE2B 2e0b618ab5c7f549dd5d13e116b947349e57b0c6076a2af2a44035b567a796c826854b4268d074325ff71db357a207ab344a14cf23aa9da1b60b17f361ef1538 SHA512 7d85cccbb8d0649954122aa4b99c9b60502e93a3215a53373bed9319cff3c8bac2727db4ed5636ddf8448be9f19df72a96e89effb65f7fcf34d0b1528dca5b75 +MISC metadata.xml 348 BLAKE2B 1eae86b63a0e04b8b5e8d8d9438b102b029a919af6fdb0cf2319b11a3c50ee282a255dedd7bad0bc3098ea8d1c0c05e17a5d98b382fa454feebbd304b18d3f57 SHA512 f81eb53098c1d67a4d5cfe32c9b3aace294cb90788775c639e189cf3932ef8101466d9a1541ceada391ebdacfedf926d9549f4591b42efd6c391e5fe6b0e72f1 diff --git a/dev-ruby/ammeter/ammeter-1.1.4-r1.ebuild b/dev-ruby/ammeter/ammeter-1.1.4-r1.ebuild new file mode 100644 index 000000000000..c27bb706e506 --- /dev/null +++ b/dev-ruby/ammeter/ammeter-1.1.4-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby22 ruby23 ruby24" + +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 +} diff --git a/dev-ruby/ammeter/metadata.xml b/dev-ruby/ammeter/metadata.xml new file mode 100644 index 000000000000..767fba165fb2 --- /dev/null +++ b/dev-ruby/ammeter/metadata.xml @@ -0,0 +1,11 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + + alexrothenberg/ammeter + + -- cgit v1.2.3