summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-09-15 20:30:28 +0200
committerHans de Graaff <graaff@gentoo.org>2023-09-16 06:23:13 +0200
commitd9552646fc4821b37a71451a1938ed60457290cc (patch)
tree0d4a0c39c4268906bf3aa757bf06bfb2ea9fb045 /dev-ruby/magic
parentapp-text/webgen: fix minitest deprecation (diff)
downloadgentoo-d9552646fc4821b37a71451a1938ed60457290cc.tar.gz
gentoo-d9552646fc4821b37a71451a1938ed60457290cc.tar.bz2
gentoo-d9552646fc4821b37a71451a1938ed60457290cc.zip
dev-ruby/magic: enable ruby32
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/magic')
-rw-r--r--dev-ruby/magic/magic-0.2.9-r2.ebuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/dev-ruby/magic/magic-0.2.9-r2.ebuild b/dev-ruby/magic/magic-0.2.9-r2.ebuild
index 0640c4315f96..5cf28aa6c1e5 100644
--- a/dev-ruby/magic/magic-0.2.9-r2.ebuild
+++ b/dev-ruby/magic/magic-0.2.9-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-USE_RUBY="ruby26 ruby27 ruby30 ruby31"
+USE_RUBY="ruby30 ruby31 ruby32"
RUBY_FAKEGEM_EXTRADOC="README.rdoc"
RUBY_FAKEGEM_GEMSPEC="magic.gemspec"
@@ -28,6 +28,9 @@ ruby_add_rdepend "dev-ruby/ffi"
all_ruby_prepare() {
sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Fix File.exists? deprecation
+ sed -i -e 's/File.exists?/File.exist?/' lib/magic/database.rb || die
}
each_ruby_test() {