diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-php/pecl-http |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-php/pecl-http')
-rw-r--r-- | dev-php/pecl-http/Manifest | 10 | ||||
-rw-r--r-- | dev-php/pecl-http/files/pecl-http-gnutls.patch | 24 | ||||
-rw-r--r-- | dev-php/pecl-http/metadata.xml | 8 | ||||
-rw-r--r-- | dev-php/pecl-http/pecl-http-2.6.0-r1.ebuild | 69 | ||||
-rw-r--r-- | dev-php/pecl-http/pecl-http-2.6.0.ebuild | 57 | ||||
-rw-r--r-- | dev-php/pecl-http/pecl-http-3.1.0-r1.ebuild | 69 | ||||
-rw-r--r-- | dev-php/pecl-http/pecl-http-3.1.0.ebuild | 57 |
7 files changed, 294 insertions, 0 deletions
diff --git a/dev-php/pecl-http/Manifest b/dev-php/pecl-http/Manifest new file mode 100644 index 000000000000..e8c223a68f81 --- /dev/null +++ b/dev-php/pecl-http/Manifest @@ -0,0 +1,10 @@ +AUX pecl-http-gnutls.patch 1061 SHA256 2d745300dd7b0cb5d4ab05f97dbf188bf20734bf9f482ab3e63b14a3827656de SHA512 a05b39188a66ed9a328f9b864008390e4703db15d15416168e31eed78e2da5239db25d98fe3f4d62c26db6a5dfae83f84db2a6f3fffce39b768a03261c308a90 WHIRLPOOL 07a81c76c05987fb5f63aeae22f9bc1fcf5aa170a563d1a82de34cb8d0590ec5386eb57d6e89b2e749730e9d15199a45d217240eb0090b5c0fc0870ed0bd5a34 +DIST pecl_http-2.6.0.tgz 217673 SHA256 ddbf3eea3d1c7004a7dd83b5864aee5f87b1b6032bc281c08ccc62f83b9931ed SHA512 12d18049411a4133008449a1e7458a3055322dc337f421e0e2be126ec965f15b0189af6fccd9ca4537c48819c763b9e020906ac6d09d87ead92f4436fac595ad WHIRLPOOL 976a3ba0f37e78f97c4cc4884e61b2c14cd8760e48be2da0743a3b7adc44198984ff748ebed63885f012a14c8e016a57247685a576cc90e57c6bfbba59a4e862 +DIST pecl_http-3.1.0.tgz 214166 SHA256 e3de67b156e7d5f6c2e5eb1e2b5f0acceb7004f1260d68c9f8b2c0f9629aabf0 SHA512 1c272aa476106bb61848f175f0ba6715b3d8928f70cdac1a673cc87c2dc780dff5434a3bc595d5e8a1ef7b847a1d2e214f9e9ae80b8b5d1f80a299febc85b0ea WHIRLPOOL 8a6cb8689001e794b590ad2b0b9c873a8fd805f37726e61c2b617d962a94b3cf87c2d280f665b42bce7d8583415718f505a4f826ac616bcead2bfe2c9295fa55 +EBUILD pecl-http-2.6.0-r1.ebuild 1920 SHA256 6948233957c81f0dfe908571d53ba28eca3a3f5472cdb8131cf2ee84633717bb SHA512 027af36906cc4f2763a5b8328b5ce2b2705a2c62a86b30cf8f160965ef8a5635971cf7135adde5afe8a72a48abfc29f338b3cd442797a347e15cc9bb9faa64a1 WHIRLPOOL 0a9f408917fd629ee98acf96ca3341a170cd948e61ebfc0bd1eea810128e0a13571e6c087a1f872fcc4f76b13fd3b2d5698f27593259f2933ea9dc83cb6ba260 +EBUILD pecl-http-2.6.0.ebuild 1384 SHA256 5d15f3ca3b45e42d02ee14796d093f1a20f5ccc8bf3c27cccefb83ea232c9fb2 SHA512 56afa6c46fa8a95d5fa74dcc56527f82b51aaa01d187bb2cd21f8d8a135eb139635eb8a3f298beabd95e89e9c112dffe19a9f2e8ef34acf3dd4908c6d10ee6f1 WHIRLPOOL 8f2eacb4fa260c6241d7b96818ee14c4dfa0fa39c50ded5afcadf09711b8c54663d976eba990850598d81abe892e4f008905b87e47c7739d50edd266fbf3a1bc +EBUILD pecl-http-3.1.0-r1.ebuild 2123 SHA256 37c7db1641624d01f0c154870345e4edb57ae1b7a2fdbd911a27a5fffa8f8371 SHA512 e9d1bc26b6cb8eb453f8faf1520ee7fef6ec66780d3d9d81a5f787e244b04abdd9734a73f0c47ccd717ffea20a3511cc57651c4960299ced1636129ddd17d92e WHIRLPOOL 9a28be50e9f5f44905979e86657738719fe7b08aa9ba94e34a818e518138452f4e63a9ad5e5efd0cf7dc8332a4107daeb60f90e483f1a21b4f038eb7dc4fc639 +EBUILD pecl-http-3.1.0.ebuild 1587 SHA256 f546960b6c0c675c106906ee7b744b8f4a759a1a045cee8ae039b5af61888424 SHA512 f5d7f29153359c1a4a6991165e42a674c086e544c37fbdc23e580e2a6714734acbccb15081eedf92be3df79a21298ad5ee81032b75278c5ffc2bbfc59b0c6215 WHIRLPOOL 1cee9b83fdfaff83bd45b38434d6ed6d2b3e4bf0610d1aefd647f4c55c17feaf101e03bb7ac717d49771b58630c0dabd4f04c8b15bfae22b99975de3708ac4a8 +MISC ChangeLog 3863 SHA256 d1ee0ec875e3a785100bc098bc6f31dd5e65948982572cdf4450fe082ca63fe5 SHA512 bb2505f6c122e6ff993db212321651f79a648261021e6c3a50fe907197cdd73fc918722474639e00ad7183847dab8cd67adb42c7e9cf04610af55928e5f0b39e WHIRLPOOL 66969af7c3a436b7eef9e8430574e06b8e1c45568eb1015ebb05dab5fae4de97cf20fb36e4131d44e80475a89b78dfbae35336632749b574fe44afd5272213fd +MISC ChangeLog-2015 5880 SHA256 d5a60e4cedb49b3c4258dbe3cd8ac3e8574ef28c5a3a65ee89c78b249f12137e SHA512 da7778bfcdcd478224ed7806d943641fce314d9fadd48ba3995d7758b114a3819beb3f370d200a42bf3a269ef2388466d5d504b003350ff44e3a3921ddd4db8c WHIRLPOOL a04324d97977709c115f1c92cea943da2e3a52fcb6a3f09692dd125f4a68cc2eba163abb1f28663171516f505f696d10ed5d84fd2d19bc211c2f8b1d857e5de6 +MISC metadata.xml 239 SHA256 b54aca642ac424532264a97d14931720ed288cf387dbdef6a10b34ffed6689f1 SHA512 2181b874bfe8cd31e7730d8207e26cfd2f272eaf2d1b57ae0faff126347a5298fa1c506d9107e1da9736c8a0ed9c8c339e4d9509a8726b79dbe86e073c12dee0 WHIRLPOOL 80ab9605bb31ce3310bf524de4705c67ca85cf8f2346b7e13274595598b9fe92c9b119beb865ef214ad33ef172b880e318d18ff8c8d2026cb7319f0524d8a7aa diff --git a/dev-php/pecl-http/files/pecl-http-gnutls.patch b/dev-php/pecl-http/files/pecl-http-gnutls.patch new file mode 100644 index 000000000000..4b58805946dc --- /dev/null +++ b/dev-php/pecl-http/files/pecl-http-gnutls.patch @@ -0,0 +1,24 @@ +diff -aurN a/autoconf/pecl/libcurl.m4 b/autoconf/pecl/libcurl.m4 +--- a/autoconf/pecl/libcurl.m4 2016-12-12 04:04:21.000000000 -0500 ++++ b/autoconf/pecl/libcurl.m4 2017-01-06 09:07:17.575660038 -0500 +@@ -87,7 +87,7 @@ + AC_REQUIRE([PECL_HAVE_LIBCURL_CA])dnl + PECL_HAVE_LIBCURL_FEATURE([SSL], [ + PECL_HAVE_LIBCURL_SSLLIB([OpenSSL], [openssl/ssl.h openssl/crypto.h], [ssl crypto]) +- PECL_HAVE_LIBCURL_SSLLIB([GnuTLS], [gnutls.h gcrypt.h], [gnutls gcrypt]) ++ PECL_HAVE_LIBCURL_SSLLIB([GnuTLS], [gnutls/gnutls.h gcrypt.h], [gnutls gcrypt]) + PECL_HAVE_LIBCURL_SSLLIB([NSS]) + PECL_HAVE_LIBCURL_SSLLIB([SecureTransport]) + PECL_HAVE_LIBCURL_SSLLIB([GSKit]) +diff -aurN a/src/php_http_client_curl.c b/src/php_http_client_curl.c +--- a/src/php_http_client_curl.c 2016-12-12 04:04:21.000000000 -0500 ++++ b/src/php_http_client_curl.c 2017-01-06 09:09:01.631772852 -0500 +@@ -21,7 +21,7 @@ + # include <openssl/ssl.h> + #endif + #if PHP_HTTP_HAVE_LIBCURL_GNUTLS +-# include <gnutls.h> ++# include <gnutls/gnutls.h> + #endif + + typedef struct php_http_client_curl_handler { diff --git a/dev-php/pecl-http/metadata.xml b/dev-php/pecl-http/metadata.xml new file mode 100644 index 000000000000..b86acf66c756 --- /dev/null +++ b/dev-php/pecl-http/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> +</pkgmetadata> diff --git a/dev-php/pecl-http/pecl-http-2.6.0-r1.ebuild b/dev-php/pecl-http/pecl-http-2.6.0-r1.ebuild new file mode 100644 index 000000000000..17aa145af9e9 --- /dev/null +++ b/dev-php/pecl-http/pecl-http-2.6.0-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PHP_EXT_NAME="http" +PHP_EXT_PECL_PKG="pecl_http" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" + +USE_PHP="php5-6 php7-0 php7-1" + +inherit php-ext-pecl-r3 + +USE_PHP="php5-6" + +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="Extended HTTP Support for PHP" +LICENSE="BSD-2 MIT" +SLOT="2" +IUSE="ssl curl_ssl_gnutls curl_ssl_libressl curl_ssl_nss +curl_ssl_openssl" + +DEPEND="php_targets_php5-6? ( + dev-libs/libevent + dev-php/pecl-propro:0[php_targets_php5-6] + dev-php/pecl-raphf:0[php_targets_php5-6] + net-dns/libidn + sys-libs/zlib + ssl? ( net-misc/curl[ssl,curl_ssl_gnutls=,curl_ssl_libressl=,curl_ssl_nss=,curl_ssl_openssl=] ) + !ssl? ( net-misc/curl[-ssl] ) + dev-lang/php:5.6[hash,session,iconv] )" +RDEPEND="${DEPEND}" +PDEPEND=" + php_targets_php7-0? ( dev-php/pecl-http:7[php_targets_php7-0] ) + php_targets_php7-1? ( dev-php/pecl-http:7[php_targets_php7-1] )" + +PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps ) + +src_prepare() { + if use php_targets_php5-6 ; then + php-ext-source-r3_src_prepare + else + default_src_prepare + fi +} + +src_install() { + if use php_targets_php5-6 ; then + php-ext-pecl-r3_src_install + + # Ensure that the http extension is loaded after its + # dependencies raphf and propro (bug 612054). Some day + # this should be possible through the eclass (bug 586446). + local slot, file, oldname, newname + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + for file in $(php_slot_ini_files "${slot}") ; do + # Prepend "zz" to the ini symlink name. This is sadly + # coupled to the naming convention in the eclass. + oldname="${ED}/${file/ext/ext-active}" + newname="${oldname/${PHP_EXT_NAME}.ini/zz${PHP_EXT_NAME}.ini}" + mv "${oldname}" "${newname}" \ + || die "failed to rename ${oldname} to ${newname}" + einfo "renamed ${oldname} to ${newname}" + done + done + fi +} diff --git a/dev-php/pecl-http/pecl-http-2.6.0.ebuild b/dev-php/pecl-http/pecl-http-2.6.0.ebuild new file mode 100644 index 000000000000..2cb44cf7081a --- /dev/null +++ b/dev-php/pecl-http/pecl-http-2.6.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PHP_EXT_NAME="http" +PHP_EXT_PECL_PKG="pecl_http" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" + +USE_PHP="php5-6 php7-0 php7-1" + +inherit php-ext-pecl-r3 + +USE_PHP="php5-6" + +KEYWORDS="amd64 x86" + +DESCRIPTION="Extended HTTP Support for PHP" +LICENSE="BSD-2 MIT" +SLOT="2" +IUSE="ssl curl_ssl_gnutls curl_ssl_libressl curl_ssl_nss +curl_ssl_openssl" + +DEPEND="php_targets_php5-6? ( + dev-libs/libevent + dev-php/pecl-propro:0[php_targets_php5-6] + dev-php/pecl-raphf:0[php_targets_php5-6] + net-dns/libidn + sys-libs/zlib + ssl? ( net-misc/curl[ssl,curl_ssl_gnutls=,curl_ssl_libressl=,curl_ssl_nss=,curl_ssl_openssl=] ) + !ssl? ( net-misc/curl[-ssl] ) + dev-lang/php:5.6[hash,session,iconv] )" +RDEPEND="${DEPEND}" +PDEPEND=" + php_targets_php7-0? ( dev-php/pecl-http:7[php_targets_php7-0] ) + php_targets_php7-1? ( dev-php/pecl-http:7[php_targets_php7-1] )" + +PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps ) + +src_prepare() { + if use php_targets_php5-6 ; then + php-ext-source-r3_src_prepare + else + default_src_prepare + fi +} + +src_install() { + if use php_targets_php5-6 ; then + php-ext-pecl-r3_src_install + fi +} + +pkg_postinst() { + ewarn "This API has drastically changed and is not compatible with the 1.x syntax." + ewarn "Please review the documentation and update your code." +} diff --git a/dev-php/pecl-http/pecl-http-3.1.0-r1.ebuild b/dev-php/pecl-http/pecl-http-3.1.0-r1.ebuild new file mode 100644 index 000000000000..df1e34b5a7e3 --- /dev/null +++ b/dev-php/pecl-http/pecl-http-3.1.0-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PHP_EXT_NAME="http" +PHP_EXT_PECL_PKG="pecl_http" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" + +USE_PHP="php5-6 php7-0 php7-1" + +inherit php-ext-pecl-r3 + +USE_PHP="php7-0 php7-1" + +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="Extended HTTP Support for PHP" +LICENSE="BSD-2 MIT" +SLOT="7" +IUSE="ssl curl_ssl_gnutls curl_ssl_libressl curl_ssl_nss +curl_ssl_openssl" + +DEPEND="dev-libs/libevent + dev-php/pecl-propro:7[php_targets_php5-6?,php_targets_php7-0?,php_targets_php7-1?] + dev-php/pecl-raphf:7[php_targets_php5-6?,php_targets_php7-0?,php_targets_php7-1?] + net-dns/libidn + sys-libs/zlib + ssl? ( net-misc/curl[ssl,curl_ssl_gnutls=,curl_ssl_libressl=,curl_ssl_nss=,curl_ssl_openssl=] ) + !ssl? ( net-misc/curl[-ssl] ) + php_targets_php7-0? ( dev-lang/php:7.0[hash,session,iconv] ) + php_targets_php7-1? ( dev-lang/php:7.1[hash,session,iconv] )" +RDEPEND="${DEPEND} + php_targets_php5-6? ( dev-php/pecl-http:2[php_targets_php5-6] )" + +PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps --without-http-libidn2-dir ) + +PATCHES=( "${FILESDIR}/pecl-http-gnutls.patch" ) + +src_prepare() { + if use php_targets_php7-0 || use php_targets_php7-1 ; then + php-ext-source-r3_src_prepare + else + default_src_prepare + fi +} + +src_install() { + if use php_targets_php7-0 || use php_targets_php7-1 ; then + php-ext-pecl-r3_src_install + + # Ensure that the http extension is loaded after its + # dependencies raphf and propro (bug 612054). Some day + # this should be possible through the eclass (bug 586446). + local slot, file, oldname, newname + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + for file in $(php_slot_ini_files "${slot}") ; do + # Prepend "zz" to the ini symlink name. This is sadly + # coupled to the naming convention in the eclass. + oldname="${ED}/${file/ext/ext-active}" + newname="${oldname/${PHP_EXT_NAME}.ini/zz${PHP_EXT_NAME}.ini}" + mv "${oldname}" "${newname}" \ + || die "failed to rename ${oldname} to ${newname}" + einfo "renamed ${oldname} to ${newname}" + done + done + fi +} diff --git a/dev-php/pecl-http/pecl-http-3.1.0.ebuild b/dev-php/pecl-http/pecl-http-3.1.0.ebuild new file mode 100644 index 000000000000..c262cbac8549 --- /dev/null +++ b/dev-php/pecl-http/pecl-http-3.1.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PHP_EXT_NAME="http" +PHP_EXT_PECL_PKG="pecl_http" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" + +USE_PHP="php5-6 php7-0 php7-1" + +inherit php-ext-pecl-r3 + +USE_PHP="php7-0 php7-1" + +KEYWORDS="amd64 x86" + +DESCRIPTION="Extended HTTP Support for PHP" +LICENSE="BSD-2 MIT" +SLOT="7" +IUSE="ssl curl_ssl_gnutls curl_ssl_libressl curl_ssl_nss +curl_ssl_openssl" + +DEPEND="dev-libs/libevent + dev-php/pecl-propro:7[php_targets_php5-6?,php_targets_php7-0?,php_targets_php7-1?] + dev-php/pecl-raphf:7[php_targets_php5-6?,php_targets_php7-0?,php_targets_php7-1?] + net-dns/libidn + sys-libs/zlib + ssl? ( net-misc/curl[ssl,curl_ssl_gnutls=,curl_ssl_libressl=,curl_ssl_nss=,curl_ssl_openssl=] ) + !ssl? ( net-misc/curl[-ssl] ) + php_targets_php7-0? ( dev-lang/php:7.0[hash,session,iconv] ) + php_targets_php7-1? ( dev-lang/php:7.1[hash,session,iconv] )" +RDEPEND="${DEPEND} + php_targets_php5-6? ( dev-php/pecl-http:2[php_targets_php5-6] )" + +PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps --without-http-libidn2-dir ) + +PATCHES=( "${FILESDIR}/pecl-http-gnutls.patch" ) + +src_prepare() { + if use php_targets_php7-0 || use php_targets_php7-1 ; then + php-ext-source-r3_src_prepare + else + default_src_prepare + fi +} + +src_install() { + if use php_targets_php7-0 || use php_targets_php7-1 ; then + php-ext-pecl-r3_src_install + fi +} + +pkg_postinst() { + ewarn "This API has drastically changed and is not compatible with the 1.x syntax." + ewarn "Please review the documentation and update your code." +} |