summaryrefslogtreecommitdiff
path: root/dev-php/pecl-http
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-05-22 07:31:18 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-05-22 07:31:18 +0100
commit908778078736bd36f7a60a2d576d415cb8e000fa (patch)
treec6a4796c48b608c14dc7e9674cdbd38f905e3c15 /dev-php/pecl-http
parent185fa19bbf68a4d4dca534d2b46729207a177f16 (diff)
gentoo resync : 22.05.2021
Diffstat (limited to 'dev-php/pecl-http')
-rw-r--r--dev-php/pecl-http/Manifest3
-rw-r--r--dev-php/pecl-http/files/pecl-http-4.1.0-use-getenv.patch25
-rw-r--r--dev-php/pecl-http/pecl-http-4.1.0.ebuild79
3 files changed, 107 insertions, 0 deletions
diff --git a/dev-php/pecl-http/Manifest b/dev-php/pecl-http/Manifest
index e0dfe4e3193f..556143d75924 100644
--- a/dev-php/pecl-http/Manifest
+++ b/dev-php/pecl-http/Manifest
@@ -1,7 +1,10 @@
+AUX pecl-http-4.1.0-use-getenv.patch 903 BLAKE2B 1cbf60b5c28918a203f46690cf9c0c7e1d61493582dca79f4933c0354c44f25df8c346ce6cd964e9e9eef5e15ba0f39b7d9229a8bcd566447a816ad3bd4f20e0 SHA512 6242db71bc36de20064e787b435e91e27d4ae98685c2fb050c2247d241c4bd81383d71f7e204e57a86403b1392da4bba4a6be92d1b3628322a2227b895ad8a91
DIST pecl_http-3.2.1.tgz 221244 BLAKE2B b6581829fb8a800e24ccedd4d0f3efbaf558850bdc356d27a6e1d1097a8e2cfc61963a1daccd1d0f269a7cef5b243d45cdfaff5138321fe20df615dde44d19e3 SHA512 e67d4b32ba6f524e3fcf65f5497b94275e1a4a14fce97c57afe366369f368b3acdbedf364ed73cf983fb2c5f57f498adaa1100e7c936f11cbc5de1caedad7b51
DIST pecl_http-3.2.4.tgz 220631 BLAKE2B 996236cf9dd2f7d9bfaf046306e99c3ccf778261df19df8fd828b5811798f784841d89a6890e7347bd20cc6da71c966ea3ac9b17bf058e0bb766db7e1a8a6c49 SHA512 59c41d57c94a6e50e2f0b261130a24791b2845246f783b55e7f644f9a897d3650da364c5b38a860761b4a23f9266ed05000d6348bae2a7941e59d6bf5fb61a9e
DIST pecl_http-4.0.0.tgz 218259 BLAKE2B c9f5973686fd4db95a24dd4c50f217b93becc6a439066a395b0b7fec6e977154e5ae8f2261414458aed8e4a9d1281f44da2ecc67a05127610579f5be91196a88 SHA512 268b569c23f10ed72fe3c84fc5e5bf526c3e5ac345ca0556a24fbd01ce95da468d4e9aac6300d058001534ab826836793bf901e9560b744f1e20d7059be2ec79
+DIST pecl_http-4.1.0.tgz 220349 BLAKE2B 71152ee20930843636d90547339270fecf5569cb9a252a516c8150a134bf75fcb88b4fcfd129af1ca1366f4df775653b4dcdddbf0eb02426625550c1b1a0b483 SHA512 653c1dd8ec6dc738ce2dbf235a3c92522858e17ab9c0d00dd75a51bcfeb836f3fb02a6040b8b67d8d6839055286599958db844891686ca70c36031500be0bc1c
EBUILD pecl-http-3.2.1.ebuild 2263 BLAKE2B 10fbe37789566e35b728134e8a8a5f3f8b5bb14175d471c112c68f5d8163bce79f4d57b419d9e707456227155827b5061da21f799500fd38b93a4e0526a1be75 SHA512 93c5002b610f37af407f632c16337bacefd0429492a158413757559063888d30b2eedc1f3ec4c823fcbdeb9e3143143344a9a1485e15d5854c332a1c926050ba
EBUILD pecl-http-3.2.4.ebuild 2021 BLAKE2B f5cb3e15af3e2d4e263df6fe5b6a17f2beb2708950ba9259a2e571f18ff6da387390b42931adcc9251c4973fca9c5b9833659bf21918310f4400d4619aac4dc1 SHA512 86e25ed3765edf637cf9fbcb3d670366d82bba7a3f83542217693f6df530379baeb80ebe5a2c5a5f731497fc557e24aec866dd5980af4a79aff56f6e5b4f2676
EBUILD pecl-http-4.0.0.ebuild 1747 BLAKE2B e73bd951bab8c3b1fc2da5e28557f77bf5b9dbad70440960ed43068ad4c1af26fa7d4745d05f4c5490bbf7cfcb8d47740e7e39d70323adcae83a89ca08500aa3 SHA512 c5e8b1b34da25acc2698dd6d1eab1d84dacb67730e28cf594f9084575cd2264a33e2b250d37fcb690bbfdecb52eb2c032e629e180bffa5781d5e7ce3d785e34e
+EBUILD pecl-http-4.1.0.ebuild 1879 BLAKE2B 7e22bd02d6ef7dff6089da17643d124a10a1f4a0e23aab29152ae11d950d044f6b5b7437af817a9a6aefc7a1f7503cefc4839e02583cea7aae46faac57ecc08c SHA512 f477e7613249544d842ae5277dc33a90df0097b05bb9d56e5200662bf8e380a5581b2b31ea60ba9278a1fe71331bb97677e54c91746f3b4052296cd8350427e3
MISC metadata.xml 239 BLAKE2B 9b7c5dcb74289073481cf07031b7a92f32496cc1097becb074d74a8fbb8133de429ce1baf284e446e44132943c8b32e6b824570f15828588e42ea49ef5661f00 SHA512 2181b874bfe8cd31e7730d8207e26cfd2f272eaf2d1b57ae0faff126347a5298fa1c506d9107e1da9736c8a0ed9c8c339e4d9509a8726b79dbe86e073c12dee0
diff --git a/dev-php/pecl-http/files/pecl-http-4.1.0-use-getenv.patch b/dev-php/pecl-http/files/pecl-http-4.1.0-use-getenv.patch
new file mode 100644
index 000000000000..c3ad7d968360
--- /dev/null
+++ b/dev-php/pecl-http/files/pecl-http-4.1.0-use-getenv.patch
@@ -0,0 +1,25 @@
+commit a4f66fb42bb5203e9d1897a6cf554aa702ce0380
+Author: Thomas Deutschmann <whissi@gentoo.org>
+AuthorDate: Tue May 18 19:55:47 2021 +0200
+Commit: Thomas Deutschmann <whissi@gentoo.org>
+CommitDate: Tue May 18 19:55:47 2021 +0200
+
+ tests: use getenv() to access environment variable
+
+ Fixes
+
+ Warning: Undefined array key "PATH" in pecl-http-4.1.0/work/php8.0/tests/skipif.inc on line 56
+
+diff --git a/tests/skipif.inc b/tests/skipif.inc
+index 51272fb..76c3bd7 100644
+--- a/tests/skipif.inc
++++ b/tests/skipif.inc
+@@ -53,7 +53,7 @@ function skip_http2_test($message = "skip need http2 support") {
+ if (!(http\Client\Curl\FEATURES & http\Client\Curl\Features\HTTP2)) {
+ die("$message (FEATURES & HTTP2)\n");
+ }
+- foreach (explode(":", $_ENV["PATH"]) as $path) {
++ foreach (explode(":", getenv("PATH")) as $path) {
+ if (is_executable($path . "/nghttpd")) {
+ return;
+ }
diff --git a/dev-php/pecl-http/pecl-http-4.1.0.ebuild b/dev-php/pecl-http/pecl-http-4.1.0.ebuild
new file mode 100644
index 000000000000..9ffc9765e462
--- /dev/null
+++ b/dev-php/pecl-http/pecl-http-4.1.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+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-3 php7-4 php8-0"
+
+inherit php-ext-pecl-r3
+
+USE_PHP="php8-0"
+
+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(-)?]
+ 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(-)] )"
+RDEPEND="${DEPEND}
+ php_targets_php7-3? ( dev-php/pecl-http:7[php_targets_php7-3(-)] )
+ 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 )
+
+PATCHES=( "${FILESDIR}"/${P}-use-getenv.patch )
+
+src_prepare() {
+ if use php_targets_php8-0 ; 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 ; then
+ php-ext-pecl-r3_src_install
+ fi
+}