Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-http/
Date: Wed, 28 Dec 2016 21:20:18
Message-Id: 1482960005.8c772742f2ad83ae43d40c65b771fb93934e2e22.grknight@gentoo
1 commit: 8c772742f2ad83ae43d40c65b771fb93934e2e22
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 28 21:18:43 2016 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 28 21:20:05 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c772742
7
8 dev-php/pecl-http: Version bumps and improve dependencies in new version
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-php/pecl-http/Manifest | 2 ++
13 dev-php/pecl-http/pecl-http-2.6.0.ebuild | 58 ++++++++++++++++++++++++++++++++
14 dev-php/pecl-http/pecl-http-3.1.0.ebuild | 56 ++++++++++++++++++++++++++++++
15 3 files changed, 116 insertions(+)
16
17 diff --git a/dev-php/pecl-http/Manifest b/dev-php/pecl-http/Manifest
18 index d3339f2..d8c5832 100644
19 --- a/dev-php/pecl-http/Manifest
20 +++ b/dev-php/pecl-http/Manifest
21 @@ -1,2 +1,4 @@
22 DIST pecl_http-2.5.6.tgz 200469 SHA256 8435eb9082b8fdc56b630e3d3d8e63617a3bc43d360f6f49fbd7b1856b266be4 SHA512 a4ddb2e55b537a240dc79ad38665f9cb79ef56a70f50e0393ca19c36f744c21374ba801e31e68545516c4be98cff65587ee91b2b25f05dd587120afcb87dfe4a WHIRLPOOL d4d2158b610c959a558b450a79a77a7f9de53d6e75982e920c4b64d48731139223659af149b9894c2fee1a477005af34a57cb33a806429e11446d5162b031b89
23 +DIST pecl_http-2.6.0.tgz 217673 SHA256 ddbf3eea3d1c7004a7dd83b5864aee5f87b1b6032bc281c08ccc62f83b9931ed SHA512 12d18049411a4133008449a1e7458a3055322dc337f421e0e2be126ec965f15b0189af6fccd9ca4537c48819c763b9e020906ac6d09d87ead92f4436fac595ad WHIRLPOOL 976a3ba0f37e78f97c4cc4884e61b2c14cd8760e48be2da0743a3b7adc44198984ff748ebed63885f012a14c8e016a57247685a576cc90e57c6bfbba59a4e862
24 DIST pecl_http-3.0.1.tgz 197372 SHA256 4e45ea546e3245669887ec98187666ccb4aa3df15078335b1c02c824c8165031 SHA512 344ae45987269d9505ffed6059be378005298d89c5e39bda6f771d8bf5a1998e91c214c03d32b9c78329c95e4928d35d3659dd3a1c70071aa5b2bd2763852098 WHIRLPOOL 76538ec0b94ef5d63808b625a8e73ab499c2afc78cd0f31823dcea4de66d865f7cf8387cc67eac1f19fec032a7ac7b7775685048ac0c6f76fadccfc1d932026c
25 +DIST pecl_http-3.1.0.tgz 214166 SHA256 e3de67b156e7d5f6c2e5eb1e2b5f0acceb7004f1260d68c9f8b2c0f9629aabf0 SHA512 1c272aa476106bb61848f175f0ba6715b3d8928f70cdac1a673cc87c2dc780dff5434a3bc595d5e8a1ef7b847a1d2e214f9e9ae80b8b5d1f80a299febc85b0ea WHIRLPOOL 8a6cb8689001e794b590ad2b0b9c873a8fd805f37726e61c2b617d962a94b3cf87c2d280f665b42bce7d8583415718f505a4f826ac616bcead2bfe2c9295fa55
26
27 diff --git a/dev-php/pecl-http/pecl-http-2.6.0.ebuild b/dev-php/pecl-http/pecl-http-2.6.0.ebuild
28 new file mode 100644
29 index 00000000..2b2f983
30 --- /dev/null
31 +++ b/dev-php/pecl-http/pecl-http-2.6.0.ebuild
32 @@ -0,0 +1,58 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI="6"
38 +
39 +PHP_EXT_NAME="http"
40 +PHP_EXT_PECL_PKG="pecl_http"
41 +PHP_EXT_INI="yes"
42 +PHP_EXT_ZENDEXT="no"
43 +
44 +USE_PHP="php5-6 php7-0 php7-1"
45 +
46 +inherit php-ext-pecl-r3
47 +
48 +USE_PHP="php5-6"
49 +
50 +KEYWORDS="~amd64 ~x86"
51 +
52 +DESCRIPTION="Extended HTTP Support for PHP"
53 +LICENSE="BSD-2 MIT"
54 +SLOT="2"
55 +IUSE="ssl curl_ssl_gnutls curl_ssl_libressl curl_ssl_nss +curl_ssl_openssl"
56 +
57 +DEPEND="php_targets_php5-6? (
58 + dev-libs/libevent
59 + dev-php/pecl-propro:0[php_targets_php5-6]
60 + dev-php/pecl-raphf:0[php_targets_php5-6]
61 + net-dns/libidn
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 + dev-lang/php:5.6[hash,session,iconv] )"
66 +RDEPEND="${DEPEND}"
67 +PDEPEND="
68 + php_targets_php7-0? ( dev-php/pecl-http:7[php_targets_php7-0] )
69 + php_targets_php7-1? ( dev-php/pecl-http:7[php_targets_php7-1] )"
70 +
71 +PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps )
72 +
73 +src_prepare() {
74 + if use php_targets_php5-6 ; 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_php5-6 ; then
83 + php-ext-pecl-r3_src_install
84 + fi
85 +}
86 +
87 +pkg_postinst() {
88 + ewarn "This API has drastically changed and is not compatible with the 1.x syntax."
89 + ewarn "Please review the documentation and update your code."
90 +}
91
92 diff --git a/dev-php/pecl-http/pecl-http-3.1.0.ebuild b/dev-php/pecl-http/pecl-http-3.1.0.ebuild
93 new file mode 100644
94 index 00000000..d74da59
95 --- /dev/null
96 +++ b/dev-php/pecl-http/pecl-http-3.1.0.ebuild
97 @@ -0,0 +1,56 @@
98 +# Copyright 1999-2016 Gentoo Foundation
99 +# Distributed under the terms of the GNU General Public License v2
100 +# $Id$
101 +
102 +EAPI="6"
103 +
104 +PHP_EXT_NAME="http"
105 +PHP_EXT_PECL_PKG="pecl_http"
106 +PHP_EXT_INI="yes"
107 +PHP_EXT_ZENDEXT="no"
108 +
109 +USE_PHP="php5-6 php7-0 php7-1"
110 +
111 +inherit php-ext-pecl-r3
112 +
113 +USE_PHP="php7-0 php7-1"
114 +
115 +KEYWORDS="~amd64 ~x86"
116 +
117 +DESCRIPTION="Extended HTTP Support for PHP"
118 +LICENSE="BSD-2 MIT"
119 +SLOT="7"
120 +IUSE="ssl curl_ssl_gnutls curl_ssl_libressl curl_ssl_nss +curl_ssl_openssl"
121 +
122 +DEPEND="dev-libs/libevent
123 + dev-php/pecl-propro:7[php_targets_php5-6?,php_targets_php7-0?,php_targets_php7-1?]
124 + dev-php/pecl-raphf:7[php_targets_php5-6?,php_targets_php7-0?,php_targets_php7-1?]
125 + net-dns/libidn
126 + sys-libs/zlib
127 + ssl? ( net-misc/curl[ssl,curl_ssl_gnutls=,curl_ssl_libressl=,curl_ssl_nss=,curl_ssl_openssl=] )
128 + !ssl? ( net-misc/curl[-ssl] )
129 + php_targets_php7-0? ( dev-lang/php:7.0[hash,session,iconv] )
130 + php_targets_php7-1? ( dev-lang/php:7.1[hash,session,iconv] )"
131 +RDEPEND="${DEPEND}
132 + php_targets_php5-6? ( dev-php/pecl-http:2[php_targets_php5-6] )"
133 +
134 +PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps )
135 +
136 +src_prepare() {
137 + if use php_targets_php7-0 || use php_targets_php7-1 ; then
138 + php-ext-source-r3_src_prepare
139 + else
140 + default_src_prepare
141 + fi
142 +}
143 +
144 +src_install() {
145 + if use php_targets_php7-0 || use php_targets_php7-1 ; then
146 + php-ext-pecl-r3_src_install
147 + fi
148 +}
149 +
150 +pkg_postinst() {
151 + ewarn "This API has drastically changed and is not compatible with the 1.x syntax."
152 + ewarn "Please review the documentation and update your code."
153 +}