1 |
commit: 935dc79e82751dfb6ac84c51563feb89b42278ae |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 21 06:18:20 2017 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 21 06:18:20 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=935dc79e |
7 |
|
8 |
dev-ruby/ruby-filemagic: add 0.7.2, fixing bug 623332 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-ruby/ruby-filemagic/Manifest | 1 + |
13 |
.../ruby-filemagic/ruby-filemagic-0.7.2.ebuild | 48 ++++++++++++++++++++++ |
14 |
2 files changed, 49 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/ruby-filemagic/Manifest b/dev-ruby/ruby-filemagic/Manifest |
17 |
index f9d54326ba5..3ae2bde35fe 100644 |
18 |
--- a/dev-ruby/ruby-filemagic/Manifest |
19 |
+++ b/dev-ruby/ruby-filemagic/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST ruby-filemagic-0.7.1.gem 229376 SHA256 811de93cdc7d13dbd84d5fd3a35d699092e71a768af366637951ca109cbc7eed SHA512 9a05699fd299c20a52443d4a0213761229fa600157731712c8322e25e18cfc1f467075b8cb5e8c1790caeae9778e83cae83bb1c63475ea220a9b2d9ed896cd46 WHIRLPOOL 82d41b0264f16a2acc402ea297bc6db5ab489bdcc9a50933e916b26bf6103f483220e485ff0b102ed4b33a55898dd874a87be630884b847019d51c12ee208c41 |
22 |
+DIST ruby-filemagic-0.7.2.gem 19456 SHA256 f59d5b2ddf4c6f3867bc4f339f54489f3e3464c239233938b3808b2efe7a1802 SHA512 b68324dfb0cd2e55cd200696fabe87c0aa68a11922789ae40abc999db7d200810cffa2c414c07bc96e2fee54aab775f01752f951b3a3273289594201ca547494 WHIRLPOOL 14d4ffe47db108382b04cc82b07c5c656bb838fcb9d28fca64846debd317919d37bcec1cd0eebcd3f8c040276fffe3beec4e49ba0f0a75d27e9dd8f266c6e696 |
23 |
|
24 |
diff --git a/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.2.ebuild b/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.2.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..08d5186dea2 |
27 |
--- /dev/null |
28 |
+++ b/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.2.ebuild |
29 |
@@ -0,0 +1,48 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+USE_RUBY="ruby21 ruby22 ruby23 ruby24" |
35 |
+ |
36 |
+RUBY_FAKEGEM_TASK_DOC="" |
37 |
+RUBY_FAKEGEM_EXTRADOC="ChangeLog README TODO" |
38 |
+ |
39 |
+RUBY_FAKEGEM_TASK_TEST="" |
40 |
+ |
41 |
+inherit multilib ruby-fakegem |
42 |
+ |
43 |
+DESCRIPTION="Ruby binding to libmagic" |
44 |
+HOMEPAGE="https://github.com/blackwinter/ruby-filemagic" |
45 |
+ |
46 |
+LICENSE="Ruby" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~hppa ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
49 |
+IUSE="" |
50 |
+ |
51 |
+DEPEND="${DEPEND} sys-apps/file test? ( >=sys-apps/file-5.30 )" |
52 |
+RDEPEND="${RDEPEND} sys-apps/file" |
53 |
+ |
54 |
+all_ruby_prepare() { |
55 |
+ # Fix up tests for newer sys-apps/file definitions |
56 |
+ sed -i -e '/test_abbrev_mime_type/,/^ end/ s/ms-office/ms-excel/' test/filemagic_test.rb || die |
57 |
+ |
58 |
+ # Fix up broken test symlink and regenerate compiled magic file |
59 |
+ pushd test || die |
60 |
+ rm -f pylink && ln -s pyfile pylink || die |
61 |
+ file -C -m perl || die |
62 |
+ popd || die |
63 |
+} |
64 |
+ |
65 |
+each_ruby_configure() { |
66 |
+ ${RUBY} -Cext/filemagic extconf.rb || die |
67 |
+} |
68 |
+ |
69 |
+each_ruby_compile() { |
70 |
+ emake V=1 -Cext/filemagic |
71 |
+ mv ext/filemagic/ruby_filemagic$(get_modname) lib/filemagic/ || die |
72 |
+} |
73 |
+ |
74 |
+each_ruby_test() { |
75 |
+ find test |
76 |
+ ${RUBY} -Ctest -I../lib filemagic_test.rb || die |
77 |
+} |