diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-11-03 08:55:29 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-11-03 08:55:29 +0100 |
commit | f6eb405d1d3909e6701f21defd203f9028caa00c (patch) | |
tree | 729f561e26c970966dfc1b07496ad0e99d2de86e | |
parent | dev-ruby/redcloth: add 4.3.3 (diff) | |
download | gentoo-f6eb405d1d3909e6701f21defd203f9028caa00c.tar.gz gentoo-f6eb405d1d3909e6701f21defd203f9028caa00c.tar.bz2 gentoo-f6eb405d1d3909e6701f21defd203f9028caa00c.zip |
dev-util/cucumber-rails: add 3.0.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r-- | dev-util/cucumber-rails/Manifest | 1 | ||||
-rw-r--r-- | dev-util/cucumber-rails/cucumber-rails-3.0.0.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-util/cucumber-rails/Manifest b/dev-util/cucumber-rails/Manifest index ebea8d9f896a..ed55fc51accb 100644 --- a/dev-util/cucumber-rails/Manifest +++ b/dev-util/cucumber-rails/Manifest @@ -1 +1,2 @@ DIST cucumber-rails-2.6.1.tar.gz 43079 BLAKE2B c45211c8a2375fc2b488d22fb74041e5dcf56027d6644721b5023b8ad9e68f07593c448acb88b7c0e51dcad7da0213d48726e20175ecd5fd04f16174e44b848a SHA512 dd2ed4afecf74e8aac0fa360d81a27407df999b041b21c597e9ac141422cb0ece89eaa74d8da9a4fc2858efaf242837d8237a9ceee44875cff2c50d288fad480 +DIST cucumber-rails-3.0.0.tar.gz 37102 BLAKE2B 095b867916ccaf4ac30b6140045700002c0a83e16c86162c4891cfa21a74b2d4f2f05646f533e2b618d5c99ee74344d68042d2e47edfa6e0adfc35aa1ed31721 SHA512 66c045026b13dc94198e4095d41b8ca4bbde345f221443b834f020173b7b0bb82e5db3880691ad8adea7e39fd0ab6e987a97347712b7a0a9697825a151206beb diff --git a/dev-util/cucumber-rails/cucumber-rails-3.0.0.ebuild b/dev-util/cucumber-rails/cucumber-rails-3.0.0.ebuild new file mode 100644 index 000000000000..575719557219 --- /dev/null +++ b/dev-util/cucumber-rails/cucumber-rails-3.0.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32" + +# 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" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="Executable feature scenarios for Rails" +HOMEPAGE="https://cucumber.io/" +SRC_URI="https://github.com/cucumber/cucumber-rails/archive/v${PV}.tar.gz -> ${P}.tar.gz" +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-ruby/capybara-3.11:3 + >=dev-util/cucumber-5 <dev-util/cucumber-10 + >=dev-ruby/rails-5.2:* <dev-ruby/rails-8:* +" + +all_ruby_prepare() { + rm Gemfile || die + sed -i -e '/[Bb]undler/d' Rakefile || die + sed -e 's/__dir__/"."/' \ + -e '/cucumber/ s/< 9/< 10/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die +} |