/[gentoo-x86]/dev-php4/pecl-apc/pecl-apc-3.0.10.ebuild
Gentoo

Contents of /dev-php4/pecl-apc/pecl-apc-3.0.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Aug 18 09:55:23 2006 UTC (8 years, 9 months ago) by sebastian
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove broken version.
(Portage version: 2.1.1_pre5-r2)
 (Signed Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-php4/pecl-apc/pecl-apc-3.0.10.ebuild,v 1.3 2006/08/17 07:10:05 sebastian Exp $
4
5 PHP_EXT_NAME="apc"
6 PHP_EXT_PECL_PKG="APC"
7 PHP_EXT_INI="yes"
8 PHP_EXT_ZENDEXT="no"
9
10 inherit php-ext-pecl-r1 confutils
11
12 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
13 DESCRIPTION="A free, open, and robust framework for caching and optimizing PHP intermediate code."
14 LICENSE="PHP"
15 SLOT="0"
16 IUSE="mmap"
17
18 DEPEND="${DEPEND}
19 !dev-php4/eaccelerator
20 !>=dev-lang/php-5.2.0"
21
22 need_php_by_category
23
24 pkg_setup() {
25 has_php
26
27 require_php_sapi_from cgi apache apache2
28 }
29
30 src_compile() {
31 has_php
32
33 # PECL-APC does not work with Zend Thread Safety (ZTS)
34 # so abort if we are using PHP compiled with ZTS.
35 if has_zts ; then
36 eerror "PECL-APC doesn't work with a ZTS enabled PHP."
37 eerror "Please disable ZTS by turning the 'threads'"
38 eerror "USE flag off when you compile dev-lang/php."
39 die "PECL-APC does not support ZTS"
40 fi
41
42 my_conf="--enable-apc"
43 enable_extension_enable "apc-mmap" "mmap" 0
44 enable_extension_with_built_with =${PHP_PKG} apache2 apxs2 /usr/sbin/apxs2 "optimisation for apache2"
45 enable_extension_with_built_with =${PHP_PKG} apache apxs /usr/sbin/apxs "optimisation for apache1"
46
47 php-ext-pecl-r1_src_compile
48 }
49
50 src_install() {
51 php-ext-pecl-r1_src_install
52 dodoc-php CHANGELOG INSTALL LICENSE NOTICE
53
54 php-ext-base-r1_addtoinifiles "apc.enabled" '"1"'
55 php-ext-base-r1_addtoinifiles "apc.shm_segments" '"1"'
56 php-ext-base-r1_addtoinifiles "apc.shm_size" '"30"'
57 php-ext-base-r1_addtoinifiles "apc.optimization" '"0"'
58 php-ext-base-r1_addtoinifiles "apc.num_files_hint" '"1000"'
59 php-ext-base-r1_addtoinifiles "apc.ttl" '"0"'
60 php-ext-base-r1_addtoinifiles "apc.gc_ttl" '"3600"'
61 php-ext-base-r1_addtoinifiles "apc.cache_by_default" '"1"'
62 php-ext-base-r1_addtoinifiles "apc.filters" '""'
63 php-ext-base-r1_addtoinifiles "apc.mmap_file_mask" '""'
64 php-ext-base-r1_addtoinifiles "apc.slam_defense" '"0"'
65 php-ext-base-r1_addtoinifiles "apc.file_update_protection" '"2"'
66 php-ext-base-r1_addtoinifiles "apc.stat" '"1"'
67
68 dodir "${PHP_EXT_SHARED_DIR}"
69 insinto "${PHP_EXT_SHARED_DIR}"
70 doins apc.php
71 }
72
73 pkg_postinst() {
74 einfo "The apc.php file shipped with this release of PECL-APC was"
75 einfo "installed into /usr/share/php4/apc/."
76 }

  ViewVC Help
Powered by ViewVC 1.1.20