commit: 9269e70fabef7f7b6b5743148cb711ec72941548 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Fri Aug 30 10:03:37 2019 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Fri Aug 30 10:20:17 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9269e70f
dev-ruby/image_processing: initial import of 1.9.3 This version does not include vips support since the vips library is unpackaged. It also lacks a number of tests due to lack of a packaged phash library. This package has been added regardless since it is now a test dependency for dev-ruby/activestorage, and it will be mandatory in Rails 6.1. Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/image_processing/Manifest | 1 + .../image_processing/image_processing-1.9.3.ebuild | 42 ++++++++++++++++++++++ dev-ruby/image_processing/metadata.xml | 11 ++++++ 3 files changed, 54 insertions(+) diff --git a/dev-ruby/image_processing/Manifest b/dev-ruby/image_processing/Manifest new file mode 100644 index 00000000000..9ec23a8891d --- /dev/null +++ b/dev-ruby/image_processing/Manifest @@ -0,0 +1 @@ +DIST image_processing-1.9.3.tar.gz 984561 BLAKE2B 71c729c36e7048ceee3bd452d0429b24303f6898658337211cda4c697823e275f84c8b5ccbce857caa8f63a80e620f11822d3c0024f05343c3d72f9c8aedbdb9 SHA512 117e45146b646632bb2990f1651a494887ec8b75d8dcfcbea241b75d4691329597b7c8979fd13d4e51bacd5065b51594d6de9357e63c8b9b959b78fe075d0a76 diff --git a/dev-ruby/image_processing/image_processing-1.9.3.ebuild b/dev-ruby/image_processing/image_processing-1.9.3.ebuild new file mode 100644 index 00000000000..00324c0fa69 --- /dev/null +++ b/dev-ruby/image_processing/image_processing-1.9.3.ebuild @@ -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" +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:^:#:' test/test_helper.rb || die +} diff --git a/dev-ruby/image_processing/metadata.xml b/dev-ruby/image_processing/metadata.xml new file mode 100644 index 00000000000..1f111fbaf4c --- /dev/null +++ b/dev-ruby/image_processing/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">janko/image_processing</remote-id> + </upstream> +</pkgmetadata>
