diff options
author | Brian Evans <grknight@gentoo.org> | 2022-04-11 14:03:08 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2022-04-11 14:03:08 -0400 |
commit | 2f311e91a4aef67caeecb4d944e82597b28bf916 (patch) | |
tree | 6e68148c0a1efeae9ea64563f53441b96235ab56 /dev-php/pecl-http | |
parent | www-client/links: add 2.26 (diff) | |
download | gentoo-2f311e91a4aef67caeecb4d944e82597b28bf916.tar.gz gentoo-2f311e91a4aef67caeecb4d944e82597b28bf916.tar.bz2 gentoo-2f311e91a4aef67caeecb4d944e82597b28bf916.zip |
dev-php/pecl-http: Version bump for 3.2.5 and 4.2.2.
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'dev-php/pecl-http')
-rw-r--r-- | dev-php/pecl-http/Manifest | 2 | ||||
-rw-r--r-- | dev-php/pecl-http/pecl-http-3.2.5.ebuild | 74 | ||||
-rw-r--r-- | dev-php/pecl-http/pecl-http-4.2.2.ebuild | 77 |
3 files changed, 153 insertions, 0 deletions
diff --git a/dev-php/pecl-http/Manifest b/dev-php/pecl-http/Manifest index 5596f02b3b47..b019015d7974 100644 --- a/dev-php/pecl-http/Manifest +++ b/dev-php/pecl-http/Manifest @@ -1,2 +1,4 @@ DIST pecl_http-3.2.4.tgz 220631 BLAKE2B 996236cf9dd2f7d9bfaf046306e99c3ccf778261df19df8fd828b5811798f784841d89a6890e7347bd20cc6da71c966ea3ac9b17bf058e0bb766db7e1a8a6c49 SHA512 59c41d57c94a6e50e2f0b261130a24791b2845246f783b55e7f644f9a897d3650da364c5b38a860761b4a23f9266ed05000d6348bae2a7941e59d6bf5fb61a9e +DIST pecl_http-3.2.5.tgz 220593 BLAKE2B 3dfeefa69b0566f15f1dda73e7e4da2723033424e704039fbb42177e4996b434ea3450e40aa16844fe52c9fabac96d16ba5154a0112f00ff3838cf7bde149938 SHA512 13e99cd567a708cba56150a2127d060cdc78f9f5908371e5fb5fb3f02f27f8aa1b48c5eb147f61e9b5c9d5f2c627049f846d810f0135072cc9e4cd967e2bfa1d DIST pecl_http-4.2.1.tgz 224452 BLAKE2B 58d2e1159aa64b9893b2b8b67c8444801308084ac13a743760c25cb3d0456fb586f69dc6b9e77db53341e4e9e45ce68f954c47b4e2663afe86de67d63db5e8e2 SHA512 2ad7e57fae313a7b46ba88e528e124ac9d83804827131a6ef478ccf3cf5883dec2d928b8ceb377ee7f5947c76f24d640d77533a9946612419e526786a79877e6 +DIST pecl_http-4.2.2.tgz 224436 BLAKE2B 26ef3bb38778f0374938ba3f3bddba37c3a2044c7b9ffe2aacbca2566251d26d37882bf66773b8ed62d46855e8f14ad9b577cdb1ef3db9eba9850c0b30e57284 SHA512 1203367d590c7d80ffe7a21e7ac352ba053e3daeb778bf99e08fc13582e665e1429f850e51e36304bdec15e6646b648f2c444b46fa263e5441d008ac41a00f4b diff --git a/dev-php/pecl-http/pecl-http-3.2.5.ebuild b/dev-php/pecl-http/pecl-http-3.2.5.ebuild new file mode 100644 index 000000000000..484ce862f8fe --- /dev/null +++ b/dev-php/pecl-http/pecl-http-3.2.5.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_NAME="http" +PHP_EXT_PECL_PKG="pecl_http" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +PHP_INI_NAME="50-http" + +USE_PHP="php7-4 php8-0 php8-1" + +inherit php-ext-pecl-r3 + +USE_PHP="php7-4" + +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="Extended HTTP Support for PHP" +LICENSE="BSD-2 MIT" +SLOT="7" +IUSE="ssl curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl" + +# Patch gets cookies working with curl 7.77, but further interop work was done later +# Just set min version for this short time to live branch +COMMON_DEPEND="app-arch/brotli:= + dev-libs/libevent + dev-php/pecl-propro:7[php_targets_php7-4(-)?] + >=dev-php/pecl-raphf-2.0.1:7[php_targets_php7-4(-)?] + net-dns/libidn2 + sys-libs/zlib + ssl? ( >=net-misc/curl-7.77[ssl,curl_ssl_gnutls(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=] ) + !ssl? ( >=net-misc/curl-7.77[-ssl] ) +" +DEPEND="php_targets_php7-4? ( ${COMMON_DEPEND} dev-lang/php:7.4[session(-),iconv(-)] )" +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 ) + +PATCHES=( "${FILESDIR}/${PN}-3.2.4-curl-cookies.patch" ) + +src_prepare() { + if use php_targets_php7-4 ; then + php-ext-source-r3_src_prepare + else + default_src_prepare + fi +} + +src_install() { + if use php_targets_php7-4 ; then + php-ext-pecl-r3_src_install + fi +} + +src_test() { + # Cannot use eclass function due to required modules + # All tests SKIP otherwise + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + # Link in required modules for testing + ln -s "${EXT_DIR}/propro.so" "modules/propro.so" || die + ln -s "${EXT_DIR}/raphf.so" "modules/raphf.so" || die + sed -i \ + 's/PHP_TEST_SHARED_EXTENSIONS)/PHP_TEST_SHARED_EXTENSIONS) -d extension=propro.so -d extension=raphf.so/' \ + Makefile || die + SKIP_ONLINE_TESTS=yes NO_INTERACTION="yes" emake test + # Clean up testing links + rm modules/propro.so modules/raphf.so || die + done +} diff --git a/dev-php/pecl-http/pecl-http-4.2.2.ebuild b/dev-php/pecl-http/pecl-http-4.2.2.ebuild new file mode 100644 index 000000000000..d0642996b9c7 --- /dev/null +++ b/dev-php/pecl-http/pecl-http-4.2.2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_NAME="http" +PHP_EXT_PECL_PKG="pecl_http" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +PHP_INI_NAME="50-http" + +USE_PHP="php7-4 php8-0 php8-1" + +inherit php-ext-pecl-r3 + +USE_PHP="php8-0 php8-1" + +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="Extended HTTP Support for PHP" +LICENSE="BSD-2 MIT" +SLOT="8" +IUSE="ssl curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl" + +COMMON_DEPEND="app-arch/brotli:= + dev-libs/libevent + >=dev-php/pecl-raphf-2.0.1:7[php_targets_php8-0(-)?,php_targets_php8-1(-)?] + net-dns/libidn2 + sys-libs/zlib + ssl? ( net-misc/curl[ssl,curl_ssl_gnutls(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=] ) + !ssl? ( net-misc/curl[-ssl] ) +" +DEPEND=" + php_targets_php8-0? ( ${COMMON_DEPEND} dev-lang/php:8.0[session(-),iconv(-)] ) + php_targets_php8-1? ( ${COMMON_DEPEND} dev-lang/php:8.1[session(-),iconv(-)] )" +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 ) + +src_prepare() { + if use php_targets_php8-0 || use php_targets_php8-1 ; then + php-ext-source-r3_src_prepare + else + default_src_prepare + fi + + # Respect LDFLAGS, bug 727134 + export EXTRA_LDFLAGS="${LDFLAGS}" +} + +src_test() { + # Cannot use eclass function due to required modules + # All tests SKIP otherwise + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + + # Link in required modules for testing + ln -s "${EXT_DIR}/raphf.so" "modules/raphf.so" || die + + sed -i \ + 's/PHP_TEST_SHARED_EXTENSIONS)/PHP_TEST_SHARED_EXTENSIONS) -d extension=raphf/' \ + Makefile || die + + SKIP_ONLINE_TESTS=yes NO_INTERACTION="yes" emake test + + # Clean up testing links + rm modules/raphf.so || die + done +} + +src_install() { + if use php_targets_php8-0 || use php_targets_php8-1 ; then + php-ext-pecl-r3_src_install + fi +} |