diff options
Diffstat (limited to 'dev-php/pecl-memcache')
-rw-r--r-- | dev-php/pecl-memcache/Manifest | 4 | ||||
-rw-r--r-- | dev-php/pecl-memcache/pecl-memcache-4.0.5.2-r1.ebuild | 62 | ||||
-rw-r--r-- | dev-php/pecl-memcache/pecl-memcache-4.0.5.2.ebuild | 46 | ||||
-rw-r--r-- | dev-php/pecl-memcache/pecl-memcache-8.0.ebuild | 63 |
4 files changed, 128 insertions, 47 deletions
diff --git a/dev-php/pecl-memcache/Manifest b/dev-php/pecl-memcache/Manifest index d6dfbee39726..e192493d6a70 100644 --- a/dev-php/pecl-memcache/Manifest +++ b/dev-php/pecl-memcache/Manifest @@ -1,3 +1,5 @@ DIST memcache-4.0.5.2.tgz 75061 BLAKE2B fbf96fd182ff4b8764c4492edcdac53263176ebe6d63a27e9f3fb32110a016b221722c246e7c1ae49ee973a6e4cdff045876d1c6119f410f2fa3e796c0580e02 SHA512 93e163acf3a6c28f16b5f0982105f6f558cceeb314b3f09ad71655d8a5adf64d23959f1a2f3589eb7e7a7e18c88ba8132014e13f697a737cd570cf9405137384 -EBUILD pecl-memcache-4.0.5.2.ebuild 1373 BLAKE2B f5cbb82fb9bf127ec559d7f0830fa9ae0f03ae0c988606c589057da19ae645bc9f2b2b6e63b9c10cfa9a7734e4840aaf4c0a6e96a804ff7f4112c2c10cee6e24 SHA512 64eb343a08b7a3606fc91774acc8ed9367589d10385f1e76864da2b2d905fb9e1029837476d6dad17677d778d756fea5e865a4b87066e822db74e1b2ab19cf57 +DIST memcache-8.0.tgz 78448 BLAKE2B fb2d68d5ff4c6343dd2e66ae5c3f84fed22455b8614dce04dde2e10c164bf1f8d276776b74beaa387dd794cf82f6b897a88c8bed058376b9032e0452c2e94b06 SHA512 d5eea13b85d8d35ef6aab8c5699bdcc4707cf8debf4052cbbeac26e7e2360a4d3d4e55e8bd0b40cf19fe014ba1fc42d5417deabbe22a199f0c6aa98b67d132d4 +EBUILD pecl-memcache-4.0.5.2-r1.ebuild 1805 BLAKE2B e32b359ffd8172d00d49d48b3ae4c4e24e8480dc435f1b16db4a93caf6d732ab78a9fc3381af89c976e499b910d07e6130f33ec5f7223002e4eec246d982cae5 SHA512 40fe55730d2dfddb278bc5a6ccc055dfe40a34a7ff780a29022a563e28adb3f054cb5e7d99010aa240827cd6558e9ce383f1d7b0c077e0afc81d71b39178ec4b +EBUILD pecl-memcache-8.0.ebuild 1755 BLAKE2B 0c765afbcdda82b52c5eac24b06dfbba5d2864a7f0673dc0c1cc88931ef9355a1b914ee97dedbc821a1213b5b564d59402525e0c8d77538a5d35911b55f29b61 SHA512 b32040a18f5b898afbb1cb8297e4de732973cb9c3863b7485dac2d05ab3b311351f2b3d9e6ad0608bdfce2ed54daa252557a91ee7ecc5bb37c2e802b45fbaa29 MISC metadata.xml 239 BLAKE2B 9b7c5dcb74289073481cf07031b7a92f32496cc1097becb074d74a8fbb8133de429ce1baf284e446e44132943c8b32e6b824570f15828588e42ea49ef5661f00 SHA512 2181b874bfe8cd31e7730d8207e26cfd2f272eaf2d1b57ae0faff126347a5298fa1c506d9107e1da9736c8a0ed9c8c339e4d9509a8726b79dbe86e073c12dee0 diff --git a/dev-php/pecl-memcache/pecl-memcache-4.0.5.2-r1.ebuild b/dev-php/pecl-memcache/pecl-memcache-4.0.5.2-r1.ebuild new file mode 100644 index 000000000000..10134a07db4d --- /dev/null +++ b/dev-php/pecl-memcache/pecl-memcache-4.0.5.2-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2021 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-3 php7-4 php8-0" + +inherit php-ext-pecl-r3 + +USE_PHP="php7-3 php7-4" + +KEYWORDS="~amd64 ~hppa ~ppc64 ~x86" + +DESCRIPTION="PHP extension for using memcached" +LICENSE="PHP-3" +SLOT="7" +IUSE="+session" + +DEPEND="php_targets_php7-3? ( sys-libs/zlib ) php_targets_php7-4? ( sys-libs/zlib )" +RDEPEND="${DEPEND} + php_targets_php8-0? ( dev-php/pecl-memcache:8[php_targets_php8-0(-)?] ) +" + +# The test suite requires memcached to be running. +RESTRICT='test' + +src_prepare() { + if use php_targets_php7-3 || use php_targets_php7-4 ; then + php-ext-source-r3_src_prepare + else + default + fi +} + +src_configure() { + if use php_targets_php7-3 || use php_targets_php7-4 ; then + local PHP_EXT_ECONF_ARGS=( --enable-memcache --with-zlib-dir="${EPREFIX}/usr" $(use_enable session memcache-session) ) + php-ext-source-r3_src_configure + fi +} + +src_install() { + if use php_targets_php7-3 || use php_targets_php7-4 ; then + 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" + fi +} diff --git a/dev-php/pecl-memcache/pecl-memcache-4.0.5.2.ebuild b/dev-php/pecl-memcache/pecl-memcache-4.0.5.2.ebuild deleted file mode 100644 index 525328e8308a..000000000000 --- a/dev-php/pecl-memcache/pecl-memcache-4.0.5.2.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# 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/dev-php/pecl-memcache/pecl-memcache-8.0.ebuild b/dev-php/pecl-memcache/pecl-memcache-8.0.ebuild new file mode 100644 index 000000000000..a837166eaa5c --- /dev/null +++ b/dev-php/pecl-memcache/pecl-memcache-8.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2021 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-3 php7-4 php8-0" + +inherit php-ext-pecl-r3 + +USE_PHP="php8-0" + +KEYWORDS="~amd64 ~hppa ~ppc64 ~x86" + +DESCRIPTION="PHP extension for using memcached" +LICENSE="PHP-3" +SLOT="8" +IUSE="+session" + +DEPEND="php_targets_php8-0? ( sys-libs/zlib )" +RDEPEND="${DEPEND} + php_targets_php7-3? ( dev-php/pecl-memcache:7[php_targets_php7-3(-)?] ) + php_targets_php7-4? ( dev-php/pecl-memcache:7[php_targets_php7-4(-)?] ) +" + +# The test suite requires memcached to be running. +RESTRICT='test' + +src_prepare() { + if use php_targets_php8-0 ; then + php-ext-source-r3_src_prepare + else + default + fi +} + +src_configure() { + if use php_targets_php8-0 ; then + local PHP_EXT_ECONF_ARGS=( --enable-memcache --with-zlib-dir="${EPREFIX}/usr" $(use_enable session memcache-session) ) + php-ext-source-r3_src_configure + fi +} + +src_install() { + if use php_targets_php8-0 ; then + 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" + fi +} |