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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Sep 6 15:55:57 2007 UTC (7 years, 2 months ago) by jokey
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Cleanup
(Portage version: 2.1.3.7)

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.13.ebuild,v 1.4 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_unpack() {
30 unpack ${A}
31 cd "${S}"
32 epatch "${FILESDIR}/${P}-tsrm.patch"
33 }
34
35 src_compile() {
36 has_php
37
38 my_conf="--enable-apc"
39 enable_extension_enable "apc-mmap" "mmap" 0
40 enable_extension_with_built_with =${PHP_PKG} apache2 apxs /usr/sbin/apxs2 "optimisation for apache2"
41
42 php-ext-pecl-r1_src_compile
43 }
44
45 src_install() {
46 php-ext-pecl-r1_src_install
47 dodoc-php CHANGELOG INSTALL LICENSE NOTICE
48
49 php-ext-base-r1_addtoinifiles "apc.enabled" '"1"'
50 php-ext-base-r1_addtoinifiles "apc.shm_segments" '"1"'
51 php-ext-base-r1_addtoinifiles "apc.shm_size" '"30"'
52 php-ext-base-r1_addtoinifiles "apc.optimization" '"0"'
53 php-ext-base-r1_addtoinifiles "apc.num_files_hint" '"1024"'
54 php-ext-base-r1_addtoinifiles "apc.ttl" '"7200"'
55 php-ext-base-r1_addtoinifiles "apc.user_ttl" '"7200"'
56 php-ext-base-r1_addtoinifiles "apc.gc_ttl" '"3600"'
57 php-ext-base-r1_addtoinifiles "apc.cache_by_default" '"1"'
58 php-ext-base-r1_addtoinifiles ";apc.mmap_file_mask" '"/tmp/apcphp4.XXXXXX"'
59 php-ext-base-r1_addtoinifiles "apc.file_update_protection" '"2"'
60 php-ext-base-r1_addtoinifiles "apc.enable_cli" '"0"'
61 php-ext-base-r1_addtoinifiles "apc.max_file_size" '"1M"'
62 php-ext-base-r1_addtoinifiles "apc.stat" '"1"'
63 php-ext-base-r1_addtoinifiles "apc.write_lock" '"1"'
64
65 dodir "${PHP_EXT_SHARED_DIR}"
66 insinto "${PHP_EXT_SHARED_DIR}"
67 doins apc.php
68 }
69
70 pkg_postinst() {
71 elog "The apc.php file shipped with this release of PECL-APC was"
72 elog "installed into ${ROOT}usr/share/php4/apc/."
73 }

  ViewVC Help
Powered by ViewVC 1.1.20