Skip to content

Commit

Permalink
dev-php/pecl-ps: Fix build error with gd detection
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/815388
Signed-off-by: Brian Evans <[email protected]>
  • Loading branch information
Brian Evans committed Sep 29, 2021
1 parent 21cd99a commit 990dbf5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions dev-php/pecl-ps/files/ps-1.4.4-fix-gd-detection.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/config.m4
+++ b/config.m4
@@ -38,7 +38,7 @@
PHP_ARG_ENABLE([gd],
[for GD support],
[AS_HELP_STRING([--enable-gd],
- [Include GD support])])
+ [Include GD support])], no, no)

if test "$PHP_GD" != "no"; then

3 changes: 2 additions & 1 deletion dev-php/pecl-ps/pecl-ps-1.4.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ IUSE="examples gd"

DEPEND="dev-libs/pslib gd? ( media-libs/gd:2= )"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}/ps-1.4.4-fix-gd-detection.patch" )

src_configure() {
PHP_EXT_ECONF_ARGS="$(use_enable gd)"
PHP_EXT_ECONF_ARGS=( $(use_enable gd) )
php-ext-source-r3_src_configure
}

Expand Down

0 comments on commit 990dbf5

Please sign in to comment.