diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-06-28 06:22:50 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-06-28 06:31:29 +0200 |
commit | be189997be6dbc019f40415a0fc8b6170088f364 (patch) | |
tree | 2f520312959ac103abc0379116f426c3abdad762 /dev-ruby/mini_magick | |
parent | dev-ruby/tilt: add 2.4.0 (diff) | |
download | gentoo-be189997be6dbc019f40415a0fc8b6170088f364.tar.gz gentoo-be189997be6dbc019f40415a0fc8b6170088f364.tar.bz2 gentoo-be189997be6dbc019f40415a0fc8b6170088f364.zip |
dev-ruby/mini_magick: add 4.13.1
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.13.1.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-ruby/mini_magick/Manifest b/dev-ruby/mini_magick/Manifest index 86f070f63ffe..e2f5ba5ab447 100644 --- a/dev-ruby/mini_magick/Manifest +++ b/dev-ruby/mini_magick/Manifest @@ -1,2 +1,3 @@ DIST mini_magick-4.12.0.tar.gz 1331356 BLAKE2B 84d222424c354e83a041f2c6352f92d11889ed51126f90dd55ccbdbfa31974b79977bf3cf10d30c5f350d17a7dd2d20bf538c2eb78f65c58a29a81f71290acf8 SHA512 8801b4fe9cfed47eeae91cffd5364ca828f8b21d7040217d72d0f5ca9070e02f191b8f87b933c067c0d914332806f14e1b87621dbca06df047c43db8a72cd559 DIST mini_magick-4.13.0.tar.gz 1330816 BLAKE2B 90375169b91363cc6f01c8251a93fc40d8d53974de16738a685d76e70c8b66869d0fb2f22cb9a76e4e5a9b4d9cc31b1b821807325fe6d93a65d3c53584847904 SHA512 6b9b278bf844897a9ddbc28515bf01f6215bb8cbf8a0caaedaa521d2f6927a834d929feaa334cae739129fdf4c40a7ae0aa4116f5fa82befd41c910c3063b7ac +DIST mini_magick-4.13.1.tar.gz 1330619 BLAKE2B ea51265c68b247c8558381e359660b649834c63cdc0de55c9bc47a2ae83ef4f592c14a7f84e12e016860363ba6326ac342481f25a4bc718c059515c30d48fd2d SHA512 2c9a55e69f3770974fa32124ac7f0da63114c17704848d3c957bcfa6b2e00d162694a4e34a25e27f8b214101d6a4bb6a9f1d0dbee597140b94874409ebea4363 diff --git a/dev-ruby/mini_magick/mini_magick-4.13.1.ebuild b/dev-ruby/mini_magick/mini_magick-4.13.1.ebuild new file mode 100644 index 000000000000..26598e37d533 --- /dev/null +++ b/dev-ruby/mini_magick/mini_magick-4.13.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +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 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="test" + +# 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/webmock )" + +all_ruby_prepare() { + # remove executable bit from all files + find "${S}" -type f -exec chmod -x {} + + + sed -i -e '/bundler/ s:^:#:' spec/spec_helper.rb || die + + # Don't force a specific formatter but use overall Gentoo defaults + # and show all failures. + sed -i -e '/config.\(fail_fast\|formatter\)/ s:^:#:' 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 '/reads exif/askip "Now returns more complete EXIF data"' spec/lib/mini_magick/image_spec.rb || die + + # Avoid graphicsmagick tests because installing both in parallel for + # tests is hard. + 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 +} |