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/mimemagic/
Date: Thu, 25 Nov 2021 12:27:47
Message-Id: 1637843246.30739e8504b43b6bd31d30088c5689d3b107c814.graaff@gentoo
1 commit: 30739e8504b43b6bd31d30088c5689d3b107c814
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 21 09:06:30 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 25 12:27:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30739e85
7
8 dev-ruby/mimemagic: mark extension as installed
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/mimemagic/mimemagic-0.3.10-r1.ebuild | 41 ++++++++++++++++++++++++
14 dev-ruby/mimemagic/mimemagic-0.4.3-r1.ebuild | 45 +++++++++++++++++++++++++++
15 2 files changed, 86 insertions(+)
16
17 diff --git a/dev-ruby/mimemagic/mimemagic-0.3.10-r1.ebuild b/dev-ruby/mimemagic/mimemagic-0.3.10-r1.ebuild
18 new file mode 100644
19 index 000000000000..14cda3064dd1
20 --- /dev/null
21 +++ b/dev-ruby/mimemagic/mimemagic-0.3.10-r1.ebuild
22 @@ -0,0 +1,41 @@
23 +# Copyright 1999-2021 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=8
27 +USE_RUBY="ruby26 ruby27 ruby30"
28 +
29 +RUBY_FAKEGEM_EXTRADOC="README.md"
30 +
31 +RUBY_FAKEGEM_GEMSPEC=mimemagic.gemspec
32 +
33 +inherit prefix ruby-fakegem
34 +
35 +DESCRIPTION="Fast mime detection by extension or content"
36 +HOMEPAGE="https://github.com/mimemagicrb/mimemagic"
37 +SRC_URI="https://github.com/mimemagicrb/mimemagic/archive/v${PV}.tar.gz -> ${P}.tar.gz"
38 +
39 +LICENSE="MIT"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
42 +IUSE=""
43 +
44 +RDEPEND+=" x11-misc/shared-mime-info"
45 +
46 +ruby_add_rdepend "
47 + dev-ruby/nokogiri
48 + dev-ruby/rake
49 +"
50 +
51 +ruby_add_bdepend "test? ( dev-ruby/minitest )"
52 +
53 +all_ruby_prepare() {
54 + cp "${FILESDIR}/${PN}-0.3.9-path.rb" lib/mimemagic/path.rb || die
55 + eprefixify lib/mimemagic/path.rb
56 +
57 + sed -i -e 's/git ls-files/find * -print/' ${RUBY_FAKEGEM_GEMSPEC} || die
58 +}
59 +
60 +each_ruby_install() {
61 + each_fakegem_install
62 + ruby_fakegem_extensions_installed
63 +}
64
65 diff --git a/dev-ruby/mimemagic/mimemagic-0.4.3-r1.ebuild b/dev-ruby/mimemagic/mimemagic-0.4.3-r1.ebuild
66 new file mode 100644
67 index 000000000000..8b8fb492af14
68 --- /dev/null
69 +++ b/dev-ruby/mimemagic/mimemagic-0.4.3-r1.ebuild
70 @@ -0,0 +1,45 @@
71 +# Copyright 1999-2021 Gentoo Authors
72 +# Distributed under the terms of the GNU General Public License v2
73 +
74 +EAPI=7
75 +USE_RUBY="ruby25 ruby26 ruby27 ruby30"
76 +
77 +RUBY_FAKEGEM_EXTRADOC="README.md"
78 +
79 +RUBY_FAKEGEM_GEMSPEC=mimemagic.gemspec
80 +
81 +inherit prefix ruby-fakegem
82 +
83 +DESCRIPTION="Fast mime detection by extension or content"
84 +HOMEPAGE="https://github.com/mimemagicrb/mimemagic"
85 +SRC_URI="https://github.com/mimemagicrb/mimemagic/archive/v${PV}.tar.gz -> ${P}.tar.gz"
86 +
87 +LICENSE="MIT"
88 +SLOT="$(ver_cut 1-2)"
89 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
90 +IUSE=""
91 +
92 +RDEPEND+=" x11-misc/shared-mime-info"
93 +
94 +ruby_add_rdepend "
95 + dev-ruby/nokogiri
96 + dev-ruby/rake
97 +"
98 +
99 +ruby_add_bdepend "test? ( dev-ruby/minitest )"
100 +
101 +all_ruby_prepare() {
102 + cp "${FILESDIR}/${PN}-0.3.9-path.rb" lib/mimemagic/path.rb || die
103 + eprefixify lib/mimemagic/path.rb
104 +
105 + sed -i -e 's/git ls-files/find * -print/' ${RUBY_FAKEGEM_GEMSPEC} || die
106 +}
107 +
108 +each_ruby_test() {
109 + ${RUBY} -Ilib:.:test -e 'Dir["test/**/*_test.rb"].each {|f| require f}' || die
110 +}
111 +
112 +each_ruby_install() {
113 + each_fakegem_install
114 + ruby_fakegem_extensions_installed
115 +}