1 |
commit: 9269e70fabef7f7b6b5743148cb711ec72941548 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 30 10:03:37 2019 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 30 10:20:17 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9269e70f |
7 |
|
8 |
dev-ruby/image_processing: initial import of 1.9.3 |
9 |
|
10 |
This version does not include vips support since the vips library is |
11 |
unpackaged. It also lacks a number of tests due to lack of a packaged |
12 |
phash library. |
13 |
|
14 |
This package has been added regardless since it is now a test dependency |
15 |
for dev-ruby/activestorage, and it will be mandatory in Rails 6.1. |
16 |
|
17 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
18 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
19 |
|
20 |
dev-ruby/image_processing/Manifest | 1 + |
21 |
.../image_processing/image_processing-1.9.3.ebuild | 42 ++++++++++++++++++++++ |
22 |
dev-ruby/image_processing/metadata.xml | 11 ++++++ |
23 |
3 files changed, 54 insertions(+) |
24 |
|
25 |
diff --git a/dev-ruby/image_processing/Manifest b/dev-ruby/image_processing/Manifest |
26 |
new file mode 100644 |
27 |
index 00000000000..9ec23a8891d |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/image_processing/Manifest |
30 |
@@ -0,0 +1 @@ |
31 |
+DIST image_processing-1.9.3.tar.gz 984561 BLAKE2B 71c729c36e7048ceee3bd452d0429b24303f6898658337211cda4c697823e275f84c8b5ccbce857caa8f63a80e620f11822d3c0024f05343c3d72f9c8aedbdb9 SHA512 117e45146b646632bb2990f1651a494887ec8b75d8dcfcbea241b75d4691329597b7c8979fd13d4e51bacd5065b51594d6de9357e63c8b9b959b78fe075d0a76 |
32 |
|
33 |
diff --git a/dev-ruby/image_processing/image_processing-1.9.3.ebuild b/dev-ruby/image_processing/image_processing-1.9.3.ebuild |
34 |
new file mode 100644 |
35 |
index 00000000000..00324c0fa69 |
36 |
--- /dev/null |
37 |
+++ b/dev-ruby/image_processing/image_processing-1.9.3.ebuild |
38 |
@@ -0,0 +1,42 @@ |
39 |
+# Copyright 1999-2019 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=7 |
43 |
+USE_RUBY="ruby24 ruby25 ruby26" |
44 |
+ |
45 |
+RUBY_FAKEGEM_RECIPE_DOC="none" |
46 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md doc/*.md" |
47 |
+ |
48 |
+RUBY_FAKEGEM_GEMSPEC="image_processing.gemspec" |
49 |
+ |
50 |
+inherit ruby-fakegem |
51 |
+ |
52 |
+DESCRIPTION="High-level image processing helper methods with libvips and ImageMagick" |
53 |
+HOMEPAGE="https://github.com/janko/image_processing" |
54 |
+SRC_URI="https://github.com/janko/image_processing/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
55 |
+ |
56 |
+LICENSE="MIT" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~amd64" |
59 |
+IUSE="" |
60 |
+ |
61 |
+ruby_add_rdepend " |
62 |
+ >=dev-ruby/mini_magick-4.9.5:0 |
63 |
+" |
64 |
+ |
65 |
+ruby_add_bdepend "test? ( |
66 |
+ >=dev-ruby/minitest-5.8:5 |
67 |
+ >=dev-ruby/minitest-hooks-1.4.2 |
68 |
+)" |
69 |
+ |
70 |
+all_ruby_prepare() { |
71 |
+ # Only support imagemagick for now since vips is not packaged |
72 |
+ sed -i -e '/ruby-vips/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die |
73 |
+ rm -f test/{pipeline,vips}_test.rb || die |
74 |
+ sed -i -e '/assert_dimensions/ s:^:#:' test/*_test.rb || die |
75 |
+ |
76 |
+ # phash is not packaged |
77 |
+ sed -i -e '/\(assert\|refute\)_similar/ s:^:#:' test/*_test.rb || die |
78 |
+ |
79 |
+ sed -i -e '/\(bundler\|phashion\|vips\)/ s:^:#:' test/test_helper.rb || die |
80 |
+} |
81 |
|
82 |
diff --git a/dev-ruby/image_processing/metadata.xml b/dev-ruby/image_processing/metadata.xml |
83 |
new file mode 100644 |
84 |
index 00000000000..1f111fbaf4c |
85 |
--- /dev/null |
86 |
+++ b/dev-ruby/image_processing/metadata.xml |
87 |
@@ -0,0 +1,11 @@ |
88 |
+<?xml version="1.0" encoding="UTF-8"?> |
89 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
90 |
+<pkgmetadata> |
91 |
+ <maintainer type="project"> |
92 |
+ <email>ruby@g.o</email> |
93 |
+ <name>Gentoo Ruby Project</name> |
94 |
+ </maintainer> |
95 |
+ <upstream> |
96 |
+ <remote-id type="github">janko/image_processing</remote-id> |
97 |
+ </upstream> |
98 |
+</pkgmetadata> |