/[gentoo-x86]/dev-php/pecl-memcache/pecl-memcache-3.0.6-r1.ebuild
Gentoo

Contents of /dev-php/pecl-memcache/pecl-memcache-3.0.6-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Nov 11 14:30:31 2011 UTC (2 years, 10 months ago) by olemarkus
Branch: MAIN
Revbump - adding support for 5.4

(Portage version: 2.2.0_alpha71/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-memcache/pecl-memcache-3.0.6.ebuild,v 1.1 2011/08/17 18:25:28 olemarkus Exp $
4
5 EAPI="2"
6 PHP_EXT_NAME="memcache"
7 PHP_EXT_INI="yes"
8 PHP_EXT_ZENDEXT="no"
9 DOCS="README"
10
11 USE_PHP="php5-3 php5-4"
12
13 inherit php-ext-pecl-r2
14
15 KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
16
17 DESCRIPTION="PHP extension for using memcached."
18 LICENSE="PHP-3"
19 SLOT="0"
20 IUSE="+session"
21
22 DEPEND="sys-libs/zlib
23 dev-lang/php[session?]"
24 RDEPEND="${DEPEND}"
25
26 # upstream does not ship any testsuite, so the PHPize test-runner fails.
27 RESTRICT='test'
28
29 src_configure() {
30 my_conf="--enable-memcache --with-zlib-dir=/usr $(use_enable session memcache-session)"
31 php-ext-source-r2_src_configure
32 }
33
34 src_install() {
35 php-ext-pecl-r2_src_install
36
37 php-ext-source-r2_addtoinifiles "memcache.allow_failover" "true"
38 php-ext-source-r2_addtoinifiles "memcache.max_failover_attempts" "20"
39 php-ext-source-r2_addtoinifiles "memcache.chunk_size" "32768"
40 php-ext-source-r2_addtoinifiles "memcache.default_port" "11211"
41 php-ext-source-r2_addtoinifiles "memcache.hash_strategy" "consistent"
42 php-ext-source-r2_addtoinifiles "memcache.hash_function" "crc32"
43 php-ext-source-r2_addtoinifiles "memcache.redundancy" "1"
44 php-ext-source-r2_addtoinifiles "memcache.session_redundancy" "2"
45 php-ext-source-r2_addtoinifiles "memcache.protocol" "ascii"
46 }

  ViewVC Help
Powered by ViewVC 1.1.20