1 |
commit: 775c75ac491d4007bd7aee668a8789de24ac79ef |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 11 07:44:04 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 11 08:40:47 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=775c75ac |
7 |
|
8 |
dev-ruby/mini_mime: add 1.0.1 |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
dev-ruby/mini_mime/Manifest | 1 + |
14 |
dev-ruby/mini_mime/mini_mime-1.0.1.ebuild | 31 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 32 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/mini_mime/Manifest b/dev-ruby/mini_mime/Manifest |
18 |
index aeabb384218..cbc7ca70649 100644 |
19 |
--- a/dev-ruby/mini_mime/Manifest |
20 |
+++ b/dev-ruby/mini_mime/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST mini_mime-1.0.0.tar.gz 31205 BLAKE2B c82b806dec4b726d997ebd916e41d8873919a2c53ef1a6b8b02a94ef174837079552058084999e870944885118ee37127c29aa46c602bdd58fdc85bf473fd0cf SHA512 dbb976fa23679a42a2e28b06eb33f61ec991e7115e9bbadca7d09cb4b247a2345b14a2cb4fd4897aab5ffb40c710e931302d07ea3dff4ee64e935a70c9e88fff |
23 |
+DIST mini_mime-1.0.1.tar.gz 31329 BLAKE2B 970927c8bb2d00f2e0b71cbca9aa954f732eb9d46d2e9b35a6b042ade88aaea993b40023a189b4ce1515b2b476d123945b4ec2d3fef05d4444f3e1a0f492df65 SHA512 2002ed95fe49bf71a95987f35e25e9086a5365e6eff9f7cf8a33a742cbbbd31e5020fbcd0d35b31e7dc61c0e82390a03e5241f4e5a88e9f7d7a2d3020c0ea9ee |
24 |
|
25 |
diff --git a/dev-ruby/mini_mime/mini_mime-1.0.1.ebuild b/dev-ruby/mini_mime/mini_mime-1.0.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..2b12c1c813a |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/mini_mime/mini_mime-1.0.1.ebuild |
30 |
@@ -0,0 +1,31 @@ |
31 |
+# Copyright 1999-2018 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+USE_RUBY="ruby23 ruby24 ruby25" |
36 |
+ |
37 |
+RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
38 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md" |
39 |
+ |
40 |
+RUBY_FAKEGEM_BINWRAP="" |
41 |
+ |
42 |
+RUBY_FAKEGEM_GEMSPEC="mini_mime.gemspec" |
43 |
+ |
44 |
+inherit ruby-fakegem |
45 |
+ |
46 |
+DESCRIPTION="A lightweight mime type lookup toy" |
47 |
+HOMEPAGE="https://github.com/discourse/mini_mime" |
48 |
+SRC_URI="https://github.com/discourse/mini_mime/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
53 |
+IUSE="test" |
54 |
+ |
55 |
+all_ruby_prepare() { |
56 |
+ sed -i -e 's/git ls-files -z/find . -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die |
57 |
+ |
58 |
+ # Avoid comparison with MIME::Types because types may vary over time |
59 |
+ # as they get reclassified leading to random harmless failures. |
60 |
+ sed -i -e '/test_full_parity_with_mime_types/askip "gentoo"' test/mini_mime_test.rb || die |
61 |
+} |