/[gentoo-x86]/dev-php/pecl-apc/pecl-apc-3.1.9-r2.ebuild
Gentoo

Contents of /dev-php/pecl-apc/pecl-apc-3.1.9-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Sep 4 12:29:31 2012 UTC (2 years, 3 months ago) by olemarkus
Branch: MAIN
Changes since 1.6: +2 -2 lines
Bump

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-apc/pecl-apc-3.1.9-r2.ebuild,v 1.6 2012/06/17 10:01:40 xarthisius Exp $
4
5 EAPI=4
6
7 PHP_EXT_NAME="apc"
8 PHP_EXT_PECL_PKG="APC"
9 PHP_EXT_INI="yes"
10 PHP_EXT_ZENDEXT="no"
11 DOCS="CHANGELOG INSTALL NOTICE TECHNOTES.txt TODO"
12
13 PHP_EXT_INIFILE="${PN}.ini"
14
15 inherit php-ext-pecl-r2 confutils eutils
16
17 KEYWORDS="amd64 ppc ~ppc64 x86"
18
19 DESCRIPTION="A free, open, and robust framework for caching and optimizing PHP code."
20 LICENSE="PHP-3.01"
21 SLOT="0"
22 IUSE="mmap"
23
24 DEPEND="!dev-php/eaccelerator !dev-php/xcache"
25 RDEPEND="${DEPEND}"
26
27 LOCKS="pthreadmutex pthreadrw spinlock semaphore"
28
29 LUSE=""
30 for l in ${LOCKS}; do
31 LUSE+="lock_${l} "
32 done
33
34 IUSE+=" ${LUSE/lock_pthreadmutex/+lock_pthreadmutex}"
35
36 REQUIRED_USE="^^ ( $LUSE )"
37
38 src_configure() {
39 my_conf="--enable-apc"
40 enable_extension_enable "apc-mmap" "mmap" 0
41
42 enable_extension_enable "apc-pthreadmutex" "lock_pthreadmutex" 0
43 enable_extension_enable "apc-pthreadrwlocks" "lock_pthreadrw" 0
44 enable_extension_enable "apc-spinlocks" "lock_spinlock" 0
45 enable_extension_enable "apc-sem" "lock_semaphore" 0
46
47 php-ext-source-r2_src_configure
48 }
49
50 src_install() {
51 php-ext-pecl-r2_src_install
52
53 dodir "${PHP_EXT_SHARED_DIR}"
54 insinto "${PHP_EXT_SHARED_DIR}"
55 doins apc.php
56 }
57
58 pkg_postinst() {
59 elog "The apc.php file shipped with this release of PECL-APC was"
60 elog "installed into ${PHP_EXT_SHARED_DIR}/."
61 }

  ViewVC Help
Powered by ViewVC 1.1.20