summaryrefslogtreecommitdiff
path: root/dev-ruby/ruby-filemagic
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
committerV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
commit752d6256e5204b958b0ef7905675a940b5e9172f (patch)
tree330d16e6362a49cbed8875a777fe641a43376cd3 /dev-ruby/ruby-filemagic
parent0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff)
gentoo resync : 12.05.2022
Diffstat (limited to 'dev-ruby/ruby-filemagic')
-rw-r--r--dev-ruby/ruby-filemagic/Manifest2
-rw-r--r--dev-ruby/ruby-filemagic/ruby-filemagic-0.7.3.ebuild41
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-ruby/ruby-filemagic/Manifest b/dev-ruby/ruby-filemagic/Manifest
index 6a8b2b133294..b8c43357dbf5 100644
--- a/dev-ruby/ruby-filemagic/Manifest
+++ b/dev-ruby/ruby-filemagic/Manifest
@@ -1,3 +1,5 @@
DIST ruby-filemagic-0.7.2.gem 19456 BLAKE2B 5008fb27a5b6bbd93522c72381b1c74788e544e6120f3c44f4a594b360ee783d4e92e73ef584a8e56c1776a5e5e824d6fa603df135b6e1779fa460c19c3bb4a7 SHA512 b68324dfb0cd2e55cd200696fabe87c0aa68a11922789ae40abc999db7d200810cffa2c414c07bc96e2fee54aab775f01752f951b3a3273289594201ca547494
+DIST ruby-filemagic-0.7.3.gem 18944 BLAKE2B 5694e4e2dfa4af05c6e9966715feaf1442c4c884b42fe98751af1a4fc74506461c9d42cd42cbe99ed341670950dda5c06ae5a23afb73bf8a88273f9ca6880cd6 SHA512 8bbc7fcb1dd7746061264ee433d501a842bfea30d7eff40b6dfb0f5c567192e6aa161e67181a474a4b805bb1adb9fa3bd43e314abf14c3ce3ac11d72598b2fc6
EBUILD ruby-filemagic-0.7.2-r1.ebuild 1102 BLAKE2B 995ce43953a029b7a1fff8e567944f274d273cd80db17ff59a7e79341434295e720d395361d84d33e5cb54f114d1903b7acb3b6f67558e7fa348e5b99cdf4c13 SHA512 39f21f1ecee6988a3e20491b7e77b70b579a5dfc5921f357d77d5bfe62630e18b4ed48daccb34151efa9287bb9a3680e921727cd38ef311d516ab62a88e24061
+EBUILD ruby-filemagic-0.7.3.ebuild 1054 BLAKE2B 339c92df63d183272891dd9cb5e1a265e0e9683d370b5d1e816f6ac32cfa3850673eea7c92e7d3217babfcea501834ad1a0a68c397ee7f7d88a13a00052c7f94 SHA512 e81a0fd6f29b70b7af6fbbeae5b9f98bc9f0573e05794fb919b26db9e6b08bf41244373a8e334fd030f0aa776b09e953dd5969ca454d4941dd88fd57d526570d
MISC metadata.xml 343 BLAKE2B b0c693e2808144016e602ed141a51c838015d2640e2f4426fa8e35bdd412c4473f9dc8b2a866e028aa5686256563251d65b4ea07ed15b8f30795681642739fbd SHA512 0cd112a7405012ca3605c5d2e11fdea123fe1c16a34bd1fcf97a063e88e1663280d744a4cd93c2b75c1d73e3d6c4a144fa7ee915ac705615cc08838e2afe0db3
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
+}