Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-redis/
Date: Mon, 14 Aug 2017 15:01:23
Message-Id: 1502722847.25ef3a56775fe54c7181dc319733e6a9567c20bf.grknight@gentoo
1 commit: 25ef3a56775fe54c7181dc319733e6a9567c20bf
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 14 14:04:28 2017 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 14 15:00:47 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25ef3a56
7
8 dev-php/pecl-redis: Version bump wrt bug 627818
9
10 Package-Manager: Portage-2.3.7, Repoman-2.3.3
11
12 dev-php/pecl-redis/Manifest | 1 +
13 dev-php/pecl-redis/pecl-redis-3.1.3.ebuild | 51 ++++++++++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/dev-php/pecl-redis/Manifest b/dev-php/pecl-redis/Manifest
17 index e28e3aa6d17..150d813c30e 100644
18 --- a/dev-php/pecl-redis/Manifest
19 +++ b/dev-php/pecl-redis/Manifest
20 @@ -1 +1,2 @@
21 DIST redis-3.1.2.tgz 199041 SHA256 a7687d007e48bef92049b8f53b425244d663da57d6b646d139248839e01f4ea3 SHA512 14b6321072f8ab41b8293b40ea8e1e2bdac1bb694c4566467ea4e6ced37c8fc41bf5712bd27cebf509f25fda0492765cd2c8d2fe61395bcb0b0d9cbbceebe684 WHIRLPOOL c619f04d6392ad4d81e3f41c83dce4f92c932805bbf7f418e8caa963744cedfaa03e6fb3433eec308da188577aa7fac4d1e35a14175f01c2f6d83571ce8f35a4
22 +DIST redis-3.1.3.tgz 196180 SHA256 92907f40bdd8d56607ba5c1593289c34c08f7dae460bd05e79603a4247b6cbf6 SHA512 269a45675e9547fdeebf9d9a1a36e6f75d6f9913ffc1069d0fc2a7f1a5d88ff4fb9f38693f488469339c2a7bfdfd81df102de5e12656e0662af166f874fc5fac WHIRLPOOL 2fb1419ac13aa7aeb20467270b8fdfe3d37b1c91c95da15db1733e81602fdaf9137c98319ab8784321c4c0d5cf69702c145d72e8bc6cfbf49c7a937de8a937ba
23
24 diff --git a/dev-php/pecl-redis/pecl-redis-3.1.3.ebuild b/dev-php/pecl-redis/pecl-redis-3.1.3.ebuild
25 new file mode 100644
26 index 00000000000..3c2df8c79d4
27 --- /dev/null
28 +++ b/dev-php/pecl-redis/pecl-redis-3.1.3.ebuild
29 @@ -0,0 +1,51 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +PHP_EXT_NAME="redis"
36 +USE_PHP="php5-6 php7-0 php7-1"
37 +DOCS=( arrays.markdown cluster.markdown README.markdown CREDITS )
38 +MY_P="${PN/pecl-/}-${PV/_rc/RC}"
39 +PHP_EXT_PECL_FILENAME="${MY_P}.tgz"
40 +PHP_EXT_S="${WORKDIR}/${MY_P}"
41 +
42 +inherit php-ext-pecl-r3
43 +
44 +DESCRIPTION="PHP extension for interfacing with Redis"
45 +LICENSE="PHP-3.01"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +IUSE="igbinary +session"
49 +
50 +DEPEND="igbinary? (
51 + php_targets_php5-6? ( dev-php/igbinary[php_targets_php5-6] )
52 + php_targets_php7-0? ( dev-php/igbinary[php_targets_php7-0] )
53 + php_targets_php7-1? ( dev-php/igbinary[php_targets_php7-1] ) )"
54 +RDEPEND="${DEPEND} !dev-php/pecl-redis:7"
55 +
56 +# The test suite requires network access.
57 +RESTRICT=test
58 +
59 +S="${WORKDIR}/${MY_P}"
60 +
61 +src_configure() {
62 + local PHP_EXT_ECONF_ARGS=(
63 + --enable-redis
64 + $(use_enable igbinary redis-igbinary)
65 + $(use_enable session redis-session)
66 + )
67 + php-ext-source-r3_src_configure
68 +}
69 +
70 +src_test(){
71 + local slot
72 + for slot in $(php_get_slots); do
73 + php_init_slot_env "${slot}"
74 + # Run tests for Redis class
75 + ${PHPCLI} -d extension=modules/redis.so \
76 + tests/TestRedis.php \
77 + --class Redis \
78 + --host ${PECL_REDIS_HOST} || die 'test suite failed'
79 + done
80 +}