From 5882e6b83471ad6f862427c6ae6a00eea3dd9a89 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sun, 3 Mar 2024 08:30:17 +0100 Subject: 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 --- .../cucumber-html-formatter-21.2.0.ebuild | 27 +++++++--------------- 1 file changed, 8 insertions(+), 19 deletions(-) (limited to 'dev-util/cucumber-html-formatter/cucumber-html-formatter-21.2.0.ebuild') 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 !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 - -} -- cgit v1.2.3