summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2017-03-25 20:06:43 -0400
committerMichael Orlitzky <mjo@gentoo.org>2017-03-25 20:08:06 -0400
commit80048df809c093f868aa8f2ac55560c1d2bb260c (patch)
tree5145d5f626483eeb48525245e5e79a4fa9a3816b /dev-php/pecl-memcached
parentsys-apps/apparmor-utils: revision bump adds binutils support (diff)
downloadgentoo-80048df809c093f868aa8f2ac55560c1d2bb260c.tar.gz
gentoo-80048df809c093f868aa8f2ac55560c1d2bb260c.tar.bz2
gentoo-80048df809c093f868aa8f2ac55560c1d2bb260c.zip
dev-php/pecl-memcached: new version 3.0.3.
Gentoo-Bug: 613598 Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-php/pecl-memcached')
-rw-r--r--dev-php/pecl-memcached/Manifest1
-rw-r--r--dev-php/pecl-memcached/pecl-memcached-3.0.3.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-php/pecl-memcached/Manifest b/dev-php/pecl-memcached/Manifest
index 2c0c100c5267..9d0177912c6c 100644
--- a/dev-php/pecl-memcached/Manifest
+++ b/dev-php/pecl-memcached/Manifest
@@ -1,2 +1,3 @@
DIST memcached-2.2.0.tgz 70449 SHA256 17b9600f6d4c807f23a3f5c45fcd8775ca2e61d6eda70370af2bef4c6e159f58 SHA512 61207d3f8c11b0620dbcb20fb2ebb6d1fc10159a7e879ee91556a303c3dcdf3d2571e8dda5efcbed77ff779f5c9b226aa48800630b9e7781cd964126b848c356 WHIRLPOOL 1114a4c4371cfb42e3e4cb991980b32894f438abacf61c6da3dd6d9742c93e20df7691287c852c17dfe8261046227d73b1887c0b7b9c03a0e895a713005dc95a
+DIST memcached-3.0.3.tgz 77310 SHA256 5d1c29a1d5e391d6bb7b736a07e063d2f0834800673dd246d64ce1b73e47645d SHA512 cb24d76f82ce8c1fdd8877bbb46131545bba5011cfff965e3c190b7c0f71f754b47ded6289d3125724d9de781b916971aaadfa0b247c6fe2f51aab77dce61b61 WHIRLPOOL f7a76bb72438490db34dcec26800222d46c7b03ce777fc4573a0b36ae9078b9f811ad161cb5f36722d03f7d606eb0edc29bdefc3e078607c0ba1bb4a0c78fd71
DIST pecl-memcached-3.0.0.tar.gz 83732 SHA256 15b8de6688a7a7c08c4893102918955a34f68edf7a64eed871f9f2b5e683d244 SHA512 ddc6b6fbdd55c6cdf64b9a7833142ea43eb974ecaae3437b30ed731f0ddbf4108b46ea5eb01a197788978273bdff31da6a0c0fb0354335b85618d98ba070bfec WHIRLPOOL 378b873dc5e944d0d8a9367f29b9746fcf0e15226f6b4a2eb1916e07fefcec0ce5229351f5796dc1513a2104565c6c04957ed9202133c111aad5ebb8e6c08b74
diff --git a/dev-php/pecl-memcached/pecl-memcached-3.0.3.ebuild b/dev-php/pecl-memcached/pecl-memcached-3.0.3.ebuild
new file mode 100644
index 000000000000..3d772ee725e7
--- /dev/null
+++ b/dev-php/pecl-memcached/pecl-memcached-3.0.3.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PHP_EXT_NAME="memcached"
+DOCS=( ChangeLog README.markdown )
+
+USE_PHP="php5-6 php7-0 php7-1" # Pretend to support all three targets...
+inherit php-ext-pecl-r3
+USE_PHP="php7-0 php7-1" # But only truly build for these two.
+
+DESCRIPTION="Interface PHP with memcached via libmemcached library"
+LICENSE="PHP-3"
+SLOT="7"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples igbinary json sasl +session "
+
+COMMON_DEPEND=">=dev-libs/libmemcached-1.0.14[sasl?]
+ sys-libs/zlib
+ igbinary? ( dev-php/igbinary[php_targets_php7-0?] )"
+
+DEPEND="
+ php_targets_php7-0? (
+ ${COMMON_DEPEND} dev-lang/php:7.0[session?,json?]
+ )
+ php_targets_php7-1? (
+ ${COMMON_DEPEND} dev-lang/php:7.1[session?,json?]
+ )"
+RDEPEND="${DEPEND}
+ php_targets_php5-6? (
+ dev-php/pecl-memcached:0[php_targets_php5-6]
+ )"
+
+src_prepare(){
+ if use php_targets_php7-0 || use php_targets_php7-1 ; 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_install(){
+ use examples && dodoc -r server-example
+
+ if use php_targets_php7-0 || use php_targets_php7-1 ; then
+ php-ext-source-r3_src_install
+ fi
+}