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

Contents of /dev-php4/pecl-apc/pecl-apc-3.0.12_p2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sat Aug 9 21:53:38 2008 UTC (6 years, 1 month ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Remove all of dev-php4 packages per hoffie.

1 # Copyright 1999-2007 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.12_p2.ebuild,v 1.12 2007/05/12 14:35:18 chtekk 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
14 DESCRIPTION="A free, open, and robust framework for caching and optimizing PHP code."
15 LICENSE="PHP"
16 SLOT="0"
17 IUSE="mmap"
18
19 DEPEND="!dev-php4/eaccelerator !dev-php4/xcache"
20 RDEPEND="${DEPEND}"
21
22 need_php_by_category
23
24 pkg_setup() {
25 has_php
26 require_php_sapi_from cgi apache2
27 }
28
29 src_compile() {
30 has_php
31
32 # PECL-APC does not work with Zend Thread Safety (ZTS),
33 # so abort if we're using PHP compiled with ZTS.
34 if has_zts ; then
35 eerror "PECL-APC doesn't work with a ZTS enabled PHP."
36 eerror "Please disable ZTS by turning the 'threads'"
37 eerror "USE flag off when you compile dev-lang/php."
38 die "PECL-APC does not support ZTS"
39 fi
40
41 my_conf="--enable-apc"
42 enable_extension_enable "apc-mmap" "mmap" 0
43 enable_extension_with_built_with =${PHP_PKG} apache2 apxs /usr/sbin/apxs2 "optimisation for apache2"
44
45 php-ext-pecl-r1_src_compile
46 }
47
48 src_install() {
49 php-ext-pecl-r1_src_install
50 dodoc-php CHANGELOG INSTALL LICENSE NOTICE
51
52 php-ext-base-r1_addtoinifiles "apc.enabled" '"1"'
53 php-ext-base-r1_addtoinifiles "apc.shm_segments" '"1"'
54 php-ext-base-r1_addtoinifiles "apc.shm_size" '"30"'
55 php-ext-base-r1_addtoinifiles "apc.optimization" '"0"'
56 php-ext-base-r1_addtoinifiles "apc.num_files_hint" '"1024"'
57 php-ext-base-r1_addtoinifiles "apc.ttl" '"7200"'
58 php-ext-base-r1_addtoinifiles "apc.user_ttl" '"7200"'
59 php-ext-base-r1_addtoinifiles "apc.gc_ttl" '"3600"'
60 php-ext-base-r1_addtoinifiles "apc.cache_by_default" '"1"'
61 php-ext-base-r1_addtoinifiles ";apc.mmap_file_mask" '"/tmp/apcphp4.XXXXXX"'
62 php-ext-base-r1_addtoinifiles "apc.file_update_protection" '"2"'
63 php-ext-base-r1_addtoinifiles "apc.enable_cli" '"0"'
64 php-ext-base-r1_addtoinifiles "apc.max_file_size" '"1M"'
65 php-ext-base-r1_addtoinifiles "apc.stat" '"1"'
66 php-ext-base-r1_addtoinifiles "apc.write_lock" '"1"'
67
68 dodir "${PHP_EXT_SHARED_DIR}"
69 insinto "${PHP_EXT_SHARED_DIR}"
70 doins apc.php
71 }
72
73 pkg_postinst() {
74 elog "The apc.php file shipped with this release of PECL-APC was"
75 elog "installed into ${ROOT}usr/share/php4/apc/."
76 }

  ViewVC Help
Powered by ViewVC 1.1.20