dev-ruby/image_processing: add 1.10.0
authorHans de Graaff <graaff@gentoo.org>
Fri, 20 Dec 2019 06:41:15 +0000 (07:41 +0100)
committerHans de Graaff <graaff@gentoo.org>
Fri, 20 Dec 2019 06:41:15 +0000 (07:41 +0100)
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
dev-ruby/image_processing/Manifest
dev-ruby/image_processing/image_processing-1.10.0.ebuild [new file with mode: 0644]

index 9ec23a8891df570ff7a7048151f9c2de27779cd6..258f974309541a09a06c3eb4ce27ec7778f89926 100644 (file)
@@ -1 +1,2 @@
+DIST image_processing-1.10.0.tar.gz 984866 BLAKE2B 3afcdff652eec40ea652c68a99d6f18970596a8221883ec627b678b8af0013127471490a093ff190134d12e2b6eb4f8a42252d49b4fc61cfff8858b49d1f124e SHA512 47a465ce4e450647a67bda376bfdb5da5a0ceacfc01be5e15dfc819232b76509fdc2c6a8196042dd8508c69e0d19c8f08a54b939dd3e808f9a2ff31efd891c9a
 DIST image_processing-1.9.3.tar.gz 984561 BLAKE2B 71c729c36e7048ceee3bd452d0429b24303f6898658337211cda4c697823e275f84c8b5ccbce857caa8f63a80e620f11822d3c0024f05343c3d72f9c8aedbdb9 SHA512 117e45146b646632bb2990f1651a494887ec8b75d8dcfcbea241b75d4691329597b7c8979fd13d4e51bacd5065b51594d6de9357e63c8b9b959b78fe075d0a76
diff --git a/dev-ruby/image_processing/image_processing-1.10.0.ebuild b/dev-ruby/image_processing/image_processing-1.10.0.ebuild
new file mode 100644 (file)
index 0000000..2cc5366
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby24 ruby25 ruby26"
+
+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 ~x86"
+IUSE=""
+
+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
+)"
+
+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/{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
+}