dev-ruby/loofah: fix version in gemspec
authorHans de Graaff <graaff@gentoo.org>
Tue, 19 May 2020 13:21:40 +0000 (15:21 +0200)
committerHans de Graaff <graaff@gentoo.org>
Tue, 19 May 2020 13:21:54 +0000 (15:21 +0200)
Closes: https://bugs.gentoo.org/719254
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
dev-ruby/loofah/loofah-2.5.0-r2.ebuild [moved from dev-ruby/loofah/loofah-2.5.0-r1.ebuild with 91% similarity]

similarity index 91%
rename from dev-ruby/loofah/loofah-2.5.0-r1.ebuild
rename to dev-ruby/loofah/loofah-2.5.0-r2.ebuild
index eaf295b5d0dd19724579025bec90952a729a6237..aa2eaf69d5c7e18912dce51758ad670302ce9912 100644 (file)
@@ -24,6 +24,9 @@ ruby_add_rdepend "=dev-ruby/crass-1.0* >=dev-ruby/crass-1.0.2 >=dev-ruby/nokogir
 ruby_add_bdepend "test? ( >=dev-ruby/rr-1.1.0 )"
 
 all_ruby_prepare() {
+       # Fix version in gemspec
+       sed -i -e '/s.version/ s/".*"/"'${PV}'"/' ${RUBY_FAKEGEM_GEMSPEC} || die
+
        # Avoid unneeded development dependencies
        sed -i -e '/concourse/I s:^:#:' Rakefile || die