diff options
author | David Seifert <soap@gentoo.org> | 2023-09-15 09:51:59 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2023-09-15 09:51:59 +0200 |
commit | be498e101f642b05829b2cebde2aa80dd2ce177a (patch) | |
tree | d50a954205155662adcad516e4c1eae0d4d10f2f /media-gfx | |
parent | sci-geosciences/mapserver: remove PHP bindings (diff) | |
download | gentoo-be498e101f642b05829b2cebde2aa80dd2ce177a.tar.gz gentoo-be498e101f642b05829b2cebde2aa80dd2ce177a.tar.bz2 gentoo-be498e101f642b05829b2cebde2aa80dd2ce177a.zip |
media-gfx/exact-image: remove PHP bindings
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/exact-image/exact-image-1.0.2-r8.ebuild | 78 | ||||
-rw-r--r-- | media-gfx/exact-image/files/exact-image-1.0.2-php.patch | 11 |
2 files changed, 4 insertions, 85 deletions
diff --git a/media-gfx/exact-image/exact-image-1.0.2-r8.ebuild b/media-gfx/exact-image/exact-image-1.0.2-r8.ebuild index 134a56faca8d..11e8e28d2a8b 100644 --- a/media-gfx/exact-image/exact-image-1.0.2-r8.ebuild +++ b/media-gfx/exact-image/exact-image-1.0.2-r8.ebuild @@ -1,16 +1,11 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PHP_EXT_NAME="exactimage" -USE_PHP="php7-4" -PHP_EXT_OPTIONAL_USE="php" -PHP_EXT_SKIP_PATCHES="yes" -PHP_EXT_SKIP_PHPIZE="yes" LUA_COMPAT=( lua5-{1..4} luajit ) -inherit php-ext-source-r3 lua-single toolchain-funcs +inherit lua-single toolchain-funcs DESCRIPTION="A fast, modern and generic image processing library" HOMEPAGE="https://exactcode.com/opensource/exactimage/" @@ -19,8 +14,8 @@ SRC_URI="http://dl.exactcode.de/oss/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="expat jpeg lua openexr php perl png ruby swig tiff truetype X" -REQUIRED_USE="lua? ( swig ) perl? ( swig ) php? ( swig ) ruby? ( swig )" +IUSE="expat jpeg lua openexr perl png ruby swig tiff truetype X" +REQUIRED_USE="lua? ( swig ) perl? ( swig ) ruby? ( swig )" # Tests are broken; 'make check' fails and referenced testsuite dir not found RESTRICT="test" @@ -53,7 +48,6 @@ PATCHES=( "${FILESDIR}"/${P}-gcc6.patch "${FILESDIR}"/${P}-g++.patch "${FILESDIR}"/${P}-dcraw.patch - "${FILESDIR}"/${P}-php.patch ) src_prepare() { @@ -82,17 +76,6 @@ src_prepare() { sed -i \ -e 's:Int64:uint64_t:g' \ codecs/openexr.cc || die - - # When using PHP, the php-config binary should be specified by slot - # Cannot be done in a patch as it is live - if use php ; then - php-ext-source-r3_src_prepare - local slot - for slot in $(php_get_slots); do - php_init_slot_env "${slot}" - sed -i "s~php-config~${PHPCONFIG}~" configure || die - done - fi } src_configure() { @@ -122,57 +105,4 @@ src_configure() { --without-python \ --without-php \ $(use_with ruby) || die - if use php; then - local slot - for slot in $(php_get_slots); do - php_init_slot_env "${slot}" - ./configure \ - --prefix=/usr \ - --libdir=/usr/$(get_libdir) \ - --without-x11 \ - $(use_with truetype freetype) \ - --without-evas \ - $(use_with jpeg libjpeg) \ - $(use_with tiff libtiff) \ - $(use_with png libpng) \ - --without-jasper \ - --without-libgif \ - $(use_with openexr) \ - $(use_with expat) \ - --without-lcms \ - --without-bardecode \ - --without-lua \ - --with-swig \ - --without-perl \ - --without-python \ - --with-php \ - --without-ruby || die - done - fi -} - -src_compile() { - default - if use php ; then - local slot - for slot in $(php_get_slots); do - php_init_slot_env "${slot}" - # Copy built objects from default - cp -a "${S}/objdir" . || die - emake - done - fi -} - -src_install() { - default - if use php ; then - local slot - for slot in $(php_get_slots); do - php_init_slot_env "${slot}" - exeinto "${EXT_DIR#$EPREFIX}" - newexe objdir/api/php/ExactImage.so "${PHP_EXT_NAME}.so" - done - php-ext-source-r3_createinifiles - fi } diff --git a/media-gfx/exact-image/files/exact-image-1.0.2-php.patch b/media-gfx/exact-image/files/exact-image-1.0.2-php.patch deleted file mode 100644 index 787d71335f38..000000000000 --- a/media-gfx/exact-image/files/exact-image-1.0.2-php.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/api/php/Makefile 2020-10-06 08:28:04.511865454 +0200 -+++ b/api/php/Makefile 2020-10-06 08:28:18.109638538 +0200 -@@ -8,7 +8,7 @@ - - $($(X_MODULE)_OUTPUT)/api-php-wrap.cc: $(X_MODULE)/../api.hh $(X_MODULE)/../api-swig.hh - $(Q)echo " SWIG $(dir $@)" -- $(Q)swig -php5 -c++ -outdir $(dir $@) -o '$@' $(X_MODULE)/../api-swig.hh -+ $(Q)swig -php7 -c++ -outdir $(dir $@) -o '$@' $(X_MODULE)/../api-swig.hh - - # we have an own install - _X_BUILD_IMPLICIT := $(_X_BUILD_IMPLICIT) |