diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-11-17 21:47:00 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-11-17 22:01:28 +0100 |
commit | 897128f5151a0310a5a261f4b87359f1d83f1260 (patch) | |
tree | fb28d6bb68b7df3a6ff2572a19f36d3e59407668 /dev-php/pecl-memcached | |
parent | dev-php/PEAR-Mail_Mime: bump to v1.10.4 (diff) | |
download | gentoo-897128f5151a0310a5a261f4b87359f1d83f1260.tar.gz gentoo-897128f5151a0310a5a261f4b87359f1d83f1260.tar.bz2 gentoo-897128f5151a0310a5a261f4b87359f1d83f1260.zip |
dev-php/pecl-memcached: bump to v3.1.4
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-php/pecl-memcached')
-rw-r--r-- | dev-php/pecl-memcached/Manifest | 1 | ||||
-rw-r--r-- | dev-php/pecl-memcached/pecl-memcached-3.1.4.ebuild | 75 |
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-php/pecl-memcached/Manifest b/dev-php/pecl-memcached/Manifest index b4ba9efd79b9..577e0cd34304 100644 --- a/dev-php/pecl-memcached/Manifest +++ b/dev-php/pecl-memcached/Manifest @@ -1,3 +1,4 @@ DIST memcached-2.2.0.tgz 70449 BLAKE2B dca76bfb993c647860ae2ce648580e6131c6df30d30def9a1f907fce06621f3d5a21b93605da9fc50bda542fd950317a5a398d6bf0db85f61469cfb5e9757566 SHA512 61207d3f8c11b0620dbcb20fb2ebb6d1fc10159a7e879ee91556a303c3dcdf3d2571e8dda5efcbed77ff779f5c9b226aa48800630b9e7781cd964126b848c356 DIST memcached-3.0.4.tgz 78776 BLAKE2B ce2539e2e4960217d9ee3b50ed5625214d4b22c4d7e64595fdbfa2d130bce0402a67561f76a50690991996d84f16f926f27a057722bfab66ba3c388772ed77a8 SHA512 d0a0f9e99cbcc6829528554551dfacf0d943d54d4be60c9da708de82913a2a0bed7c51d594ae3ecf0c13b56064739f074ce6ada5d7433bdc7e26e8caf9cf5ca2 DIST memcached-3.1.3.tgz 82673 BLAKE2B ccb9267cbd974337b7cd8836ab6e35c4fd9398d731dcd333bcb664b91037d1775651e6bb5d00b602767834681289064ede678ea2e6e3641631bba4990a380dee SHA512 9c09648c26011c5e749bee1a556c976e6e5e648dc65580e7caa296dab79e3764edf1408f96edcaca5efb0229320c86fcfa0422e55d486beb6466892f7e08c4a3 +DIST memcached-3.1.4.tgz 82920 BLAKE2B 67eb2a26453aa3253ab0d1327023da9318d7af6eb4d935f2c9f1d3da0b1590c58dbcbbea24c491eed6161a9e0462651c749a6e333e98a8cb26432c360ce805d0 SHA512 df1d2c2182c6d3565b929bb55e25a5285c0d5cf8b0fbb75417d756898970abc2b9c4d87e8bb8382d9d4fd62227de3838996c971525fb8a90bf503f025fc6f9f7 diff --git a/dev-php/pecl-memcached/pecl-memcached-3.1.4.ebuild b/dev-php/pecl-memcached/pecl-memcached-3.1.4.ebuild new file mode 100644 index 000000000000..16ce44e3d859 --- /dev/null +++ b/dev-php/pecl-memcached/pecl-memcached-3.1.4.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PHP_EXT_NAME="memcached" +DOCS=( ChangeLog README.markdown ) + +USE_PHP="php5-6 php7-1 php7-2 php7-3" # Pretend to support all four targets... +inherit php-ext-pecl-r3 +USE_PHP="php7-1 php7-2 php7-3" # But only truly build for these three. + +DESCRIPTION="Interface PHP with memcached via libmemcached library" +LICENSE="PHP-3" +SLOT="7" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="examples igbinary json sasl +session test" + +COMMON_DEPEND=">=dev-libs/libmemcached-1.0.14[sasl?] + sys-libs/zlib +" + +RDEPEND=" + php_targets_php7-1? ( + ${COMMON_DEPEND} dev-lang/php:7.1[session?,json?] + igbinary? ( dev-php/igbinary[php_targets_php7-1(-)] ) + ) + php_targets_php7-2? ( + ${COMMON_DEPEND} dev-lang/php:7.2[session?,json?] + igbinary? ( dev-php/igbinary[php_targets_php7-2(-)] ) + ) + php_targets_php7-3? ( + ${COMMON_DEPEND} dev-lang/php:7.3[session?,json?] + igbinary? ( dev-php/igbinary[php_targets_php7-3(-)] ) + )" +DEPEND="${RDEPEND} test? ( net-misc/memcached )" +RDEPEND="${RDEPEND} php_targets_php5-6? ( dev-php/pecl-memcached:0[php_targets_php5-6(-)] )" + +src_prepare(){ + if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then + php-ext-source-r3_src_prepare + else + default_src_prepare + fi +} + +src_configure() { + local PHP_EXT_ECONF_ARGS="--enable-memcached + $(use_enable session memcached-session) + $(use_enable sasl memcached-sasl) + $(use_enable json memcached-json) + $(use_enable igbinary memcached-igbinary)" + + php-ext-source-r3_src_configure +} + +src_test() { + if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then + local memcached_opts=( -d -P "${T}/memcached.pid" -p 11211 -l 127.0.0.1 ) + [[ ${EUID} == 0 ]] && memcached_opts+=( -u portage ) + memcached "${memcached_opts[@]}" || die "Can't start memcached test server" + + local exit_status + php-ext-source-r3_src_test + exit_status=$? + + kill "$(<"${T}/memcached.pid")" + return ${exit_status} + fi +} + +src_install(){ + if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then + php-ext-source-r3_src_install + fi +} |