diff options
author | Hans de Graaff <graaff@gentoo.org> | 2020-11-08 07:32:40 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2020-11-08 07:32:40 +0100 |
commit | 3c49546864bfc08d1b7c18921f4eefd1abed5293 (patch) | |
tree | efe9a6a04b86a0ed88e878742558d3e1298ba493 /dev-ruby/mini_magick | |
parent | dev-ruby/image_processing: add 1.12.1 (diff) | |
download | gentoo-3c49546864bfc08d1b7c18921f4eefd1abed5293.tar.gz gentoo-3c49546864bfc08d1b7c18921f4eefd1abed5293.tar.bz2 gentoo-3c49546864bfc08d1b7c18921f4eefd1abed5293.zip |
dev-ruby/mini_magick: add 4.11.0
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/mini_magick')
-rw-r--r-- | dev-ruby/mini_magick/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/mini_magick/mini_magick-4.11.0.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-ruby/mini_magick/Manifest b/dev-ruby/mini_magick/Manifest index cb88dc6d2d69..81ed5b03d85c 100644 --- a/dev-ruby/mini_magick/Manifest +++ b/dev-ruby/mini_magick/Manifest @@ -1 +1,2 @@ DIST mini_magick-4.10.1.tar.gz 1192455 BLAKE2B 269f0fbf0e49bb14c3a39124dfeb8171775db7a9e51e4662e5dac0a98c4668156bf5bbf22af62a9f62d7834d2205a9475e5631b768d27cac0527cab0baad25fa SHA512 28e4a4cf213db69182adb56daa3e09eb576e96e8ff4ad95121f9a16f8ecceb98ad790d3897463fa1ab3b7d4b9925777f9e71302adfd3f31b3f88aa520371e77b +DIST mini_magick-4.11.0.tar.gz 1193122 BLAKE2B b736bb1b147ec2b1f926ebf5a3b908e659d6dfcaca0e7199932086e09cfd6be21046dff3c4e0edb7877c40c5bbda73aa0f521b305c15abb6fab931242b4561c9 SHA512 7201a94345aa95bb9466369c78fbc48108b245df77435e839a3f0df7694f4da4eeff3a7b3da4aaabedefd93859abde1145baef6f0f01580f66255653be88f5d2 diff --git a/dev-ruby/mini_magick/mini_magick-4.11.0.ebuild b/dev-ruby/mini_magick/mini_magick-4.11.0.ebuild new file mode 100644 index 000000000000..f98c002b1596 --- /dev/null +++ b/dev-ruby/mini_magick/mini_magick-4.11.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_RUBY="ruby25 ruby26" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +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] )" + +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 spec broken by recent imagemagick updates + sed -i -e '/cache files generated from .mpc/askip' spec/lib/mini_magick/image_spec.rb || die + sed -i -e '/does not hang when parsing verbose data/askip' spec/lib/mini_magick/image_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 + sed -i -e 's/"GraphicsMagick"//' spec/lib/mini_magick/image_spec.rb || die +} |