Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-http/
Date: Sun, 17 Nov 2019 21:01:47
Message-Id: 1574024485.3d9ea61a260dfb7a1bb9e351ebee00439b2c2d6c.whissi@gentoo
1 commit: 3d9ea61a260dfb7a1bb9e351ebee00439b2c2d6c
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 17 20:41:10 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 17 21:01:25 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d9ea61a
7
8 dev-php/pecl-http: bump to v3.2.3
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.18
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-php/pecl-http/Manifest | 1 +
14 dev-php/pecl-http/pecl-http-3.2.3.ebuild | 75 ++++++++++++++++++++++++++++++++
15 2 files changed, 76 insertions(+)
16
17 diff --git a/dev-php/pecl-http/Manifest b/dev-php/pecl-http/Manifest
18 index bf2423cd5e4..9bd5d5c37b8 100644
19 --- a/dev-php/pecl-http/Manifest
20 +++ b/dev-php/pecl-http/Manifest
21 @@ -2,3 +2,4 @@ DIST pecl_http-2.6.0.tgz 217673 BLAKE2B a7147924cfc018c3e273d85666d9792ea614955d
22 DIST pecl_http-3.1.0.tgz 214166 BLAKE2B 2f84fc9f5f7d465142e3482a9ee46b9dd80dd2b5ec58ad1d8d4fb18a665ebe70e4f872b8915c3a84484a3b1cd0709b39bf6170c6f1c6175aef7d43bac44aa3df SHA512 1c272aa476106bb61848f175f0ba6715b3d8928f70cdac1a673cc87c2dc780dff5434a3bc595d5e8a1ef7b847a1d2e214f9e9ae80b8b5d1f80a299febc85b0ea
23 DIST pecl_http-3.2.0.tgz 218829 BLAKE2B bbd6f9fe8afb4324d928496e1fbcdd455e8bff5e45312ba65e5e9263719b098763203de055ea8a8ff6202ae4a434d37db25bb0975faacc956af4a0c6e8bfe8a1 SHA512 59738ee52370c68f7e74349d52738da845cfb83ae27b51a2caf3b048ba0b37c897702d7f5f8e0517df5612fd2e904d02e8e24c9e649a9e7cfdcdc04e9d19b113
24 DIST pecl_http-3.2.1.tgz 221244 BLAKE2B b6581829fb8a800e24ccedd4d0f3efbaf558850bdc356d27a6e1d1097a8e2cfc61963a1daccd1d0f269a7cef5b243d45cdfaff5138321fe20df615dde44d19e3 SHA512 e67d4b32ba6f524e3fcf65f5497b94275e1a4a14fce97c57afe366369f368b3acdbedf364ed73cf983fb2c5f57f498adaa1100e7c936f11cbc5de1caedad7b51
25 +DIST pecl_http-3.2.3.tgz 220204 BLAKE2B 2a712dc8f69a8a80f6f8c306883df580fdff4a0d4cb0ac06cc004f8622b30b8e2f5d373276381fd3ad67657a80cc929be81745f200a98b6ed5e475de5639dfc5 SHA512 e955e3246db9a9172081dd9a077154139c585bfce546e91839052bbab4d0db9d0695122574a66891ceba5c0b7e8a8f0768274e1516521ccb95cd19504dc13666
26
27 diff --git a/dev-php/pecl-http/pecl-http-3.2.3.ebuild b/dev-php/pecl-http/pecl-http-3.2.3.ebuild
28 new file mode 100644
29 index 00000000000..564462685ed
30 --- /dev/null
31 +++ b/dev-php/pecl-http/pecl-http-3.2.3.ebuild
32 @@ -0,0 +1,75 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="7"
37 +
38 +PHP_EXT_NAME="http"
39 +PHP_EXT_PECL_PKG="pecl_http"
40 +PHP_EXT_INI="yes"
41 +PHP_EXT_ZENDEXT="no"
42 +PHP_INI_NAME="50-http"
43 +
44 +USE_PHP="php5-6 php7-1 php7-2 php7-3"
45 +
46 +inherit php-ext-pecl-r3
47 +
48 +USE_PHP="php7-1 php7-2 php7-3"
49 +
50 +KEYWORDS="~amd64 ~x86"
51 +
52 +DESCRIPTION="Extended HTTP Support for PHP"
53 +LICENSE="BSD-2 MIT"
54 +SLOT="7"
55 +IUSE="ssl curl_ssl_gnutls curl_ssl_libressl curl_ssl_nss +curl_ssl_openssl"
56 +
57 +DEPEND="app-arch/brotli:=
58 + dev-libs/libevent
59 + dev-php/pecl-propro:7[php_targets_php7-1?,php_targets_php7-2?,php_targets_php7-3?]
60 + dev-php/pecl-raphf:7[php_targets_php7-1?,php_targets_php7-2?,php_targets_php7-3?]
61 + net-dns/libidn2
62 + sys-libs/zlib
63 + ssl? ( net-misc/curl[ssl,curl_ssl_gnutls=,curl_ssl_libressl=,curl_ssl_nss=,curl_ssl_openssl=] )
64 + !ssl? ( net-misc/curl[-ssl] )
65 + php_targets_php7-1? ( dev-lang/php:7.1[hash,session,iconv] )
66 + php_targets_php7-2? ( dev-lang/php:7.2[hash,session,iconv] )
67 + php_targets_php7-3? ( dev-lang/php:7.3[hash,session,iconv] )"
68 +RDEPEND="${DEPEND}
69 + php_targets_php5-6? ( dev-php/pecl-http:2[php_targets_php5-6] )"
70 +
71 +PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps --without-http-libidn-dir )
72 +
73 +src_prepare() {
74 + if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then
75 + php-ext-source-r3_src_prepare
76 + else
77 + default_src_prepare
78 + fi
79 +}
80 +
81 +src_install() {
82 + if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then
83 + php-ext-pecl-r3_src_install
84 + fi
85 +}
86 +
87 +src_test() {
88 + # Cannot use eclass function due to required modules
89 + # All tests SKIP otherwise
90 + for slot in $(php_get_slots); do
91 + php_init_slot_env "${slot}"
92 + # Link in required modules for testing
93 + ln -s "${EXT_DIR}/propro.so" "modules/propro.so" || die
94 + ln -s "${EXT_DIR}/raphf.so" "modules/raphf.so" || die
95 + sed -i \
96 + 's/PHP_TEST_SHARED_EXTENSIONS)/PHP_TEST_SHARED_EXTENSIONS) -d extension=propro.so -d extension=raphf.so/' \
97 + Makefile || die
98 + NO_INTERACTION="yes" emake test
99 + # Clean up testing links
100 + rm modules/propro.so modules/raphf.so || die
101 + done
102 +}
103 +
104 +pkg_postinst() {
105 + ewarn "This API has drastically changed and is not compatible with the 1.x syntax."
106 + ewarn "Please review the documentation and update your code."
107 +}