1 |
commit: 5b0e8003dd4d143586da06130986656717d75682 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 29 16:43:33 2018 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 29 16:44:22 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b0e8003 |
7 |
|
8 |
dev-php/pecl-http: Revbumps to use the new PHP_INI_NAME and php 7.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.20, Repoman-2.3.6 |
11 |
|
12 |
dev-php/pecl-http/pecl-http-2.6.0-r2.ebuild | 59 +++++++++++++++++++++++++++++ |
13 |
dev-php/pecl-http/pecl-http-3.1.0-r2.ebuild | 59 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 118 insertions(+) |
15 |
|
16 |
diff --git a/dev-php/pecl-http/pecl-http-2.6.0-r2.ebuild b/dev-php/pecl-http/pecl-http-2.6.0-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..3a3e49cd8b3 |
19 |
--- /dev/null |
20 |
+++ b/dev-php/pecl-http/pecl-http-2.6.0-r2.ebuild |
21 |
@@ -0,0 +1,59 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI="6" |
26 |
+ |
27 |
+PHP_EXT_NAME="http" |
28 |
+PHP_EXT_PECL_PKG="pecl_http" |
29 |
+PHP_EXT_INI="yes" |
30 |
+PHP_EXT_ZENDEXT="no" |
31 |
+PHP_INI_NAME="50-http" |
32 |
+ |
33 |
+USE_PHP="php5-6 php7-0 php7-1 php7-2" |
34 |
+ |
35 |
+inherit php-ext-pecl-r3 |
36 |
+ |
37 |
+USE_PHP="php5-6" |
38 |
+ |
39 |
+KEYWORDS="~amd64 ~x86" |
40 |
+ |
41 |
+DESCRIPTION="Extended HTTP Support for PHP" |
42 |
+LICENSE="BSD-2 MIT" |
43 |
+SLOT="2" |
44 |
+IUSE="ssl curl_ssl_gnutls curl_ssl_libressl curl_ssl_nss +curl_ssl_openssl" |
45 |
+ |
46 |
+DEPEND="php_targets_php5-6? ( |
47 |
+ dev-libs/libevent |
48 |
+ dev-php/pecl-propro:0[php_targets_php5-6] |
49 |
+ dev-php/pecl-raphf:0[php_targets_php5-6] |
50 |
+ net-dns/libidn |
51 |
+ sys-libs/zlib |
52 |
+ ssl? ( net-misc/curl[ssl,curl_ssl_gnutls=,curl_ssl_libressl=,curl_ssl_nss=,curl_ssl_openssl=] ) |
53 |
+ !ssl? ( net-misc/curl[-ssl] ) |
54 |
+ dev-lang/php:5.6[hash,session,iconv] )" |
55 |
+RDEPEND="${DEPEND}" |
56 |
+PDEPEND=" |
57 |
+ php_targets_php7-0? ( dev-php/pecl-http:7[php_targets_php7-0] ) |
58 |
+ php_targets_php7-1? ( dev-php/pecl-http:7[php_targets_php7-1] ) |
59 |
+ php_targets_php7-2? ( dev-php/pecl-http:7[php_targets_php7-2] )" |
60 |
+ |
61 |
+PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps ) |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ if use php_targets_php5-6 ; then |
65 |
+ php-ext-source-r3_src_prepare |
66 |
+ else |
67 |
+ default_src_prepare |
68 |
+ fi |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ if use php_targets_php5-6 ; then |
73 |
+ php-ext-pecl-r3_src_install |
74 |
+ fi |
75 |
+} |
76 |
+ |
77 |
+pkg_postinst() { |
78 |
+ ewarn "This API has drastically changed and is not compatible with the 1.x syntax." |
79 |
+ ewarn "Please review the documentation and update your code." |
80 |
+} |
81 |
|
82 |
diff --git a/dev-php/pecl-http/pecl-http-3.1.0-r2.ebuild b/dev-php/pecl-http/pecl-http-3.1.0-r2.ebuild |
83 |
new file mode 100644 |
84 |
index 00000000000..68af2db5ec8 |
85 |
--- /dev/null |
86 |
+++ b/dev-php/pecl-http/pecl-http-3.1.0-r2.ebuild |
87 |
@@ -0,0 +1,59 @@ |
88 |
+# Copyright 1999-2018 Gentoo Foundation |
89 |
+# Distributed under the terms of the GNU General Public License v2 |
90 |
+ |
91 |
+EAPI="6" |
92 |
+ |
93 |
+PHP_EXT_NAME="http" |
94 |
+PHP_EXT_PECL_PKG="pecl_http" |
95 |
+PHP_EXT_INI="yes" |
96 |
+PHP_EXT_ZENDEXT="no" |
97 |
+PHP_INI_NAME="50-http" |
98 |
+ |
99 |
+USE_PHP="php5-6 php7-0 php7-1 php7-2" |
100 |
+ |
101 |
+inherit php-ext-pecl-r3 |
102 |
+ |
103 |
+USE_PHP="php7-0 php7-1 php7-2" |
104 |
+ |
105 |
+KEYWORDS="~amd64 ~x86" |
106 |
+ |
107 |
+DESCRIPTION="Extended HTTP Support for PHP" |
108 |
+LICENSE="BSD-2 MIT" |
109 |
+SLOT="7" |
110 |
+IUSE="ssl curl_ssl_gnutls curl_ssl_libressl curl_ssl_nss +curl_ssl_openssl" |
111 |
+ |
112 |
+DEPEND="dev-libs/libevent |
113 |
+ dev-php/pecl-propro:7[php_targets_php5-6?,php_targets_php7-0?,php_targets_php7-1?,php_targets_php7-2?] |
114 |
+ dev-php/pecl-raphf:7[php_targets_php5-6?,php_targets_php7-0?,php_targets_php7-1?,php_targets_php7-2?] |
115 |
+ net-dns/libidn2 |
116 |
+ sys-libs/zlib |
117 |
+ ssl? ( net-misc/curl[ssl,curl_ssl_gnutls=,curl_ssl_libressl=,curl_ssl_nss=,curl_ssl_openssl=] ) |
118 |
+ !ssl? ( net-misc/curl[-ssl] ) |
119 |
+ php_targets_php7-0? ( dev-lang/php:7.0[hash,session,iconv] ) |
120 |
+ php_targets_php7-1? ( dev-lang/php:7.1[hash,session,iconv] ) |
121 |
+ php_targets_php7-2? ( dev-lang/php:7.2[hash,session,iconv] )" |
122 |
+RDEPEND="${DEPEND} |
123 |
+ php_targets_php5-6? ( dev-php/pecl-http:2[php_targets_php5-6] )" |
124 |
+ |
125 |
+PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps --without-http-libidn-dir ) |
126 |
+ |
127 |
+PATCHES=( "${FILESDIR}/pecl-http-gnutls.patch" ) |
128 |
+ |
129 |
+src_prepare() { |
130 |
+ if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
131 |
+ php-ext-source-r3_src_prepare |
132 |
+ else |
133 |
+ default_src_prepare |
134 |
+ fi |
135 |
+} |
136 |
+ |
137 |
+src_install() { |
138 |
+ if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
139 |
+ php-ext-pecl-r3_src_install |
140 |
+ fi |
141 |
+} |
142 |
+ |
143 |
+pkg_postinst() { |
144 |
+ ewarn "This API has drastically changed and is not compatible with the 1.x syntax." |
145 |
+ ewarn "Please review the documentation and update your code." |
146 |
+} |