Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-memcached/
Date: Thu, 28 Nov 2019 21:02:25
Message-Id: 1574974936.eab9c29055640b1ad2351dedd96db8d5cd103a38.whissi@gentoo
1 commit: eab9c29055640b1ad2351dedd96db8d5cd103a38
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 28 21:01:29 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 28 21:02:16 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eab9c290
7
8 dev-php/pecl-memcached: add PHP 7.4 support
9
10 Package-Manager: Portage-2.3.80, Repoman-2.3.19
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-php/pecl-memcached/pecl-memcached-3.1.4.ebuild | 14 +++++++++-----
14 1 file changed, 9 insertions(+), 5 deletions(-)
15
16 diff --git a/dev-php/pecl-memcached/pecl-memcached-3.1.4.ebuild b/dev-php/pecl-memcached/pecl-memcached-3.1.4.ebuild
17 index 88fd7a42499..32fbc8704ed 100644
18 --- a/dev-php/pecl-memcached/pecl-memcached-3.1.4.ebuild
19 +++ b/dev-php/pecl-memcached/pecl-memcached-3.1.4.ebuild
20 @@ -5,9 +5,9 @@ EAPI=7
21 PHP_EXT_NAME="memcached"
22 DOCS=( ChangeLog README.markdown )
23
24 -USE_PHP="php5-6 php7-1 php7-2 php7-3" # Pretend to support all four targets...
25 +USE_PHP="php5-6 php7-1 php7-2 php7-3 php7-4" # Pretend to support all five targets...
26 inherit php-ext-pecl-r3
27 -USE_PHP="php7-1 php7-2 php7-3" # But only truly build for these three.
28 +USE_PHP="php7-1 php7-2 php7-3 php7-4" # But only truly build for these four.
29
30 DESCRIPTION="Interface PHP with memcached via libmemcached library"
31 LICENSE="PHP-3"
32 @@ -33,12 +33,16 @@ RDEPEND="
33 php_targets_php7-3? (
34 ${COMMON_DEPEND} dev-lang/php:7.3[session?,json?]
35 igbinary? ( dev-php/igbinary[php_targets_php7-3(-)] )
36 + )
37 + php_targets_php7-4? (
38 + ${COMMON_DEPEND} dev-lang/php:7.4[session?,json?]
39 + igbinary? ( dev-php/igbinary[php_targets_php7-4(-)] )
40 )"
41 DEPEND="${RDEPEND} test? ( net-misc/memcached )"
42 RDEPEND="${RDEPEND} php_targets_php5-6? ( dev-php/pecl-memcached:0[php_targets_php5-6(-)] )"
43
44 src_prepare(){
45 - if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then
46 + if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 || use php_targets_php7-4 ; then
47 php-ext-source-r3_src_prepare
48 else
49 default_src_prepare
50 @@ -56,7 +60,7 @@ src_configure() {
51 }
52
53 src_test() {
54 - if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then
55 + if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 || use php_targets_php7-4 ; then
56 local memcached_opts=( -d -P "${T}/memcached.pid" -p 11211 -l 127.0.0.1 )
57 [[ ${EUID} == 0 ]] && memcached_opts+=( -u portage )
58 memcached "${memcached_opts[@]}" || die "Can't start memcached test server"
59 @@ -71,7 +75,7 @@ src_test() {
60 }
61
62 src_install(){
63 - if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then
64 + if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 || use php_targets_php7-4 ; then
65 php-ext-source-r3_src_install
66 fi
67 }