From d46d1d3a5897cade51811b3848c7bf27969da625 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 28 Dec 2023 07:37:55 +0000 Subject: gentoo auto-resync : 28:12:2023 - 07:37:55 --- dev-php/pecl-imagick/Manifest | 2 ++ .../files/pecl-imagick-3.7.0-php8.3.patch | 20 ++++++++++++ dev-php/pecl-imagick/pecl-imagick-3.7.0-r3.ebuild | 38 ++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 dev-php/pecl-imagick/files/pecl-imagick-3.7.0-php8.3.patch create mode 100644 dev-php/pecl-imagick/pecl-imagick-3.7.0-r3.ebuild (limited to 'dev-php/pecl-imagick') diff --git a/dev-php/pecl-imagick/Manifest b/dev-php/pecl-imagick/Manifest index 5f6eccadf306..7ebc535cdeec 100644 --- a/dev-php/pecl-imagick/Manifest +++ b/dev-php/pecl-imagick/Manifest @@ -1,3 +1,5 @@ +AUX pecl-imagick-3.7.0-php8.3.patch 599 BLAKE2B e7de69a62d949738d132d40788c44d8441c0bdebb548b61b874fa7f9bf5dc287ab8061bdd133abe0bd3e2075b777ee43ccd847ae9cdb429500db214fac4af065 SHA512 9f2abe51c7fba5739ef9a2de484a3131ca6c79e09db3c2a59029c3b5c8a2c29df15d75cc4feb2f35215ed7faa30b42d403cc729260a89b40e8dc7cdf08e17a61 DIST imagick-3.7.0.tgz 360138 BLAKE2B 2c149f2ec771df92789d67e88c6f7180d3da7c9182561432bdd4e0a83f96982cc8fc95bc1a003e05e37a54fabe6ab0fe693a6b9208d2e481d36e6c334aeee023 SHA512 c84408e4e4a0c46d979240e06d58d264c6bb21f3b95e3d434c8a21cd808f6c495fd453ef9c07b5c44dac81c6f205b6697f8ecaf1a65a86ce4e9052328a389ebe EBUILD pecl-imagick-3.7.0-r2.ebuild 919 BLAKE2B d648c1dec5c816f40967aa563854b2a282ceb784cf4c1657f8deadcf1196203e84e65fa0afbde12e20ed420c9783c5a1ce783938fc701a2a7d41c312643ea40d SHA512 25cd45526ac912cd162efb2f1bf4a2334c1cc37cd7ae6b2a6e6222c65d8ddf67b3a31a4912e0c1231379c123f2d624fbc4040090d4d7918f082fb3fe678a3589 +EBUILD pecl-imagick-3.7.0-r3.ebuild 977 BLAKE2B 499a132b77fa8712fd6cd256e6b5ab8e19ca0123fc68277a3aa327d5dcd05bc1f0699289d0ae728e72e838b53ee79c9fc07e42b009fa5f985085540a50dd3e6e SHA512 4cad0aff313065f2725da631663ed1e428d9d2bca68cc6761056b3164ad1273117ba967a2c7e411c928c5c2b928dd42abece1a9ef9ede6c96197f4266b1cccdc MISC metadata.xml 443 BLAKE2B 208b9e5262b94da1cc49b6f4666e62b6d856c10643c8dc6c1572ee641fd671a2338ceec56ca88f4c56247cd06f7d4288684ab721547d86eb3bc84bd694c5f9ef SHA512 b8d47d2293ef17d2aaaf23cb78a58df295020fd854131e53b55feb727c850bea669ed1bd24cab97c02264028b8bcd335e928b1d86702e06245c72370ccf0507c diff --git a/dev-php/pecl-imagick/files/pecl-imagick-3.7.0-php8.3.patch b/dev-php/pecl-imagick/files/pecl-imagick-3.7.0-php8.3.patch new file mode 100644 index 000000000000..d75d23dbf11b --- /dev/null +++ b/dev-php/pecl-imagick/files/pecl-imagick-3.7.0-php8.3.patch @@ -0,0 +1,20 @@ +From 7088edc353f53c4bc644573a79cdcd67a726ae16 Mon Sep 17 00:00:00 2001 +From: FedericoHeichou +Date: Fri, 24 Nov 2023 11:24:00 +0100 +Subject: [PATCH] Fix compilation error "Unterminated preprocessor conditions" + in php 8.3 + +--- + Imagick.stub.php | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Imagick.stub.php b/Imagick.stub.php +index 804c0152..49da9386 100644 +--- a/Imagick.stub.php ++++ b/Imagick.stub.php +@@ -1669,4 +1669,5 @@ public function setInterpolateMethod(int $method): bool{} + public function setOrientation(int $orientation): bool {} + #endif + ++#endif + } diff --git a/dev-php/pecl-imagick/pecl-imagick-3.7.0-r3.ebuild b/dev-php/pecl-imagick/pecl-imagick-3.7.0-r3.ebuild new file mode 100644 index 000000000000..2e99e271ad8e --- /dev/null +++ b/dev-php/pecl-imagick/pecl-imagick-3.7.0-r3.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_NAME="imagick" +USE_PHP="php8-0 php8-1 php8-2 php8-3" + +# https://github.com/Imagick/imagick/issues/626 +PHP_EXT_NEEDED_USE="-debug" + +inherit php-ext-pecl-r3 + +KEYWORDS="amd64 ~arm ~arm64 x86" + +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" +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:=[-openmp]" +DEPEND=" + ${RDEPEND} + test? ( media-gfx/imagemagick:=[hdri,jpeg,png,svg,truetype,xml] ) +" + +PATCHES="${FILESDIR}/${PN}-3.7.0-php8.3.patch" + +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" +} -- cgit v1.2.3