summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-03-13 09:54:37 +0100
committerHans de Graaff <graaff@gentoo.org>2022-03-14 07:33:57 +0100
commit7d2de1a3e6afc0783825a318a6a9547fccb23bda (patch)
treee77922999056335aab32ab67945f80c11db02fcf
parentdev-ruby/minispec-metadata: add ruby30, ruby31; EAPI 8 (diff)
downloadgentoo-7d2de1a3e6afc0783825a318a6a9547fccb23bda.tar.gz
gentoo-7d2de1a3e6afc0783825a318a6a9547fccb23bda.tar.bz2
gentoo-7d2de1a3e6afc0783825a318a6a9547fccb23bda.zip
dev-ruby/image_processing: add 1.12.2
Bug: https://bugs.gentoo.org/834455 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--dev-ruby/image_processing/Manifest1
-rw-r--r--dev-ruby/image_processing/image_processing-1.12.2.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/image_processing/Manifest b/dev-ruby/image_processing/Manifest
index 7bc2b2d42ab..ca6d9bb37bf 100644
--- a/dev-ruby/image_processing/Manifest
+++ b/dev-ruby/image_processing/Manifest
@@ -1 +1,2 @@
DIST image_processing-1.12.1.tar.gz 986447 BLAKE2B cd3fa67c7f9890835d86fe669c5aa450fd91d1a898da3193da0e8d630bbe141867a2b9ac08f28886d167a9bd07128ea135c6300a265517d0155ccdda48a00b03 SHA512 c2f3f3db1c06a8730d98193276b12b9371735929b267054a7866fda032f5860474390b245bcb2017e60cc1b601a2f0f598fc8ebb358e6a98e25bac6fa4d96c7b
+DIST image_processing-1.12.2.tar.gz 986474 BLAKE2B 5e2ec69dde4964f2d4d814130c0f7b9401c75cda87b25fd29a2009921c4b9fe7f8a8aac209387b2d6702c5809196c00afb318337a48a7c672de2122bf55e242b SHA512 58067eff4c28893d6ac774a49b95183d2c294db283eb489fe9a201c93a8d3402bcd348027f5ebffcd11e5c4be2f527d233e0023a55d8713a81ebbc8b9536e0c1
diff --git a/dev-ruby/image_processing/image_processing-1.12.2.ebuild b/dev-ruby/image_processing/image_processing-1.12.2.ebuild
new file mode 100644
index 00000000000..95f754acbab
--- /dev/null
+++ b/dev-ruby/image_processing/image_processing-1.12.2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27"
+
+RUBY_FAKEGEM_RECIPE_DOC="none"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md doc/*.md"
+
+RUBY_FAKEGEM_GEMSPEC="image_processing.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="High-level image processing helper methods with libvips and ImageMagick"
+HOMEPAGE="https://github.com/janko/image_processing"
+SRC_URI="https://github.com/janko/image_processing/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND+=" test? ( media-gfx/imagemagick[jpeg,png,tiff] )"
+
+ruby_add_rdepend "
+ >=dev-ruby/mini_magick-4.9.5:0
+"
+
+ruby_add_bdepend "test? (
+ >=dev-ruby/minitest-5.8:5
+ >=dev-ruby/minitest-hooks-1.4.2
+ dev-ruby/minispec-metadata
+)"
+
+all_ruby_prepare() {
+ # Only support imagemagick for now since vips is not packaged
+ sed -i -e '/ruby-vips/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die
+ rm -f test/{builder,pipeline,vips}_test.rb || die
+ sed -i -e '/assert_dimensions/ s:^:#:' test/*_test.rb || die
+
+ # phash is not packaged
+ sed -i -e '/\(assert\|refute\)_similar/ s:^:#:' test/*_test.rb || die
+
+ sed -i -e '/\(bundler\|phashion\|vips\)/ s:^:#:' Rakefile test/test_helper.rb || die
+}