pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/php-http4 www/php-http4: add package version 4.2.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ffd01bc33d39
branches:  trunk
changeset: 771117:ffd01bc33d39
user:      taca <taca%pkgsrc.org@localhost>
date:      Mon Dec 13 15:13:17 2021 +0000

description:
www/php-http4: add package version 4.2.1

This is pecl http module for PHP 8.0 and 8.1.

This HTTP extension aims to provide a convenient and powerful
set of functionality for one of PHPs major applications.

It eases handling of HTTP urls, dates, redirects, headers and
messages, provides means for negotiation of clients preferred
language and charset, as well as a convenient way to send any
arbitrary data with caching and resuming capabilities.

diffstat:

 www/php-http4/DESCR                                  |   9 ++++
 www/php-http4/Makefile                               |  40 ++++++++++++++++++++
 www/php-http4/distinfo                               |   6 +++
 www/php-http4/patches/patch-autoconf_pecl_libcurl.m4 |  15 +++++++
 4 files changed, 70 insertions(+), 0 deletions(-)

diffs (86 lines):

diff -r 8ade9eb0c604 -r ffd01bc33d39 www/php-http4/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/php-http4/DESCR       Mon Dec 13 15:13:17 2021 +0000
@@ -0,0 +1,9 @@
+This HTTP extension aims to provide a convenient and powerful
+set of functionality for one of PHPs major applications.
+
+It eases handling of HTTP urls, dates, redirects, headers and
+messages, provides means for negotiation of clients preferred
+language and charset, as well as a convenient way to send any
+arbitrary data with caching and resuming capabilities.
+
+This package supports PHP 8.x.
diff -r 8ade9eb0c604 -r ffd01bc33d39 www/php-http4/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/php-http4/Makefile    Mon Dec 13 15:13:17 2021 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2021/12/13 15:13:17 taca Exp $
+
+MODNAME=               http
+PECL_VERSION=          4.2.1
+CATEGORIES+=           www
+
+PECL_DISTNAME=         pecl_http-${PECL_VERSION}
+
+MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=              http://pecl.php.net/package/pecl_http
+COMMENT=               PHP extension for extended HTTP support
+LICENSE=               2-clause-bsd AND isc
+
+CONFLICTS=             php-http-[0-9]*
+
+#PHP_VERSIONS_ACCEPTED=        80 81
+
+USE_LANGUAGES=         c c++
+USE_TOOLS+=            bash
+
+CONFIG_SHELL=          bash
+CONFIGURE_ARGS+=       --with-http
+CONFIGURE_ARGS+=       --with-http-libcurl-dir=${BUILDLINK_PREFIX.curl}
+CONFIGURE_ARGS+=       --with-http-libevent-dir=${BUILDLINK_PREFIX.libevent}
+CONFIGURE_ARGS+=       --with-http-libidn-dir=${BUILDLINK_PREFIX.libidn}
+CONFIGURE_ARGS+=       --with-http-libicu-dir=${BUILDLINK_PREFIX.icu}
+CONFIGURE_ARGS+=       --with-http-zlib-dir=${BUILDLINK_PREFIX.zlib}
+
+BUILDLINK_API_DEPENDS.libevent=        libevent>=2
+
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../devel/libidn/buildlink3.mk"
+.include "../../devel/php-raphf2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../sysutils/file/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../converters/php-iconv/buildlink3.mk"
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 8ade9eb0c604 -r ffd01bc33d39 www/php-http4/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/php-http4/distinfo    Mon Dec 13 15:13:17 2021 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/12/13 15:13:17 taca Exp $
+
+BLAKE2s (php-http/pecl_http-4.2.1.tgz) = 83147b5a97591048df0e70c332e2409926f24225ea89891fb740e07cf773a99f
+SHA512 (php-http/pecl_http-4.2.1.tgz) = 2ad7e57fae313a7b46ba88e528e124ac9d83804827131a6ef478ccf3cf5883dec2d928b8ceb377ee7f5947c76f24d640d77533a9946612419e526786a79877e6
+Size (php-http/pecl_http-4.2.1.tgz) = 224452 bytes
+SHA1 (patch-autoconf_pecl_libcurl.m4) = 48263c311aeccc4fd2a5b366b56e85041d659b91
diff -r 8ade9eb0c604 -r ffd01bc33d39 www/php-http4/patches/patch-autoconf_pecl_libcurl.m4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/php-http4/patches/patch-autoconf_pecl_libcurl.m4      Mon Dec 13 15:13:17 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-autoconf_pecl_libcurl.m4,v 1.1 2021/12/13 15:13:17 taca Exp $
+
+Fix portability.
+
+--- autoconf/pecl/libcurl.m4.orig      2021-09-13 10:46:53.000000000 +0000
++++ autoconf/pecl/libcurl.m4
+@@ -181,7 +181,7 @@ AC_DEFUN([PECL_HAVE_LIBCURL_SSL], [dnl
+                       fi
+               ])
+ 
+-              if test "$PECL_VAR([LIBCURL_SSLLIB])" == "OpenSSL"; then
++              if test "$PECL_VAR([LIBCURL_SSLLIB])" = "OpenSSL"; then
+                       PECL_HAVE_CONST([curl/curl.h], [CURLOPT_TLS13_CIPHERS], int, [
+                               AC_CACHE_CHECK([whether curl_easy_setopt accepts CURLOPT_TLS13_CIPHERS], PECL_CACHE_VAR([LIBCURL_TLS13_CIPHERS]), [
+                                       PECL_CACHE_VAR([LIBCURL_TLS13_CIPHERS])=



Home | Main Index | Thread Index | Old Index