1 |
commit: 93198c092c7084dd24ccd6e1b77a011359066215 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 30 06:39:35 2019 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 30 06:39:35 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93198c09 |
7 |
|
8 |
dev-ruby/mini_magick: add 4.9.5 |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/mini_magick/Manifest | 1 + |
14 |
dev-ruby/mini_magick/mini_magick-4.9.5.ebuild | 55 +++++++++++++++++++++++++++ |
15 |
2 files changed, 56 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/mini_magick/Manifest b/dev-ruby/mini_magick/Manifest |
18 |
index a39349160c2..76e794e0488 100644 |
19 |
--- a/dev-ruby/mini_magick/Manifest |
20 |
+++ b/dev-ruby/mini_magick/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST mini_magick-4.9.3.tar.gz 1187910 BLAKE2B d0eaa19da0d7310316ed6c11befa2e48ba75f441021f3ecd6533b0e04d9a44cc6da18c867cec87198abd3e433d63643ab61e21bd3c8b059a757634445f718207 SHA512 4a8cd953a8281229c36cb2482115a8fd127099729fbffd4be7db8967da90916e07c062c96ee066d9740d7261c07f263db8f020eabae59cf10fa6043e4be590c8 |
23 |
DIST mini_magick-4.9.4.tar.gz 1188193 BLAKE2B bd3ae9eb2f5796c42093d9162cd7b1437eccd7ffc2fccd257e2f18b7d34709fa723e413d36045f50bdc13aff1ba5220a4d277d95e419cd37c5b22d304628403d SHA512 9d1bcd7925a26332ff35daba67d78dab88690ea403e70042485d3c1499a41080365b73c03116f26cf11f9cc05c75cf7a8c40f660764f45ece5fdb9ca8a521757 |
24 |
+DIST mini_magick-4.9.5.tar.gz 1192220 BLAKE2B 18867664682b82c689beadd190d203f9a460a229ee07271fdfd3b9ef7c7fb2a913107b2f318c33b7aa15aad88488a4da5548f371f9f9b38246aa8f2210e04d15 SHA512 06a82b3c5bf47ae1254fb669f4cb63a7a944977eaa790501ee715740c6a2fdfe81ea886235fe310d2c0ca07253f4167e72ddae6e29a551315ecafc595c2a3a53 |
25 |
|
26 |
diff --git a/dev-ruby/mini_magick/mini_magick-4.9.5.ebuild b/dev-ruby/mini_magick/mini_magick-4.9.5.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..f10d9b86644 |
29 |
--- /dev/null |
30 |
+++ b/dev-ruby/mini_magick/mini_magick-4.9.5.ebuild |
31 |
@@ -0,0 +1,55 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+USE_RUBY="ruby24 ruby25 ruby26" |
38 |
+ |
39 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
40 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
41 |
+ |
42 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
43 |
+ |
44 |
+RUBY_FAKEGEM_BINWRAP="" |
45 |
+ |
46 |
+inherit ruby-fakegem eutils |
47 |
+ |
48 |
+DESCRIPTION="Manipulate images with minimal use of memory" |
49 |
+HOMEPAGE="https://github.com/minimagick/minimagick" |
50 |
+SRC_URI="https://github.com/minimagick/minimagick/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
51 |
+RUBY_S="minimagick-${PV}" |
52 |
+ |
53 |
+LICENSE="MIT" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
56 |
+IUSE="" |
57 |
+ |
58 |
+# It's only used at runtime in this case because this extension only |
59 |
+# _calls_ the commands. But when we run tests we're going to need tiff |
60 |
+# and jpeg support at a minimum. |
61 |
+RDEPEND+=" media-gfx/imagemagick" |
62 |
+DEPEND+=" test? ( virtual/imagemagick-tools[jpeg,png,tiff] )" |
63 |
+ |
64 |
+ruby_add_bdepend "test? ( dev-ruby/mocha dev-ruby/posix-spawn dev-ruby/webmock )" |
65 |
+ |
66 |
+all_ruby_prepare() { |
67 |
+ # remove executable bit from all files |
68 |
+ find "${S}" -type f -exec chmod -x {} + |
69 |
+ |
70 |
+ sed -i -e '/\([Bb]undler\|pry\)/ s:^:#:' spec/spec_helper.rb || die |
71 |
+ |
72 |
+ # Don't force a specific formatter but use overall Gentoo defaults. |
73 |
+ sed -i -e '/config.formatter/d' spec/spec_helper.rb || die |
74 |
+ |
75 |
+ # Avoid broken spec that does not assume . in path name |
76 |
+ sed -i -e '/reformats a layer/,/end/ s:^:#:' spec/lib/mini_magick/image_spec.rb || die |
77 |
+ |
78 |
+ # Avoid spec broken by recent imagemagick updates |
79 |
+ sed -i -e '/cache files generated from .mpc/askip' spec/lib/mini_magick/image_spec.rb || die |
80 |
+ |
81 |
+ # Avoid graphicsmagick tests because installing both in parallel for |
82 |
+ # tests is hard. |
83 |
+ sed -i -e 's/:graphicsmagick//' spec/spec_helper.rb || die |
84 |
+ sed -i -e '/identifies when gm exists/,/^ end/ s:^:#:' spec/lib/mini_magick/utilities_spec.rb || die |
85 |
+ sed -i -e '/returns GraphicsMagick/,/^ end/ s:^:#:' spec/lib/mini_magick_spec.rb || die |
86 |
+} |