Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/ruby-filemagic/
Date: Wed, 27 Oct 2021 11:26:35
Message-Id: 1635333888.9f9c4f0b2fb9fa21ddb2154516b378d0898b9c9b.graaff@gentoo
1 commit: 9f9c4f0b2fb9fa21ddb2154516b378d0898b9c9b
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 27 05:43:37 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 27 11:24:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f9c4f0b
7
8 dev-ruby/ruby-filemagic: add ruby30; fix extension install
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 .../ruby-filemagic/ruby-filemagic-0.7.2-r1.ebuild | 42 ++++++++++++++++++++++
14 1 file changed, 42 insertions(+)
15
16 diff --git a/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.2-r1.ebuild b/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.2-r1.ebuild
17 new file mode 100644
18 index 00000000000..b8b2c7ec7e6
19 --- /dev/null
20 +++ b/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.2-r1.ebuild
21 @@ -0,0 +1,42 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +USE_RUBY="ruby26 ruby27 ruby30"
27 +
28 +RUBY_FAKEGEM_TASK_DOC=""
29 +RUBY_FAKEGEM_EXTRADOC="ChangeLog README TODO"
30 +
31 +RUBY_FAKEGEM_EXTENSIONS=(ext/filemagic/extconf.rb)
32 +RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/filemagic"
33 +
34 +RUBY_FAKEGEM_TASK_TEST=""
35 +
36 +inherit multilib ruby-fakegem
37 +
38 +DESCRIPTION="Ruby binding to libmagic"
39 +HOMEPAGE="https://github.com/blackwinter/ruby-filemagic"
40 +
41 +LICENSE="Ruby"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~hppa ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
44 +IUSE=""
45 +
46 +DEPEND="${DEPEND} sys-apps/file test? ( >=sys-apps/file-5.30 )"
47 +RDEPEND="${RDEPEND} sys-apps/file"
48 +
49 +all_ruby_prepare() {
50 + # Fix up tests for newer sys-apps/file definitions
51 + sed -i -e '/test_abbrev_mime_type/,/^ end/ s/ms-office/ms-excel/' test/filemagic_test.rb || die
52 +
53 + # Fix up broken test symlink and regenerate compiled magic file
54 + pushd test || die
55 + rm -f pylink && ln -s pyfile pylink || die
56 + file -C -m perl || die
57 + popd || die
58 +}
59 +
60 +each_ruby_test() {
61 + find test
62 + ${RUBY} -Ctest -I../lib filemagic_test.rb || die
63 +}