From: Brian Evans Date: Thu, 19 Dec 2019 14:09:59 +0000 (-0500) Subject: dev-php/pecl-memcache: New version with PHP 7 support; remove mask X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eb65331cd215d3cc2dc9cb5cb06efea4c6d0110b;p=gentoo.git dev-php/pecl-memcache: New version with PHP 7 support; remove mask 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 --- diff --git a/dev-php/pecl-memcache/Manifest b/dev-php/pecl-memcache/Manifest index f9ab953f7ea2..410b4a954746 100644 --- a/dev-php/pecl-memcache/Manifest +++ b/dev-php/pecl-memcache/Manifest @@ -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 index 000000000000..525328e8308a --- /dev/null +++ b/dev-php/pecl-memcache/pecl-memcache-4.0.5.1.ebuild @@ -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" +} diff --git a/profiles/package.mask b/profiles/package.mask index 90d9dddf0acf..a7cc5d663c68 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -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 (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