/[gentoo-x86]/dev-php4/xcache/xcache-1.2.1.ebuild
Gentoo

Contents of /dev-php4/xcache/xcache-1.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Sep 7 12:09:49 2007 UTC (7 years ago) by angelos
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable on amd64 wrt bug #189531
(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/xcache/xcache-1.2.1.ebuild,v 1.3 2007/08/20 08:56:04 jokey Exp $
4
5 PHP_EXT_NAME="xcache"
6 PHP_EXT_INI="yes"
7 PHP_EXT_ZENDEXT="yes"
8
9 inherit php-ext-source-r1 confutils
10
11 KEYWORDS="amd64 x86"
12
13 DESCRIPTION="A fast and stable PHP opcode cacher"
14 HOMEPAGE="http://xcache.lighttpd.net/"
15 SRC_URI="http://xcache.lighttpd.net/pub/Releases/${PV}/${P}.tar.bz2"
16 LICENSE="BSD"
17 SLOT="0"
18 IUSE=""
19
20 # make test would just run php's test and as such need the full php source
21 RESTRICT="test"
22
23 DEPEND="!dev-php4/eaccelerator !dev-php4/pecl-apc"
24 RDEPEND="${DEPEND}"
25
26 need_php_by_category
27
28 pkg_setup() {
29 has_php
30 require_php_sapi_from cgi apache2
31 }
32
33 src_compile() {
34 has_php
35
36 my_conf="--enable-xcache=shared \
37 --enable-xcache-constant \
38 --enable-xcache-optimizer \
39 --enable-xcache-coverager \
40 --enable-xcache-assembler \
41 --enable-xcache-encoder \
42 --enable-xcache-decoder"
43
44 enable_extension_with_built_with =${PHP_PKG} apache2 apxs2 /usr/sbin/apxs2 "optimisation for apache2"
45
46 php-ext-source-r1_src_compile
47 }
48
49 src_install() {
50 php-ext-source-r1_src_install
51 dodoc-php AUTHORS ChangeLog INSTALL COPYING
52
53 php-ext-base-r1_addtoinifiles "auto_globals_jit" '"0"'
54 php-ext-base-r1_addtoinifiles "xcache.cacher" '"1"'
55 php-ext-base-r1_addtoinifiles "xcache.size" '"10M"'
56 php-ext-base-r1_addtoinifiles "xcache.count" '"2"'
57 php-ext-base-r1_addtoinifiles "xcache.slots" '"8k"'
58 php-ext-base-r1_addtoinifiles "xcache.var_size" '"0"'
59 php-ext-base-r1_addtoinifiles "xcache.var_count" '"1"'
60 php-ext-base-r1_addtoinifiles "xcache.readonly_protection" '"0"'
61 php-ext-base-r1_addtoinifiles "xcache.mmap_path" '"/dev/zero"'
62 php-ext-base-r1_addtoinifiles "xcache.stat" '"1"'
63 php-ext-base-r1_addtoinifiles "xcache.coverager" '"0"'
64 php-ext-base-r1_addtoinifiles "xcache.coveragedump_directory" '""'
65 php-ext-base-r1_addtoinifiles "xcache.admin.enable_auth" '"1"'
66
67 dodir "${PHP_EXT_SHARED_DIR}"
68 insinto "${PHP_EXT_SHARED_DIR}"
69 doins Decompiler.class.php
70 dodir "${PHP_EXT_SHARED_DIR}/admin"
71 insinto "${PHP_EXT_SHARED_DIR}/admin"
72 doins admin/*
73 }
74
75 pkg_postinst() {
76 elog "Decompiler.class.php and the admin/ directory shipped with this"
77 elog "release were installed into ${ROOT}usr/share/php4/xcache/."
78 }

  ViewVC Help
Powered by ViewVC 1.1.20