diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-03-13 09:54:37 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-03-14 07:33:57 +0100 |
commit | 7d2de1a3e6afc0783825a318a6a9547fccb23bda (patch) | |
tree | e77922999056335aab32ab67945f80c11db02fcf /dev-ruby/image_processing/image_processing-1.12.2.ebuild | |
parent | dev-ruby/minispec-metadata: add ruby30, ruby31; EAPI 8 (diff) | |
download | gentoo-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>
Diffstat (limited to 'dev-ruby/image_processing/image_processing-1.12.2.ebuild')
-rw-r--r-- | dev-ruby/image_processing/image_processing-1.12.2.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
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 000000000000..95f754acbab0 --- /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 +} |