commit:     818950fd47c331f8723030ced8eab2c5a6f5528b
Author:     Francisco Javier Félix <web <AT> inode64 <DOT> com>
AuthorDate: Tue Apr 22 16:18:44 2025 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sat Apr 26 01:10:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=818950fd

dev-php/pecl-imagick: add 3.8.0, remove imagemagick[-openmp] dep

Bug: https://bugs.gentoo.org/547922
Closes: https://github.com/gentoo/gentoo/pull/41699
Signed-off-by: INODE64 <web <AT> inode64.com>
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 dev-php/pecl-imagick/Manifest                  |  1 +
 dev-php/pecl-imagick/pecl-imagick-3.8.0.ebuild | 35 ++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/dev-php/pecl-imagick/Manifest b/dev-php/pecl-imagick/Manifest
index 5680f09a093f..643aa64210c4 100644
--- a/dev-php/pecl-imagick/Manifest
+++ b/dev-php/pecl-imagick/Manifest
@@ -1 +1,2 @@
 DIST imagick-3.7.0.tgz 360138 BLAKE2B 
2c149f2ec771df92789d67e88c6f7180d3da7c9182561432bdd4e0a83f96982cc8fc95bc1a003e05e37a54fabe6ab0fe693a6b9208d2e481d36e6c334aeee023
 SHA512 
c84408e4e4a0c46d979240e06d58d264c6bb21f3b95e3d434c8a21cd808f6c495fd453ef9c07b5c44dac81c6f205b6697f8ecaf1a65a86ce4e9052328a389ebe
+DIST imagick-3.8.0.tgz 363874 BLAKE2B 
32138879b7026edd9fef4a87bdc5acd6e360737c09f6e582cb668165c7ba19f88a58c5643447a2ac4f2e0207ca49540cc7783490f84692716581c7f2dd5fcd2f
 SHA512 
9ed2eda2220ab96e23587cfea9e2030a2e7084abf12753c3fff37e76fa2611d67149928d480d51fd8e2d0e3219058bd206bd30c6c436595f93d4158fbd051623

diff --git a/dev-php/pecl-imagick/pecl-imagick-3.8.0.ebuild 
b/dev-php/pecl-imagick/pecl-imagick-3.8.0.ebuild
new file mode 100644
index 000000000000..0e4383747c97
--- /dev/null
+++ b/dev-php/pecl-imagick/pecl-imagick-3.8.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PHP_EXT_NAME="imagick"
+USE_PHP="php8-1 php8-2 php8-3 php8-4"
+
+# https://github.com/Imagick/imagick/issues/626
+PHP_EXT_NEEDED_USE="-debug"
+
+inherit php-ext-pecl-r3
+
+DESCRIPTION="PHP wrapper for the ImageMagick library"
+HOMEPAGE="https://pecl.php.net/package/imagick 
https://github.com/Imagick/imagick";
+LICENSE="PHP-3.01"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="examples test"
+RESTRICT="!test? ( test )"
+
+# imagemagick[-openmp] is needed wrt bug 547922 and upstream
+# https://github.com/Imagick/imagick#openmp
+RDEPEND="media-gfx/imagemagick"
+DEPEND="
+       ${RDEPEND}
+       test? ( media-gfx/imagemagick:=[hdri,jpeg,png,svg,truetype,xml] )
+"
+
+PHP_EXT_ECONF_ARGS="--with-imagick=${EPREFIX}/usr"
+
+src_install() {
+       php-ext-pecl-r3_src_install
+       php-ext-source-r3_addtoinifiles "imagick.skip_version_check" "1"
+}

Reply via email to