summaryrefslogtreecommitdiff
blob: 75e479ee42137a0e09f56a0ad0d40fe419bee1ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php4/pecl-http/pecl-http-1.5.4.ebuild,v 1.3 2008/03/16 12:32:03 cla Exp $

PHP_EXT_NAME="http"
PHP_EXT_PECL_PKG="pecl_http"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="no"

inherit php-ext-pecl-r1

KEYWORDS="~amd64 x86"

DESCRIPTION="Extended HTTP Support for PHP."
LICENSE="BSD"
SLOT="0"
IUSE=""

DEPEND="net-misc/curl
		sys-libs/zlib"
RDEPEND="${DEPEND}"

need_php_by_category

src_compile() {
	my_conf="--enable-http \
			--with-http-curl-requests \
			--with-http-zlib-compression"

	php-ext-pecl-r1_src_compile
}

pkg_postinst() {
	has_php
	if ! built_with_use --missing true =${PHP_PKG} iconv session ; then
		elog "${PN} can optionally use iconv and session features."
		elog "If you want those, recompile ${PHP_PKG} with those flags in USE."
	fi
}