dev-util/cucumber-rails: add 2.0.0
authorHans de Graaff <graaff@gentoo.org>
Mon, 9 Mar 2020 06:32:26 +0000 (07:32 +0100)
committerHans de Graaff <graaff@gentoo.org>
Mon, 9 Mar 2020 06:32:26 +0000 (07:32 +0100)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
dev-util/cucumber-rails/Manifest
dev-util/cucumber-rails/cucumber-rails-2.0.0.ebuild [new file with mode: 0644]

index 2461e6213664d46de50dcb160c29a31413896277..a472770350509a9d921b9fbd04f4d02e70cd099d 100644 (file)
@@ -1,2 +1,3 @@
 DIST cucumber-rails-1.7.0.gem 411648 BLAKE2B 09f6e79384869e0d901cb7dda607f2db29b0a924cd57fac56f88e5a90ef5f79348246e91195ecb437ae88e2e5f3f2e17bbfc651b8ff6e01cfc92cc86c544b5be SHA512 05f91606ebfd5db6608120b7057c767efaccee1dfb2eb99113e9cc6f55e594bd4181f54c8a38780b451bf7dc53862180e80a3c62a81ee8b1ea6aaf54682599c2
 DIST cucumber-rails-1.8.0.gem 43008 BLAKE2B ac2fbc89ea952add031429b281986de37b3a8511e398b34d49435c70221b3c454589c51acd5b1fcecdf0285a8e446d4c2c0e0a77216eb78f8fa222086fb6db36 SHA512 757f50719309418353cf1e6b42902ce6166806d2e2a9cd1a27842ffde3d8ce61af97de12f4ffa9e31a50693cc8c40ece9a74e5ec91973096e77860b56034d439
+DIST cucumber-rails-2.0.0.gem 41984 BLAKE2B e6dd46d1957478ede25ff226d7423d54fa6aa187f398483815fd9504b23308aca01d5336b62eca152e5384fbf23328d0cd1cd6d1200cd61dc4319508353a7b59 SHA512 d48472b4c6694c612a46ade99fa20add1ee1699cbcd14ddb91c0dcadab25c0f4c18c2f22f713ed8a00dcf765d583d4f46b7e9c99b0f94f0521296e3e4846ed95
diff --git a/dev-util/cucumber-rails/cucumber-rails-2.0.0.ebuild b/dev-util/cucumber-rails/cucumber-rails-2.0.0.ebuild
new file mode 100644 (file)
index 0000000..b66d33c
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby24 ruby25 ruby26"
+
+# There are also cucumber features. They require a Rails project with
+# factory girl which we don't have packaged yet.
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="cucumber-rails.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Executable feature scenarios for Rails"
+HOMEPAGE="https://github.com/cucumber/cucumber/wikis"
+LICENSE="Ruby"
+
+KEYWORDS="~amd64"
+SLOT="$(ver_cut 1)"
+IUSE=""
+
+# Restrict tests since Appraisal is now mandatory to manage different
+# rails versions, even for the specs.
+RESTRICT="test"
+#ruby_add_bdepend "
+#      test? (
+#              >=dev-ruby/ammeter-0.2.2
+#              >=dev-ruby/rspec-rails-2.7.0:2
+#      )"
+
+ruby_add_rdepend "
+       >=dev-util/cucumber-3.0.2 <dev-util/cucumber-4
+       >=dev-ruby/nokogiri-1.8
+       >=dev-ruby/capybara-2.12:* <dev-ruby/capybara-4:*
+       >=dev-ruby/railties-4.2:* <dev-ruby/railties-7:*
+       >=dev-ruby/mime-types-2.0:* <dev-ruby/mime-types-4:*"
+
+all_ruby_prepare() {
+       rm Gemfile || die
+       sed -i -e '/[Bb]undler/d' Rakefile || die
+       sed -i -e '/git ls/d' ${RUBY_FAKEGEM_GEMSPEC} || die
+}