summaryrefslogtreecommitdiff
path: root/dev-ruby/mini_magick
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ruby/mini_magick
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ruby/mini_magick')
-rw-r--r--dev-ruby/mini_magick/Manifest7
-rw-r--r--dev-ruby/mini_magick/metadata.xml11
-rw-r--r--dev-ruby/mini_magick/mini_magick-4.5.1-r1.ebuild47
-rw-r--r--dev-ruby/mini_magick/mini_magick-4.8.0.ebuild59
4 files changed, 124 insertions, 0 deletions
diff --git a/dev-ruby/mini_magick/Manifest b/dev-ruby/mini_magick/Manifest
new file mode 100644
index 000000000000..fff0075e5876
--- /dev/null
+++ b/dev-ruby/mini_magick/Manifest
@@ -0,0 +1,7 @@
+DIST mini_magick-4.5.1.tar.gz 1113157 SHA256 4222e9c8b84914230669e0a180a2e1d68e6c3d0d2b9e2464faf664bd545e8522 SHA512 d586f8a33e1050923311bbd26209ba01488b5249335a19898df47479e4dfca25fba33db6dd57da420e73fbc48eab27723fb4937a7a932c1b39143bfd02bea654 WHIRLPOOL 623b01092ff2e4647a318ee67025d04cdacba252dcae87139d88a1eef535262af38a80d72f08b49cf6889d0ec95a876bfd2482ef66e5b4242f92ea3075fb0705
+DIST mini_magick-4.8.0.tar.gz 1184374 SHA256 1fe7d28eeeb5242fd7d0274f796c253c734a3636216b8bfc74d01ac77ea2be09 SHA512 7c582c967480f51114c42eec2f8c260713755fa3e6078eaf5a296b0cb4502f2edd1dd65d5ef46409226943913b81e8818fc3066a09879e9da7dcb0f9f732f6d4 WHIRLPOOL ed4baf27d9ed3e97f78adb367c4878944a8438662c7f2f069eae7e0a33423427045b0fffa6560996b6e572dd6c4acd822d1a5e0aaa31093b1f645a80dce571d1
+EBUILD mini_magick-4.5.1-r1.ebuild 1403 SHA256 76993e1faf2a77dbca418109c7bb5c62f4ca0ac8b6fdd4bcf5ad287dd7ec2224 SHA512 76c276a1c168f9a88c35bf059298a8ca224f6bc3d985ba9e36c9ed2c8ebb7dab259172ef42d997e0ebdae778a265228d4fe09e4715bb4cd96708808f3f705ee0 WHIRLPOOL 5e23e41378dcfd449e2b401d804ec732c2ce193333f40cd852821c3115fc87816d2aabcc718146caf2b031ea0d29961ab7d3d7bdba68bb5f600c2b3e88e00bda
+EBUILD mini_magick-4.8.0.ebuild 2084 SHA256 f86e1c248d31ce6de2ab6486948822088d8a87bec76244adf1fe872802f468ac SHA512 a25cfdc2aed29b5a033767093a480094ece5afa86fe9c7eaab74681981dd0c4c2c9e704ed3b385348e17a528e3ea0595b34741eb203cbed8ef36a4e83e3b3cdf WHIRLPOOL ff15bd30b0aaa54a3272b4961d3cd948d19d36be62adcb6c6abe01226021c2344e4b646352309996b91339e24a11457b49d54bd36dc98cf6a76bf3dc7f201523
+MISC ChangeLog 4049 SHA256 0e4d73e37cf5f6b5dd2aa8a0383d46c2ea6ffdd2c36cf230173424e95290ff9e SHA512 fb1320479c1534611f8ca44433abf88b06bc992f621c5a5c5a9ceb7d05cc2366dd4f90acb19ad74285779959935a44a3be50f9d14e83dd244081eb0672bd47c3 WHIRLPOOL 7756971abeb182369bb317d01d5fdf648f04d72c630ff0d65581a5592af515cc591ccbb1f2e0c6741aff118b266985fb9ce6c03fe5b9d30b26d3eba2ec8572f2
+MISC ChangeLog-2015 5177 SHA256 54076ebd5f8afb498557a1ac242db30455ceaec00dda9587c571ea6e71a227c0 SHA512 7087dfd35414553c7f54e3b3e6795b1ac1baaac706234494a9aa5cb1f002ce2c7ff9faa0c8c41d08c05a6e9206337de01045d02e4b3000922888947db5694e79 WHIRLPOOL 4c2b4e4c140b00d557dc6191e0c1c99a84744ffeace032c61b40475b1413edd164a8a461aa61167b2b1739af775234c8c643123833e3767eb6bf663ad54c8a36
+MISC metadata.xml 347 SHA256 51016d3a03c2a5b312a3ae7720021aa4c048ac193d8607c7fb4f536fd33a8cf6 SHA512 9b98a4a0ec7b4c2945df5300ad26d8ffe1394294d0c6e142dc7e55e2cd270327df70fed857ff7d6f12f6b0212d6c25b8043be7800fdcca20bd58d14ac75fe6d5 WHIRLPOOL fec54ee78fcd4a26b2a689ada66048fe00f29a0899b6eb2832521130431becf0b4dae2d9045b915f4cf2271fc1300de94d696dfc1a9f54aac7361af591ae46a7
diff --git a/dev-ruby/mini_magick/metadata.xml b/dev-ruby/mini_magick/metadata.xml
new file mode 100644
index 000000000000..829b08d87273
--- /dev/null
+++ b/dev-ruby/mini_magick/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">minimagick/minimagick</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/mini_magick/mini_magick-4.5.1-r1.ebuild b/dev-ruby/mini_magick/mini_magick-4.5.1-r1.ebuild
new file mode 100644
index 000000000000..6990bdc73cd3
--- /dev/null
+++ b/dev-ruby/mini_magick/mini_magick-4.5.1-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem eutils
+
+DESCRIPTION="Manipulate images with minimal use of memory"
+HOMEPAGE="https://github.com/minimagick/minimagick"
+SRC_URI="https://github.com/minimagick/minimagick/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+RUBY_S="minimagick-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+# It's only used at runtime in this case because this extension only
+# _calls_ the commands. But when we run tests we're going to need tiff
+# and jpeg support at a minimum.
+RDEPEND+=" media-gfx/imagemagick"
+DEPEND+=" test? ( virtual/imagemagick-tools[jpeg,png,tiff] )"
+
+ruby_add_bdepend "test? ( dev-ruby/mocha dev-ruby/posix-spawn )"
+
+all_ruby_prepare() {
+ # remove executable bit from all files
+ find "${S}" -type f -exec chmod -x {} +
+
+ sed -i -e '/\([Bb]undler\|pry\)/ s:^:#:' spec/spec_helper.rb || die
+
+ # Don't force a specific formatter but use overall Gentoo defaults.
+ sed -i -e '/config.formatter/d' spec/spec_helper.rb || die
+
+ # Avoid broken spec that does not assume . in path name
+ sed -i -e '/reformats a layer/,/end/ s:^:#:' spec/lib/mini_magick/image_spec.rb || die
+}
diff --git a/dev-ruby/mini_magick/mini_magick-4.8.0.ebuild b/dev-ruby/mini_magick/mini_magick-4.8.0.ebuild
new file mode 100644
index 000000000000..cb55de611fed
--- /dev/null
+++ b/dev-ruby/mini_magick/mini_magick-4.8.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem eutils
+
+DESCRIPTION="Manipulate images with minimal use of memory"
+HOMEPAGE="https://github.com/minimagick/minimagick"
+SRC_URI="https://github.com/minimagick/minimagick/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+RUBY_S="minimagick-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+# It's only used at runtime in this case because this extension only
+# _calls_ the commands. But when we run tests we're going to need tiff
+# and jpeg support at a minimum.
+RDEPEND+=" media-gfx/imagemagick"
+DEPEND+=" test? ( virtual/imagemagick-tools[jpeg,png,tiff] )"
+
+ruby_add_bdepend "test? ( dev-ruby/mocha dev-ruby/posix-spawn dev-ruby/webmock )"
+
+all_ruby_prepare() {
+ # remove executable bit from all files
+ find "${S}" -type f -exec chmod -x {} +
+
+ sed -i -e '/\([Bb]undler\|pry\)/ s:^:#:' spec/spec_helper.rb || die
+
+ # Don't force a specific formatter but use overall Gentoo defaults.
+ sed -i -e '/config.formatter/d' spec/spec_helper.rb || die
+
+ # Avoid broken spec that does not assume . in path name
+ sed -i -e '/reformats a layer/,/end/ s:^:#:' spec/lib/mini_magick/image_spec.rb || die
+
+ # Avoid failing spec that also fails in upstream Travis
+ sed -i -e '/returns a hash of verbose information/,/^ end/ s:^:#:' spec/lib/mini_magick/image_spec.rb || die
+
+ # Make spec more lenient to imagemagick quoting
+ sed -i -e "/unable to open image/ s/'foo'/.foo./" spec/lib/mini_magick/shell_spec.rb || die
+
+ # Avoid graphicsmagick tests because installing both in parallel for
+ # tests is hard.
+ sed -i -e 's/:graphicsmagick//' spec/spec_helper.rb || die
+ sed -i -e '/identifies when gm exists/,/^ end/ s:^:#:' spec/lib/mini_magick/utilities_spec.rb || die
+ sed -i -e '/returns GraphicsMagick/,/^ end/ s:^:#:' spec/lib/mini_magick_spec.rb || die
+}