diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-08-30 12:03:37 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-08-30 12:20:17 +0200 |
commit | 9269e70fabef7f7b6b5743148cb711ec72941548 (patch) | |
tree | 991f8d7db2b7db11b8714aac3c0bc8277cb80a38 /dev-ruby/image_processing | |
parent | profiles: Add Interbase-1.0 to MISC-FREE license group. (diff) | |
download | gentoo-9269e70fabef7f7b6b5743148cb711ec72941548.tar.gz gentoo-9269e70fabef7f7b6b5743148cb711ec72941548.tar.bz2 gentoo-9269e70fabef7f7b6b5743148cb711ec72941548.zip |
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@gentoo.org>
Diffstat (limited to 'dev-ruby/image_processing')
-rw-r--r-- | dev-ruby/image_processing/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/image_processing/image_processing-1.9.3.ebuild | 42 | ||||
-rw-r--r-- | dev-ruby/image_processing/metadata.xml | 11 |
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-ruby/image_processing/Manifest b/dev-ruby/image_processing/Manifest new file mode 100644 index 000000000000..9ec23a8891df --- /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 000000000000..00324c0fa69c --- /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 000000000000..1f111fbaf4c1 --- /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>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">janko/image_processing</remote-id> + </upstream> +</pkgmetadata> |