diff options
| author | Hans de Graaff <graaff@gentoo.org> | 2024-03-03 08:30:17 +0100 |
|---|---|---|
| committer | Hans de Graaff <graaff@gentoo.org> | 2024-03-03 08:32:06 +0100 |
| commit | 5882e6b83471ad6f862427c6ae6a00eea3dd9a89 (patch) | |
| tree | 90ecced00edf02b1c3641c124e14d2cfd0ec0b1e /dev-util/cucumber-html-formatter/cucumber-html-formatter-21.2.0.ebuild | |
| parent | aa67ec7529fc102065a0252168fa8bd7b1d13ad2 (diff) | |
| download | gentoo-5882e6b83471ad6f862427c6ae6a00eea3dd9a89.tar.gz gentoo-5882e6b83471ad6f862427c6ae6a00eea3dd9a89.tar.bz2 gentoo-5882e6b83471ad6f862427c6ae6a00eea3dd9a89.zip | |
dev-util/cucumber-html-formatter: update SRC_URI
Use the gem since it contains the precompiled npm assets. Unfortunately
the gem no longer contains the specs, so we are not able to run them
anymore. We could use the upstream git repository as a source but that
would require creating and distributing the assets ourselves for each
release.
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-util/cucumber-html-formatter/cucumber-html-formatter-21.2.0.ebuild')
| -rw-r--r-- | dev-util/cucumber-html-formatter/cucumber-html-formatter-21.2.0.ebuild | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/dev-util/cucumber-html-formatter/cucumber-html-formatter-21.2.0.ebuild b/dev-util/cucumber-html-formatter/cucumber-html-formatter-21.2.0.ebuild index dec778bc78a5..3d108c72cb09 100644 --- a/dev-util/cucumber-html-formatter/cucumber-html-formatter-21.2.0.ebuild +++ b/dev-util/cucumber-html-formatter/cucumber-html-formatter-21.2.0.ebuild @@ -4,17 +4,17 @@ EAPI=8 USE_RUBY="ruby31 ruby32 ruby33" -RUBY_FAKEGEM_GEMSPEC="cucumber-html-formatter.gemspec" -RUBY_FAKEGEM_RECIPE_TEST="rspec3" - RUBY_FAKEGEM_EXTRAINSTALL="assets" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" inherit ruby-fakegem DESCRIPTION="HTML formatter for Cucumber" HOMEPAGE="https://cucumber.io/" -SRC_URI="https://github.com/cucumber/html-formatter/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" -RUBY_S="html-formatter-${PV}/ruby" + +# Can be used for specs but requires assets to be created from npm +#SRC_URI="https://github.com/cucumber/html-formatter/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +#RUBY_S="html-formatter-${PV}/ruby" LICENSE="MIT" @@ -22,21 +22,10 @@ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" SLOT="$(ver_cut 1)" IUSE="test" +# Specs are no longer available in the distributed gem +RESTRICT="test" + ruby_add_rdepend " dev-util/cucumber-messages:22 !<dev-util/cucumber-html-formatter-20.4.0-r1:20 " - -all_ruby_prepare() { - # Require a specific version of cucumber-messages that is compatible - # throughout the cucumber stack. Drop compatibility-kit since it - # does not work with the supported versions of cucumber-messages and - # newer versions are completely broken. - sed -e '2igem "cucumber-messages", "~>22.0"' \ - -e '/compatibility-kit/ s:^:#:' \ - -i spec/spec_helper.rb || die - - sed -e '/when using the CCK/,/^ end/ s:^:#:' \ - -i spec/cucumber/html_formatter/formatter_spec.rb || die - -} |
