summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-04-24 08:27:58 +0200
committerHans de Graaff <graaff@gentoo.org>2022-04-24 09:06:19 +0200
commit709d004d4ec13e5c415d5bd648ed9e108072b0fc (patch)
tree729efdc9b23d91f0d850779d07ab856e4af5dc15 /dev-ruby/ruby-filemagic
parentdev-ruby/ruby-feedparser: enable ruby31 (diff)
downloadgentoo-709d004d4ec13e5c415d5bd648ed9e108072b0fc.tar.gz
gentoo-709d004d4ec13e5c415d5bd648ed9e108072b0fc.tar.bz2
gentoo-709d004d4ec13e5c415d5bd648ed9e108072b0fc.zip
dev-ruby/ruby-filemagic: add 0.7.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/ruby-filemagic')
-rw-r--r--dev-ruby/ruby-filemagic/Manifest1
-rw-r--r--dev-ruby/ruby-filemagic/ruby-filemagic-0.7.3.ebuild41
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/ruby-filemagic/Manifest b/dev-ruby/ruby-filemagic/Manifest
index 0db39a866a4d..a69c7dfd96db 100644
--- a/dev-ruby/ruby-filemagic/Manifest
+++ b/dev-ruby/ruby-filemagic/Manifest
@@ -1 +1,2 @@
DIST ruby-filemagic-0.7.2.gem 19456 BLAKE2B 5008fb27a5b6bbd93522c72381b1c74788e544e6120f3c44f4a594b360ee783d4e92e73ef584a8e56c1776a5e5e824d6fa603df135b6e1779fa460c19c3bb4a7 SHA512 b68324dfb0cd2e55cd200696fabe87c0aa68a11922789ae40abc999db7d200810cffa2c414c07bc96e2fee54aab775f01752f951b3a3273289594201ca547494
+DIST ruby-filemagic-0.7.3.gem 18944 BLAKE2B 5694e4e2dfa4af05c6e9966715feaf1442c4c884b42fe98751af1a4fc74506461c9d42cd42cbe99ed341670950dda5c06ae5a23afb73bf8a88273f9ca6880cd6 SHA512 8bbc7fcb1dd7746061264ee433d501a842bfea30d7eff40b6dfb0f5c567192e6aa161e67181a474a4b805bb1adb9fa3bd43e314abf14c3ce3ac11d72598b2fc6
diff --git a/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.3.ebuild b/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.3.ebuild
new file mode 100644
index 000000000000..84da5465bfd0
--- /dev/null
+++ b/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.3.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30 ruby31"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="ChangeLog README TODO"
+
+RUBY_FAKEGEM_EXTENSIONS=(ext/filemagic/extconf.rb)
+RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/filemagic"
+
+RUBY_FAKEGEM_TASK_TEST=""
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby binding to libmagic"
+HOMEPAGE="https://github.com/blackwinter/ruby-filemagic"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
+IUSE=""
+
+DEPEND="${DEPEND} sys-apps/file test? ( >=sys-apps/file-5.30 )"
+RDEPEND="${RDEPEND} sys-apps/file"
+
+all_ruby_prepare() {
+ # Fix up broken test symlink and regenerate compiled magic file
+ pushd test || die
+ rm -f pylink && ln -s pyfile pylink || die
+ file -C -m perl || die
+ popd || die
+
+ sed -i -e '/test_check_compiled/aomit "different result with file 5.41"' test/filemagic_test.rb || die
+}
+
+each_ruby_test() {
+ find test
+ ${RUBY} -Ctest -I../lib filemagic_test.rb || die
+}