commit:     ab4b3e3d9814ca59c403425d20b3915898db8daf
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  5 09:09:20 2020 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Sep  5 09:39:32 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab4b3e3d

dev-ruby/brotli: avoid dep on git

Closes: https://bugs.gentoo.org/733520
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/brotli/brotli-0.2.3.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dev-ruby/brotli/brotli-0.2.3.ebuild 
b/dev-ruby/brotli/brotli-0.2.3.ebuild
index fab2f12fe16..3684034a1b8 100644
--- a/dev-ruby/brotli/brotli-0.2.3.ebuild
+++ b/dev-ruby/brotli/brotli-0.2.3.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-USE_RUBY="ruby24 ruby25 ruby26 ruby27"
+USE_RUBY="ruby25 ruby26 ruby27"
 
 RUBY_FAKEGEM_EXTRADOC="README.md"
 
@@ -29,6 +29,12 @@ DEPEND+=" >=app-arch/brotli-1.0.7"
 # Depends on the test data in app-arch/brotli
 RESTRICT="test"
 
+all_ruby_prepare() {
+       sed -e 's/git ls-files -z -- spec/find spec -print0/' \
+               -e 's/git ls-files -z/find . -print0/' \
+               -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
 each_ruby_configure() {
        ${RUBY} -Cext/brotli extconf.rb || die
 }

Reply via email to