dev-ruby/charlock_holmes: avoid calling which

Closes: https://bugs.gentoo.org/940712
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2024-11-13 15:36:36 +01:00
parent 02eca141e5
commit 4ffdd2f416

View File

@@ -36,6 +36,10 @@ all_ruby_prepare() {
# Avoid dependency on rake-compiler
sed -i -e '/rake-compiler/,$ s:^:#:' Rakefile || die
# Avoid using `which`, and we know make exists.
sed -e '/which make/,/^end/ s:^:#:' \
-i ext/charlock_holmes/extconf.rb || die
sed -e 's/git ls-files/find/' -i ${RUBY_FAKEGEM_GEMSPEC} || die
}