gentoo-ebuilds/dev-php/pecl-imagick/pecl-imagick-3.8.0.ebuild
Michael Orlitzky 42208db2fa
dev-php/pecl-imagick: fixup RDEPEND and update a comment
We're dropping the USE=openmp block on imagemagick, because maybe it
isn't a problem any more. This commit mostly updates a comment in the
ebuild. We also add back a subslot dep on imagemagick that was removed
in a PR. No -r1 because this is being pushed at the same time as the
commit that removes it.

Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
2025-04-25 21:10:53 -04:00

36 lines
1,014 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 )"
# The USE="-openmp" requirement on media-gfx/imagemagick (from bug
# 547922) has been dropped in v3.8.0 due to popular demand. With any
# luck, enough time has passed that these segfaults no longer occur.
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"
}