dev-php/pecl-http: Add compile options to remove automatic deps

Limits IDNA implementation to net-dns/libidn2

Future customization with USE is possible, but it does not make sense
to have multiple IDNA implementations.  The code removes duplicate
calls even if many libraries are linked.

Closes: https://bugs.gentoo.org/837917
Signed-off-by: Brian Evans <grknight@gentoo.org>
This commit is contained in:
Brian Evans
2022-04-12 09:15:59 -04:00
parent 2c8284552e
commit e1334ba4a7
2 changed files with 6 additions and 2 deletions

View File

@@ -38,7 +38,9 @@ RDEPEND="${DEPEND}
php_targets_php8-0? ( dev-php/pecl-http:8[php_targets_php8-0(-)] )
php_targets_php8-1? ( dev-php/pecl-http:8[php_targets_php8-1(-)] )"
PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps --without-http-libidn-dir )
PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps
--without-http-libidn-dir --without-http-libicu-dir
--without-http-libidnkit2-dir --without-http-libidnkit-dir )
PATCHES=( "${FILESDIR}/${PN}-3.2.4-curl-cookies.patch" )

View File

@@ -36,7 +36,9 @@ DEPEND="
RDEPEND="${DEPEND}
php_targets_php7-4? ( dev-php/pecl-http:7[php_targets_php7-4(-)] )"
PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps --without-http-libidn-dir )
PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps
--without-http-libidn-dir --without-http-libicu-dir
--without-http-libidnkit2-dir --without-http-libidnkit-dir )
src_prepare() {
if use php_targets_php8-0 || use php_targets_php8-1 ; then