From ec123a3468816cce74c287c41440203f37f94c32 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 6 Feb 2006 15:34:44 +0000 Subject: Add pecl-pecl_http 0.22.0, a PHP extension which provides extended HTTP request/response handling. PR: ports/92827 Submitted by: Alexander Zhuravlev --- www/pecl-pecl_http/Makefile | 59 ++++++++++++++++++++++++++++++++++++++++++++ www/pecl-pecl_http/distinfo | 3 +++ www/pecl-pecl_http/pkg-descr | 16 ++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 www/pecl-pecl_http/Makefile create mode 100644 www/pecl-pecl_http/distinfo create mode 100644 www/pecl-pecl_http/pkg-descr (limited to 'www/pecl-pecl_http') diff --git a/www/pecl-pecl_http/Makefile b/www/pecl-pecl_http/Makefile new file mode 100644 index 000000000000..55c654d664b9 --- /dev/null +++ b/www/pecl-pecl_http/Makefile @@ -0,0 +1,59 @@ +# Ports collection makefile for: pecl-pecl_http +# Date created: 2005-12-19 +# Whom: Alexander Zhuravlev +# +# $FreeBSD$ +# + +PORTNAME= pecl_http +PORTVERSION= 0.22.0 +CATEGORIES= www +MASTER_SITES= http://pecl.php.net/get/ +PKGNAMEPREFIX= pecl- +EXTRACT_SUFX= .tgz +DIST_SUBDIR= PECL + +MAINTAINER= zaa@zaa.pp.ru +COMMENT= A PHP extension which provides extended HTTP request/response handling + +USE_PHP= session zlib +USE_PHPIZE= yes +USE_PHPEXT= yes +DEFAULT_PHP_VER=5 +PHP_MODNAME= http + +RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/hash.so:${PORTSDIR}/security/pecl-hash + +CONFIGURE_ARGS= --enable-http + +OPTIONS= CURL "Enable cURL HTTP requests" on \ + MAGIC_MIME "Enable response content type guessing" off \ + ZLIB_COMPRESSION "Enable support for encoded message bodies" on + +.include + +.if ${OSVERSION} < 500000 +IGNORE= does not build on FreeBSD <= 4.x +.endif + +.if defined(WITH_CURL) +LIB_DEPENDS+= curl.3:${PORTSDIR}/ftp/curl +CONFIGURE_ARGS+=--with-http-curl-requests=${LOCALBASE} +.else +CONFIGURE_ARGS+=--without-http-curl-requests +.endif + +.if defined(WITH_MAGIC_MIME) +LIB_DEPENDS+= magic.1:${PORTSDIR}/sysutils/file +CONFIGURE_ARGS+=--with-http-magic-mime=${LOCALBASE} +.else +CONFIGURE_ARGS+=--without-http-magic-mime +.endif + +.if defined(WITH_ZLIB_COMPRESSION) +CONFIGURE_ARGS+=--with-http-zlib-compression=/usr +.else +CONFIGURE_ARGS+=--without-http-zlib-compression +.endif + +.include diff --git a/www/pecl-pecl_http/distinfo b/www/pecl-pecl_http/distinfo new file mode 100644 index 000000000000..f7681d12384a --- /dev/null +++ b/www/pecl-pecl_http/distinfo @@ -0,0 +1,3 @@ +MD5 (PECL/pecl_http-0.22.0.tgz) = 849d667960cafa06787baac03c873fbf +SHA256 (PECL/pecl_http-0.22.0.tgz) = 7d6901c5858dde4c39740afb789ad13abdf4a79c69911ec6100d1cfdfb2d7bbd +SIZE (PECL/pecl_http-0.22.0.tgz) = 163358 diff --git a/www/pecl-pecl_http/pkg-descr b/www/pecl-pecl_http/pkg-descr new file mode 100644 index 000000000000..ea74d729ac74 --- /dev/null +++ b/www/pecl-pecl_http/pkg-descr @@ -0,0 +1,16 @@ +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. + +It provides powerful request functionality, if built with CURL +support. Parallel requests are available for PHP-5 and greater. + +PHP-5 classes: +HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; +HttpResponse (PHP-5.1) + +WWW: http://pecl.php.net/package/pecl_http/ -- cgit v1.2.3