summaryrefslogtreecommitdiff
path: root/dev-ruby/rmagick
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-19 00:09:54 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-19 00:09:54 +0100
commite8df704cf9b5e9e517317b8912377c0a8ca0d11e (patch)
treeab3f43045fb1d37471f8217c8547d2120bb3d1da /dev-ruby/rmagick
parentccaccfe4f1da8c11d9fa110f6e4eb847358769d7 (diff)
gentoo auto-resync : 19:06:2024 - 00:09:54
Diffstat (limited to 'dev-ruby/rmagick')
-rw-r--r--dev-ruby/rmagick/Manifest2
-rw-r--r--dev-ruby/rmagick/rmagick-5.5.0-r1.ebuild82
-rw-r--r--dev-ruby/rmagick/rmagick-6.0.1-r1.ebuild82
3 files changed, 166 insertions, 0 deletions
diff --git a/dev-ruby/rmagick/Manifest b/dev-ruby/rmagick/Manifest
index f27656e1ec56..5271b86f918d 100644
--- a/dev-ruby/rmagick/Manifest
+++ b/dev-ruby/rmagick/Manifest
@@ -5,7 +5,9 @@ DIST rmagick-6.0.0.tar.gz 2046555 BLAKE2B 7591c8955a893d1b5d7bb6fb633c9fafbf4483
DIST rmagick-6.0.1.tar.gz 2045860 BLAKE2B e36ed9c2719df593cce32591111010a8d64e54ff4348ed22ebf9d840ca6f7ceec91b8097b5258bb0a195db63c422373e408f5995cef8944eac42e71d6fd00c4e SHA512 a6fdecd4ad6d17045438a9a14fc6c0a8b9d18224d6d3d0af2ade6fcba1bd0c889710f03d8b2f9738214023d87c504f7a7017f49b467a778fa3d97a14aa2bfeb3
EBUILD rmagick-4.3.0.ebuild 2385 BLAKE2B af3b86b7c393d995f2a71b9b9f068ae239586ed102c71dbd317787624fcfcedb70a8afb5984af92181a6e17d5d3574908013ba3b67e6123e757191e211de52c8 SHA512 96ebae4cfcd9ae551712ef52743a3033acbc49861ee5670cfd1ad3927aee9a8e864ea051a6f9e7e0a46d6bacd66808f319b020333b82070ab16fccf101521d7b
EBUILD rmagick-5.3.0.ebuild 2327 BLAKE2B 815d47607818d859a219ef071d5d05cea459599067ccc1227a2fab12b68be9d75921eb6c87bfb297bec82528d8a0d536357862611f85e448541db252e907a6f9 SHA512 d1be50d46e95337724ff24eb28d5389b6aed7013697a36c41116f839d8b01c329289f189dea0ee8cd1956178915145dd817cdd9b662ba0402faf689992079341
+EBUILD rmagick-5.5.0-r1.ebuild 2223 BLAKE2B d147ce710b8395d275e55a77ac0fd47d23a5e54ce77f1e290a5271d01d7395a67d633cbb8099d9ecfa88f85f8c1b533f07ae797a32d6b132ab968cd3e4ffbfe2 SHA512 84c9c8703c09dcd009786f307ed6a44a5ffd4d773a408bde61fd47eeb1abd450f79489541084fab570224c375d51f7a7b8c23d0a71f0ddfd26313677f95b7754
EBUILD rmagick-5.5.0.ebuild 2194 BLAKE2B 957b5df4b3da24780be635474bbf637b4e81c8eb6b384348c4a98e83c12bef9d824e1fb663cfea5e3197f9cd0769f78d4f952e9defda1dca68e992c98af7dec4 SHA512 f82c157df4cc07ffce86f11402f877b1651831263fde49a5eb226c08885a9bbd95cc0a795149dc7e5d14578fe4d7b1b0b428a0fb211e01ae28206570938c0395
EBUILD rmagick-6.0.0.ebuild 2194 BLAKE2B 957b5df4b3da24780be635474bbf637b4e81c8eb6b384348c4a98e83c12bef9d824e1fb663cfea5e3197f9cd0769f78d4f952e9defda1dca68e992c98af7dec4 SHA512 f82c157df4cc07ffce86f11402f877b1651831263fde49a5eb226c08885a9bbd95cc0a795149dc7e5d14578fe4d7b1b0b428a0fb211e01ae28206570938c0395
+EBUILD rmagick-6.0.1-r1.ebuild 2227 BLAKE2B 41d96a582d756e0d2542602188abbc3291fb0469fde1ff576c63a0f75af6a1a99d23aa97a4c6bd70925e258dd2de83ca10964778dca9f0a721de290915f4c7d9 SHA512 51275db1ebc73635a21dbc8bee491029cb4befefccb79f1f919d90e52696be548150242130985391fc77440e41b0c0b562ac675c95d6776158ddb6b48059ec95
EBUILD rmagick-6.0.1.ebuild 2194 BLAKE2B 957b5df4b3da24780be635474bbf637b4e81c8eb6b384348c4a98e83c12bef9d824e1fb663cfea5e3197f9cd0769f78d4f952e9defda1dca68e992c98af7dec4 SHA512 f82c157df4cc07ffce86f11402f877b1651831263fde49a5eb226c08885a9bbd95cc0a795149dc7e5d14578fe4d7b1b0b428a0fb211e01ae28206570938c0395
MISC metadata.xml 393 BLAKE2B 3edbb25a18dc0c0d750cc690bdac1953e583982b54432b9c7440292d8af8277f9698da03947c64b0fa2c275d59fa278d9801d11e79970a330f7dd6748e093f2c SHA512 c38f821c322ae3fac665251d9b4dc936d4213bb8ecd3220078febe454238d56f5b12eef3dd0500dd06fad4a460ce4c16f08c709c42c05de3484fd7d0b3d929c4
diff --git a/dev-ruby/rmagick/rmagick-5.5.0-r1.ebuild b/dev-ruby/rmagick/rmagick-5.5.0-r1.ebuild
new file mode 100644
index 000000000000..5fdb1df1466f
--- /dev/null
+++ b/dev-ruby/rmagick/rmagick-5.5.0-r1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_TASK_DOC=""
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="rmagick.gemspec"
+
+RUBY_FAKEGEM_EXTENSIONS=(ext/RMagick/extconf.rb)
+
+MY_PV=RMagick_${PV//\./-}
+
+inherit ruby-fakegem
+
+DESCRIPTION="An interface between Ruby and the ImageMagick(TM) image processing library"
+HOMEPAGE="https://github.com/rmagick/rmagick"
+SRC_URI="https://github.com/rmagick/rmagick/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+RUBY_S="rmagick-${MY_PV}"
+
+LICENSE="Artistic"
+SLOT="$(ver_cut 1)"
+KEYWORDS="amd64 ~hppa ppc ppc64 x86"
+IUSE="doc"
+
+RDEPEND+=" >=media-gfx/imagemagick-6.9.0:="
+DEPEND+=" >=media-gfx/imagemagick-6.9.0 test? ( >=media-gfx/imagemagick-7.1.0:=[jpeg,lqr,lcms,postscript,tiff,webp,xml] media-fonts/dejavu )"
+
+# observer is a default gem packaged with ruby
+
+ruby_add_bdepend "dev-ruby/pkg-config"
+
+all_ruby_prepare() {
+ # Avoid unused dependency on rake-compiler. This also avoids an
+ # extra compile during tests.
+ sed -i -e '/extensiontask/ s:^:#:' \
+ -e '/ExtensionTask/,/end/ s:^:#:' \
+ -e '/compile/ s:^:#:' Rakefile || die
+ sed -i -e '/pry/ s:^:#:' -e '5irequire "tempfile"' spec/spec_helper.rb || die
+ sed -e 's/git ls-files/find */' \
+ -e '/pkg-config/ s:^:#:' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Squelch harmless warning about imagemagick installation.
+ sed -i -e '/prefix/ s:ImageMagick:ImageMagick-6:' ext/RMagick/extconf.rb || die
+
+ # Create directory used for a test
+ mkdir tmp
+}
+
+each_ruby_test() {
+ # Borrowed from media-gfx/gscan2pdf
+ # Needed to avoid test failures on e.g. ppc, bug #815856
+ # (Unclear why it doesn't manifest on amd64 here at least)
+ local confdir="${HOME}/.config/ImageMagick"
+ mkdir -p "${confdir}" || die
+ cat > "${confdir}/policy.xml" <<-EOT || die
+ <policymap>
+ <policy domain="coder" rights="read|write" pattern="PDF" />
+ <policy domain="coder" rights="read" pattern="PS" />
+ </policymap>
+ EOT
+
+ RSPEC_VERSION="3" ruby-ng_rspec
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ docinto examples
+ dodoc examples/*
+
+ if use doc ; then
+ docinto .
+ dodoc -r doc
+ fi
+}
diff --git a/dev-ruby/rmagick/rmagick-6.0.1-r1.ebuild b/dev-ruby/rmagick/rmagick-6.0.1-r1.ebuild
new file mode 100644
index 000000000000..8fe6a2de70d5
--- /dev/null
+++ b/dev-ruby/rmagick/rmagick-6.0.1-r1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_TASK_DOC=""
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="rmagick.gemspec"
+
+RUBY_FAKEGEM_EXTENSIONS=(ext/RMagick/extconf.rb)
+
+MY_PV=RMagick_${PV//\./-}
+
+inherit ruby-fakegem
+
+DESCRIPTION="An interface between Ruby and the ImageMagick(TM) image processing library"
+HOMEPAGE="https://github.com/rmagick/rmagick"
+SRC_URI="https://github.com/rmagick/rmagick/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+RUBY_S="rmagick-${MY_PV}"
+
+LICENSE="Artistic"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="doc"
+
+RDEPEND+=" >=media-gfx/imagemagick-6.9.0:="
+DEPEND+=" >=media-gfx/imagemagick-6.9.0 test? ( >=media-gfx/imagemagick-7.1.0:=[jpeg,lqr,lcms,postscript,tiff,webp,xml] media-fonts/dejavu )"
+
+# observer is a default gem packaged with ruby
+
+ruby_add_bdepend "dev-ruby/pkg-config"
+
+all_ruby_prepare() {
+ # Avoid unused dependency on rake-compiler. This also avoids an
+ # extra compile during tests.
+ sed -i -e '/extensiontask/ s:^:#:' \
+ -e '/ExtensionTask/,/end/ s:^:#:' \
+ -e '/compile/ s:^:#:' Rakefile || die
+ sed -i -e '/pry/ s:^:#:' -e '5irequire "tempfile"' spec/spec_helper.rb || die
+ sed -e 's/git ls-files/find */' \
+ -e '/pkg-config/ s:^:#:' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Squelch harmless warning about imagemagick installation.
+ sed -i -e '/prefix/ s:ImageMagick:ImageMagick-6:' ext/RMagick/extconf.rb || die
+
+ # Create directory used for a test
+ mkdir tmp
+}
+
+each_ruby_test() {
+ # Borrowed from media-gfx/gscan2pdf
+ # Needed to avoid test failures on e.g. ppc, bug #815856
+ # (Unclear why it doesn't manifest on amd64 here at least)
+ local confdir="${HOME}/.config/ImageMagick"
+ mkdir -p "${confdir}" || die
+ cat > "${confdir}/policy.xml" <<-EOT || die
+ <policymap>
+ <policy domain="coder" rights="read|write" pattern="PDF" />
+ <policy domain="coder" rights="read" pattern="PS" />
+ </policymap>
+ EOT
+
+ RSPEC_VERSION="3" ruby-ng_rspec
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ docinto examples
+ dodoc examples/*
+
+ if use doc ; then
+ docinto .
+ dodoc -r doc
+ fi
+}