commit:     649287aaab870763cf8a436e4212b57a6fcf0c02
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  6 06:34:59 2020 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Oct  6 06:34:59 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=649287aa

media-gfx/exact-image: fix to work with php7

Closes: https://bugs.gentoo.org/651072
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 media-gfx/exact-image/exact-image-1.0.2.ebuild          |  1 +
 media-gfx/exact-image/files/exact-image-1.0.2-php.patch | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/media-gfx/exact-image/exact-image-1.0.2.ebuild 
b/media-gfx/exact-image/exact-image-1.0.2.ebuild
index 2c2e93b4fff..62b39e9d7e4 100644
--- a/media-gfx/exact-image/exact-image-1.0.2.ebuild
+++ b/media-gfx/exact-image/exact-image-1.0.2.ebuild
@@ -40,6 +40,7 @@ PATCHES=(
        "${FILESDIR}"/${P}-gcc6.patch
        "${FILESDIR}"/${P}-g++.patch
        "${FILESDIR}"/${P}-dcraw.patch
+       "${FILESDIR}"/${P}-php.patch
 )
 
 src_prepare() {

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
new file mode 100644
index 00000000000..787d71335f3
--- /dev/null
+++ b/media-gfx/exact-image/files/exact-image-1.0.2-php.patch
@@ -0,0 +1,11 @@
+--- 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)

Reply via email to