summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Markus With <olemarkus@gentoo.org>2012-08-27 08:24:52 +0000
committerOle Markus With <olemarkus@gentoo.org>2012-08-27 08:24:52 +0000
commita2b2e86410ea556c9f6ea7e60b84df990e4e694f (patch)
treec94b1b7697c83cafa2399b62e6a2fc2f299753a7 /dev-php
parentBackport upstream patch to fix SIGSEGV with gcc-4.6 wrt #424475 by Ivan Bagae... (diff)
downloadgentoo-2-a2b2e86410ea556c9f6ea7e60b84df990e4e694f.tar.gz
gentoo-2-a2b2e86410ea556c9f6ea7e60b84df990e4e694f.tar.bz2
gentoo-2-a2b2e86410ea556c9f6ea7e60b84df990e4e694f.zip
Readding memcached 2.x due to popular demand (and broken 3.x branch)
(Portage version: 2.1.11.9/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/pecl-memcache/ChangeLog8
-rw-r--r--dev-php/pecl-memcache/pecl-memcache-2.2.6-r2.ebuild41
2 files changed, 48 insertions, 1 deletions
diff --git a/dev-php/pecl-memcache/ChangeLog b/dev-php/pecl-memcache/ChangeLog
index 4d349496e67a..27a8b2858f54 100644
--- a/dev-php/pecl-memcache/ChangeLog
+++ b/dev-php/pecl-memcache/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-php/pecl-memcache
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-memcache/ChangeLog,v 1.4 2012/08/23 16:36:16 olemarkus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-memcache/ChangeLog,v 1.5 2012/08/27 08:24:52 olemarkus Exp $
+
+*pecl-memcache-2.2.6-r2 (27 Aug 2012)
+
+ 27 Aug 2012; Ole Markus With <olemarkus@gentoo.org>
+ +pecl-memcache-2.2.6-r2.ebuild:
+ Readding memcached 2.x due to popular demand (and broken 3.x branch)
23 Aug 2012; Ole Markus With <olemarkus@gentoo.org>
-pecl-memcache-2.2.6-r1.ebuild, -pecl-memcache-3.0.5-r2.ebuild,
diff --git a/dev-php/pecl-memcache/pecl-memcache-2.2.6-r2.ebuild b/dev-php/pecl-memcache/pecl-memcache-2.2.6-r2.ebuild
new file mode 100644
index 000000000000..9456db2fe9da
--- /dev/null
+++ b/dev-php/pecl-memcache/pecl-memcache-2.2.6-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-memcache/pecl-memcache-2.2.6-r2.ebuild,v 1.1 2012/08/27 08:24:52 olemarkus Exp $
+
+EAPI="4"
+PHP_EXT_NAME="memcache"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="no"
+DOCS="README"
+
+inherit php-ext-pecl-r2
+
+KEYWORDS="amd64 hppa ppc64 x86"
+
+DESCRIPTION="PHP extension for using memcached."
+LICENSE="PHP-3"
+SLOT="0"
+IUSE="+session"
+
+DEPEND="sys-libs/zlib
+ dev-lang/php[session?]"
+RDEPEND="${DEPEND}"
+
+# upstream does not ship any testsuite, so the PHPize test-runner fails.
+RESTRICT='test'
+
+src_configure() {
+ my_conf="--enable-memcache --with-zlib-dir=/usr $(use_enable session memcache-session)"
+ php-ext-source-r2_src_configure
+}
+
+src_install() {
+ php-ext-pecl-r2_src_install
+
+ php-ext-source-r2_addtoinifiles "memcache.allow_failover" "true"
+ php-ext-source-r2_addtoinifiles "memcache.max_failover_attempts" "20"
+ php-ext-source-r2_addtoinifiles "memcache.chunk_size" "32768"
+ php-ext-source-r2_addtoinifiles "memcache.default_port" "11211"
+ php-ext-source-r2_addtoinifiles "memcache.hash_strategy" "standard"
+ php-ext-source-r2_addtoinifiles "memcache.hash_function" "crc32"
+}