summaryrefslogtreecommitdiff
blob: 86150f3f92e58b9b4649a74e73e528b8c34072e6 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php/PECL-apc/PECL-apc-2.0.4.ebuild,v 1.2 2005/05/21 04:53:04 sebastian Exp $

PHP_EXT_ZENDEXT="no"
PHP_EXT_PECL_PKG="APC"
PHP_EXT_NAME="apc"
PHP_EXT_INI="yes"

inherit php-ext-pecl

IUSE=""
DESCRIPTION="The Alternative PHP Cache"
SLOT="0"
LICENSE="PHP"
KEYWORDS="x86 ~alpha ~sparc ~ppc amd64"
DEPEND="${DEPEND}
	    !dev-php/turck-mmcache
		!dev-php/php-accelerator
		!dev-php/ioncube_loaders
		=dev-php/php-4*"

src_install () {
	php-ext-pecl_src_install
	dodoc CHANGELOG INSTALL LICENSE NOTICE

	php-ext-base_addtoinifiles "apc.enabled" '"1"'
	php-ext-base_addtoinifiles "apc.shm_segments" '"1"'
	php-ext-base_addtoinifiles "apc.shm_size" '"30"'
	php-ext-base_addtoinifiles "apc.optimization" '"0"'
	php-ext-base_addtoinifiles "apc.num_files_hint" '"1000"'
	php-ext-base_addtoinifiles "apc.gc_ttl" '"3600"'
	php-ext-base_addtoinifiles "apc.filters" '""'
}