summaryrefslogtreecommitdiff
path: root/dev-php
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-01-26 19:19:39 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-01-26 19:19:39 +0000
commit53d43dfbb4e19fa3b38817c263c48ed2b8f00b0b (patch)
treeedce060b35763ee78bf238de9ac9d8dd782f9f59 /dev-php
parent252c9be98d03b2242c5ea496f001186db45bb959 (diff)
downloadbaldeagleos-repo-53d43dfbb4e19fa3b38817c263c48ed2b8f00b0b.tar.gz
baldeagleos-repo-53d43dfbb4e19fa3b38817c263c48ed2b8f00b0b.tar.xz
baldeagleos-repo-53d43dfbb4e19fa3b38817c263c48ed2b8f00b0b.zip
Adding metadata
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/pecl-http/Manifest1
-rw-r--r--dev-php/pecl-http/pecl-http-4.2.6.ebuild7
-rw-r--r--dev-php/pecl-http/pecl-http-4.3.1.ebuild65
3 files changed, 71 insertions, 2 deletions
diff --git a/dev-php/pecl-http/Manifest b/dev-php/pecl-http/Manifest
index cd0e425a2ea3..0e9c3d8ec895 100644
--- a/dev-php/pecl-http/Manifest
+++ b/dev-php/pecl-http/Manifest
@@ -1 +1,2 @@
DIST pecl_http-4.2.6.tgz 225503 BLAKE2B 834c5a38de2ec5525472fbe3a2c92804e3d471cdbd2f0791990bbde3001a4ba63822e9e4600b1a692f117f4fb941c86a78cd533512b7c5cacdad87f055160cfd SHA512 50c921d11e035281bd55152e449ee47d203c839d654b097fcbc5d6d93faf91a6111817b8a7157715de0af9f15c713974a53a2ab318eddd840bc3a7e6b2b50e11
+DIST pecl_http-4.3.1.tgz 224532 BLAKE2B 17756f02ea9e1ac4c90351ba332dc99218ba0ae001a9e16a381ef2f14c5c164eb7bbba1cd413bc631f1c8a7b2ac0c55b8ba1a354ea8a4b2fad577318ec422465 SHA512 de1d03d37c761ad443c2d1d401662dc6c175c63c63464f79d69175548b98260716325b92ac0f98c903b0de6cf8bed481617e61166a0a314d061ffc32adb129ab
diff --git a/dev-php/pecl-http/pecl-http-4.2.6.ebuild b/dev-php/pecl-http/pecl-http-4.2.6.ebuild
index 1670d0b07685..fea48305e8c5 100644
--- a/dev-php/pecl-http/pecl-http-4.2.6.ebuild
+++ b/dev-php/pecl-http/pecl-http-4.2.6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
@@ -11,7 +11,7 @@ PHP_INI_NAME="50-http"
USE_PHP="php8-2 php8-3"
-inherit php-ext-pecl-r3
+inherit php-ext-pecl-r3 flag-o-matic
DESCRIPTION="Extended HTTP Support for PHP"
LICENSE="BSD-2 MIT"
@@ -41,6 +41,9 @@ src_prepare() {
# Respect LDFLAGS, bug 727134
export EXTRA_LDFLAGS="${LDFLAGS}"
+
+ # Won't compile with GCC15 otherwise.
+ append-cflags -std=gnu17
}
src_test() {
diff --git a/dev-php/pecl-http/pecl-http-4.3.1.ebuild b/dev-php/pecl-http/pecl-http-4.3.1.ebuild
new file mode 100644
index 000000000000..4ced72373d85
--- /dev/null
+++ b/dev-php/pecl-http/pecl-http-4.3.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2026 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="php8-2 php8-3"
+
+inherit php-ext-pecl-r3
+
+DESCRIPTION="Extended HTTP Support for PHP"
+LICENSE="BSD-2 MIT"
+SLOT="8"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl curl_ssl_gnutls +curl_ssl_openssl"
+
+COMMON_DEPEND="app-arch/brotli:=
+ dev-libs/libevent
+ >=dev-php/pecl-raphf-2.0.1:7[php_targets_php8-2(-)?,php_targets_php8-3(-)?]
+ net-dns/libidn2
+ virtual/zlib:=
+ ssl? ( net-misc/curl[ssl,curl_ssl_gnutls(-)=,curl_ssl_openssl(-)=] )
+ !ssl? ( net-misc/curl[-ssl] )
+"
+DEPEND="
+ php_targets_php8-2? ( ${COMMON_DEPEND} dev-lang/php:8.2[session(-),iconv(-)] )
+ php_targets_php8-3? ( ${COMMON_DEPEND} dev-lang/php:8.3[session(-),iconv(-)] )"
+RDEPEND="${DEPEND}"
+
+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() {
+ php-ext-source-r3_src_prepare
+
+ # 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
+}