dev-php/pecl-memcache: New version with PHP 7 support; remove mask
authorBrian Evans <grknight@gentoo.org>
Thu, 19 Dec 2019 14:09:59 +0000 (09:09 -0500)
committerBrian Evans <grknight@gentoo.org>
Thu, 19 Dec 2019 14:09:59 +0000 (09:09 -0500)
Upstream has finally added PHP 7 and dropped 5.x just before this package
was due for removal.  Narrow the mask and allow this package to continue

Signed-off-by: Brian Evans <grknight@gentoo.org>
dev-php/pecl-memcache/Manifest
dev-php/pecl-memcache/pecl-memcache-4.0.5.1.ebuild [new file with mode: 0644]
profiles/package.mask

index f9ab953f7ea2781a9c8694d7109430dedcab9871..410b4a954746db275a00a2e724c1cc4418a2ff28 100644 (file)
@@ -1 +1,2 @@
 DIST memcache-3.0.8.tgz 70523 BLAKE2B 829c842ac2764327037c5ef620cd4759e16d56e22195c035eeed2722d8a499119489d3304ad5223cf1c89a8e3ab6f6830d67742958ec2a37e302bf8ea265dfb1 SHA512 916c6b21ab7c1021128626c0df35ef0b83cb76b6115fe7c45b003ca4f78ad9484bf3c998bc7ebdee19f84349ff1e56759f74e75aee5bc70b1de9a03c45a99bc3
+DIST memcache-4.0.5.1.tgz 75057 BLAKE2B 2a1b6ce557f9cce3fd7039db8017fc8e7aa0c7b35c2746af2b426aceac0330b56f0a9d3798325b72b07c1af560baa805e1e4db16c803f46bf26a8e4a39d16b77 SHA512 809351b086e5a96bca091e3f7bdbf845d4d549c47c84eaee0f87aed5421bbf8421a503db18593f8616e4c520c46c90c0c945895de685fd046eae64921acfdf10
diff --git a/dev-php/pecl-memcache/pecl-memcache-4.0.5.1.ebuild b/dev-php/pecl-memcache/pecl-memcache-4.0.5.1.ebuild
new file mode 100644 (file)
index 0000000..525328e
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+PHP_EXT_NAME="memcache"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="no"
+PHP_EXT_NEEDED_USE="session(-)?"
+DOCS=( README example.php )
+HTML_DOCS=( memcache.php )
+
+USE_PHP="php7-2 php7-3 php7-4"
+
+inherit php-ext-pecl-r3
+
+KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
+
+DESCRIPTION="PHP extension for using memcached"
+LICENSE="PHP-3"
+SLOT="7"
+IUSE="+session"
+
+DEPEND="sys-libs/zlib"
+RDEPEND="${DEPEND}"
+
+# The test suite requires memcached to be running.
+RESTRICT='test'
+
+src_configure() {
+       local PHP_EXT_ECONF_ARGS=( --enable-memcache --with-zlib-dir="${EPREFIX}/usr" $(use_enable session memcache-session) )
+       php-ext-source-r3_src_configure
+}
+
+src_install() {
+       php-ext-pecl-r3_src_install
+
+       php-ext-source-r3_addtoinifiles "memcache.allow_failover" "true"
+       php-ext-source-r3_addtoinifiles "memcache.max_failover_attempts" "20"
+       php-ext-source-r3_addtoinifiles "memcache.chunk_size" "32768"
+       php-ext-source-r3_addtoinifiles "memcache.default_port" "11211"
+       php-ext-source-r3_addtoinifiles "memcache.hash_strategy" "consistent"
+       php-ext-source-r3_addtoinifiles "memcache.hash_function" "crc32"
+       php-ext-source-r3_addtoinifiles "memcache.redundancy" "1"
+       php-ext-source-r3_addtoinifiles "memcache.session_redundancy" "2"
+       php-ext-source-r3_addtoinifiles "memcache.protocol" "ascii"
+}
index 90d9dddf0acfbc27bf8bd43ec01cad26ccacd39e..a7cc5d663c683da163368cf3108ac29088ebeb60 100644 (file)
@@ -782,6 +782,7 @@ dev-php/pecl-apcu:0
 dev-php/pecl-dbase:0
 dev-php/pecl-http:2
 dev-php/pecl-mailparse:0
+dev-php/pecl-memcache:0
 dev-php/pecl-memcached:0
 dev-php/pecl-oauth:0
 dev-php/pecl-propro:0
@@ -795,7 +796,6 @@ dev-php/pecl-yaml:0
 
 # Brian Evans <grknight@gentoo.org> (2019-10-01)
 # Old extensions which only work with PHP <7
-# pecl-memcache is replaced by pecl-memcachd (with code changes)
 # pecl-mongo is replaced by pecl-monogodb
 # Removal in 90 days. Bug 651784
 dev-php/PEAR-MDB2_Driver_mysql
@@ -806,7 +806,6 @@ dev-php/pecl-dbx
 dev-php/pecl-haru
 dev-php/pecl-htscanner
 dev-php/pecl-libevent
-dev-php/pecl-memcache
 dev-php/pecl-mongo
 dev-php/pecl-mysqlnd_ms
 dev-php/pecl-mysqlnd_qc