/[gentoo-x86]/dev-php/xcache/xcache-2.0.0.ebuild
Gentoo

Contents of /dev-php/xcache/xcache-2.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Apr 17 12:52:36 2013 UTC (12 months ago) by olemarkus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old stable

(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key C4A92BF5)

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/xcache/xcache-2.0.0.ebuild,v 1.4 2012/10/21 09:15:01 maekke Exp $
4
5 EAPI="4"
6 PHP_EXT_NAME="xcache"
7 PHP_EXT_INI="yes"
8 PHP_EXT_ZENDEXT="yes"
9 PHPSAPILIST="apache2 cgi fpm"
10
11 USE_PHP="php5-3 php5-4"
12 inherit php-ext-source-r2 confutils
13
14 DESCRIPTION="A fast and stable PHP opcode cacher"
15 HOMEPAGE="http://xcache.lighttpd.net/"
16 SRC_URI="http://xcache.lighttpd.net/pub/Releases/${PV}/${P}.tar.bz2"
17
18 LICENSE="BSD"
19 SLOT="0"
20 KEYWORDS="amd64 x86"
21 IUSE=""
22
23 # make test would just run php's test and as such need the full php source
24 RESTRICT="test"
25
26 DEPEND="virtual/httpd-php
27 !dev-php/eaccelerator !dev-php/pecl-apc"
28 RDEPEND="${DEPEND}"
29
30 src_configure() {
31
32 my_conf="--enable-xcache=shared \
33 --enable-xcache-constant \
34 --enable-xcache-optimizer \
35 --enable-xcache-coverager \
36 --enable-xcache-assembler \
37 --enable-xcache-encoder \
38 --enable-xcache-decoder"
39
40 php-ext-source-r2_src_configure
41 }
42
43 src_install() {
44 php-ext-source-r2_src_install
45 dodoc AUTHORS ChangeLog NEWS README THANKS
46
47 php-ext-source-r2_addtoinifiles "xcache.admin.enable_auth" '"On"'
48 php-ext-source-r2_addtoinifiles "xcache.admin.user" '"admin"'
49 php-ext-source-r2_addtoinifiles "xcache.admin.pass" '""'
50
51 php-ext-source-r2_addtoinifiles "xcache.cacher" '"On"'
52 php-ext-source-r2_addtoinifiles "xcache.size" '"64M"'
53 php-ext-source-r2_addtoinifiles "xcache.count" '"2"'
54 php-ext-source-r2_addtoinifiles "xcache.slots" '"8k"'
55 php-ext-source-r2_addtoinifiles "xcache.ttl" '"0"'
56 php-ext-source-r2_addtoinifiles "xcache.gc_interval" '"0"'
57 php-ext-source-r2_addtoinifiles "xcache.var_size" '"8M"'
58 php-ext-source-r2_addtoinifiles "xcache.var_count" '"1"'
59 php-ext-source-r2_addtoinifiles "xcache.var_slots" '"8K"'
60 php-ext-source-r2_addtoinifiles "xcache.var_ttl" '"0"'
61 php-ext-source-r2_addtoinifiles "xcache.var_maxttl" '"0"'
62 php-ext-source-r2_addtoinifiles "xcache.var_gc_interval" '"600"'
63 php-ext-source-r2_addtoinifiles "xcache.readonly_protection" '"Off"'
64 php-ext-source-r2_addtoinifiles "xcache.mmap_path" '"/dev/zero"'
65
66 php-ext-source-r2_addtoinifiles "xcache.coverager" '"Off"'
67 php-ext-source-r2_addtoinifiles "xcache.coveragedump_directory" '""'
68
69 php-ext-source-r2_addtoinifiles "xcache.optimizer" '"Off"'
70
71 insinto "${PHP_EXT_SHARED_DIR}"
72 doins Decompiler.class.php
73 insinto "${PHP_EXT_SHARED_DIR}/admin"
74 doins admin/*
75 insinto "${PHP_EXT_SHARED_DIR}/coverager"
76 doins coverager/*
77 }
78
79 pkg_postinst() {
80 elog "Decompiler.class.php, the admin/ and the coverager/ directory shipped with this"
81 elog "release were installed into ${ROOT}usr/share/php5/xcache/."
82 }

  ViewVC Help
Powered by ViewVC 1.1.20