summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-02-25 07:38:56 +0100
committerHans de Graaff <graaff@gentoo.org>2019-02-25 07:41:01 +0100
commit8b00d657777dab3eda205bf623e251a2800ca06b (patch)
tree6daa0696c9d3f16d993930fff74ad10c8926980c
parenteclass: Update comment in ltprune.eclass. (diff)
downloadgentoo-8b00d657777dab3eda205bf623e251a2800ca06b.tar.gz
gentoo-8b00d657777dab3eda205bf623e251a2800ca06b.tar.bz2
gentoo-8b00d657777dab3eda205bf623e251a2800ca06b.zip
dev-ruby/mini_magick: add 4.9.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
-rw-r--r--dev-ruby/mini_magick/Manifest1
-rw-r--r--dev-ruby/mini_magick/mini_magick-4.9.3.ebuild70
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-ruby/mini_magick/Manifest b/dev-ruby/mini_magick/Manifest
index 1f2007a647be..14c414de1594 100644
--- a/dev-ruby/mini_magick/Manifest
+++ b/dev-ruby/mini_magick/Manifest
@@ -1,2 +1,3 @@
DIST mini_magick-4.8.0.tar.gz 1184374 BLAKE2B 9949cb8b668d5b31c8a9b19ac1b68147e4865cebb2d51b75c01dad11bf98a64609acb90a08f08867f173424bfa720f83e475ab08853c11fff29e86e7af5bcba2 SHA512 7c582c967480f51114c42eec2f8c260713755fa3e6078eaf5a296b0cb4502f2edd1dd65d5ef46409226943913b81e8818fc3066a09879e9da7dcb0f9f732f6d4
DIST mini_magick-4.9.2.tar.gz 1187916 BLAKE2B f619bc6fd559f76ecd45b91bce4ef8e75ec67e65f0e1a8c00d785e49491b9de81e320a3496f3ab5729f0ffe33e18afbaab762767b0835dc0af8bee0ec55cbd28 SHA512 c0747ddfdd304f9f9a820dd45e27d09ce723689dd989f036194c9177c7f9fe746dc85c2fc97a858c679a1cdf31d0fbacd50f6f927fd0d1905f5edbe3df2972ff
+DIST mini_magick-4.9.3.tar.gz 1187910 BLAKE2B d0eaa19da0d7310316ed6c11befa2e48ba75f441021f3ecd6533b0e04d9a44cc6da18c867cec87198abd3e433d63643ab61e21bd3c8b059a757634445f718207 SHA512 4a8cd953a8281229c36cb2482115a8fd127099729fbffd4be7db8967da90916e07c062c96ee066d9740d7261c07f263db8f020eabae59cf10fa6043e4be590c8
diff --git a/dev-ruby/mini_magick/mini_magick-4.9.3.ebuild b/dev-ruby/mini_magick/mini_magick-4.9.3.ebuild
new file mode 100644
index 000000000000..719b20c834f7
--- /dev/null
+++ b/dev-ruby/mini_magick/mini_magick-4.9.3.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby23 ruby24 ruby25"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem eutils
+
+DESCRIPTION="Manipulate images with minimal use of memory"
+HOMEPAGE="https://github.com/minimagick/minimagick"
+SRC_URI="https://github.com/minimagick/minimagick/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+RUBY_S="minimagick-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+# It's only used at runtime in this case because this extension only
+# _calls_ the commands. But when we run tests we're going to need tiff
+# and jpeg support at a minimum.
+RDEPEND+=" media-gfx/imagemagick"
+DEPEND+=" test? ( virtual/imagemagick-tools[jpeg,png,tiff] )"
+
+USE_RUBY="ruby23 ruby24 ruby25" ruby_add_bdepend "test? ( dev-ruby/mocha dev-ruby/posix-spawn dev-ruby/webmock )"
+
+all_ruby_prepare() {
+ # remove executable bit from all files
+ find "${S}" -type f -exec chmod -x {} +
+
+ sed -i -e '/\([Bb]undler\|pry\)/ s:^:#:' spec/spec_helper.rb || die
+
+ # Don't force a specific formatter but use overall Gentoo defaults.
+ sed -i -e '/config.formatter/d' spec/spec_helper.rb || die
+
+ # Avoid broken spec that does not assume . in path name
+ sed -i -e '/reformats a layer/,/end/ s:^:#:' spec/lib/mini_magick/image_spec.rb || die
+
+ # Avoid failing spec that also fails in upstream Travis
+ sed -i -e '/returns a hash of verbose information/,/^ end/ s:^:#:' spec/lib/mini_magick/image_spec.rb || die
+
+ # Make spec more lenient to imagemagick quoting
+ sed -i -e "/unable to open image/ s/'foo'/.foo./" spec/lib/mini_magick/shell_spec.rb || die
+
+ # Avoid graphicsmagick tests because installing both in parallel for
+ # tests is hard.
+ sed -i -e 's/:graphicsmagick//' spec/spec_helper.rb || die
+ sed -i -e '/identifies when gm exists/,/^ end/ s:^:#:' spec/lib/mini_magick/utilities_spec.rb || die
+ sed -i -e '/returns GraphicsMagick/,/^ end/ s:^:#:' spec/lib/mini_magick_spec.rb || die
+}
+
+each_ruby_test() {
+ case ${RUBY} in
+ *ruby23|*ruby24|*ruby25)
+ each_fakegem_test
+ ;;
+ *)
+ einfo "Skipping tests due to circular dependencies with Rails"
+ ;;
+ esac
+}