diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-07-16 07:31:02 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-07-16 08:33:19 +0200 |
commit | f5d4f64b0040870c760dc2d5a3ad886f41a73ba0 (patch) | |
tree | 1968bffd1095e7c8ab1296b589e1cce2e3e5a5ad /dev-ruby/mini_magick | |
parent | dev-ruby/capybara: add 3.26.0 (diff) | |
download | gentoo-f5d4f64b0040870c760dc2d5a3ad886f41a73ba0.tar.gz gentoo-f5d4f64b0040870c760dc2d5a3ad886f41a73ba0.tar.bz2 gentoo-f5d4f64b0040870c760dc2d5a3ad886f41a73ba0.zip |
dev-ruby/mini_magick: add 4.9.4
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
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.9.4.ebuild | 59 |
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/mini_magick/Manifest b/dev-ruby/mini_magick/Manifest index 6f135142df0b..a39349160c23 100644 --- a/dev-ruby/mini_magick/Manifest +++ b/dev-ruby/mini_magick/Manifest @@ -1 +1,2 @@ DIST mini_magick-4.9.3.tar.gz 1187910 BLAKE2B d0eaa19da0d7310316ed6c11befa2e48ba75f441021f3ecd6533b0e04d9a44cc6da18c867cec87198abd3e433d63643ab61e21bd3c8b059a757634445f718207 SHA512 4a8cd953a8281229c36cb2482115a8fd127099729fbffd4be7db8967da90916e07c062c96ee066d9740d7261c07f263db8f020eabae59cf10fa6043e4be590c8 +DIST mini_magick-4.9.4.tar.gz 1188193 BLAKE2B bd3ae9eb2f5796c42093d9162cd7b1437eccd7ffc2fccd257e2f18b7d34709fa723e413d36045f50bdc13aff1ba5220a4d277d95e419cd37c5b22d304628403d SHA512 9d1bcd7925a26332ff35daba67d78dab88690ea403e70042485d3c1499a41080365b73c03116f26cf11f9cc05c75cf7a8c40f660764f45ece5fdb9ca8a521757 diff --git a/dev-ruby/mini_magick/mini_magick-4.9.4.ebuild b/dev-ruby/mini_magick/mini_magick-4.9.4.ebuild new file mode 100644 index 000000000000..b8093b12ed23 --- /dev/null +++ b/dev-ruby/mini_magick/mini_magick-4.9.4.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby24 ruby25 ruby26" + +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] )" + +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 +} |