gentoo-ebuilds/dev-php/pecl-imagick/pecl-imagick-3.7.0-r4.ebuild
Sam James cf88a44a8a
dev-php/pecl-imagick: fix PATCHES
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-13 09:30:52 +01:00

40 lines
1,016 B
Bash

# 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-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:=[-openmp]"
DEPEND="
${RDEPEND}
test? ( media-gfx/imagemagick:=[hdri,jpeg,png,svg,truetype,xml] )
"
PATCHES=(
"${FILESDIR}"/${PN}-3.7.0-php8.3.patch
"${FILESDIR}"/${PN}-3.7.0-php8.4.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"
}