summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-07-25 06:37:22 +0200
committerHans de Graaff <graaff@gentoo.org>2024-07-25 06:38:10 +0200
commit732d79711652bc59a6489d565f1fab744239a19c (patch)
tree3b8a598a7460c6544ebbf96bb7d2cbca67dfc88d /dev-ruby/image_processing
parentdev-ruby/mocha: drop 2.4.0, 2.4.1, 2.4.2, 2.4.3 (diff)
downloadgentoo-732d79711652bc59a6489d565f1fab744239a19c.tar.gz
gentoo-732d79711652bc59a6489d565f1fab744239a19c.tar.bz2
gentoo-732d79711652bc59a6489d565f1fab744239a19c.zip
dev-ruby/image_processing: add 1.13.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/image_processing')
-rw-r--r--dev-ruby/image_processing/Manifest1
-rw-r--r--dev-ruby/image_processing/image_processing-1.13.0.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/image_processing/Manifest b/dev-ruby/image_processing/Manifest
index 79c86a5b9ae3..8835434d4047 100644
--- a/dev-ruby/image_processing/Manifest
+++ b/dev-ruby/image_processing/Manifest
@@ -1 +1,2 @@
DIST image_processing-1.12.2.tar.gz 986474 BLAKE2B 5e2ec69dde4964f2d4d814130c0f7b9401c75cda87b25fd29a2009921c4b9fe7f8a8aac209387b2d6702c5809196c00afb318337a48a7c672de2122bf55e242b SHA512 58067eff4c28893d6ac774a49b95183d2c294db283eb489fe9a201c93a8d3402bcd348027f5ebffcd11e5c4be2f527d233e0023a55d8713a81ebbc8b9536e0c1
+DIST image_processing-1.13.0.tar.gz 1166646 BLAKE2B 9ce172f9cfe7d212165fe95f58b4b20e434803992c4cabcee963818f4e35201d9962aceddf7c3647325e99930f5ae2cb069ab8ca7b7ac1c74428953dd1710076 SHA512 92fbd94db66abf7ea6256f9c475fd05b84ba1791bc00d4b03774ba22ebea2fb56fa75bc18fd7d39330e13d6b03460df60a3aebeaf1227834c854c458d6d99d7a
diff --git a/dev-ruby/image_processing/image_processing-1.13.0.ebuild b/dev-ruby/image_processing/image_processing-1.13.0.ebuild
new file mode 100644
index 000000000000..43d271b47b76
--- /dev/null
+++ b/dev-ruby/image_processing/image_processing-1.13.0.ebuild
@@ -0,0 +1,45 @@
+# 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_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 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="test"
+
+DEPEND+=" test? ( media-gfx/imagemagick[jpeg,png,tiff,xml] )"
+
+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
+}