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-redis/
Date: Tue, 09 Feb 2021 18:47:42
Message-Id: 1612896231.fba3f9a01fb4ba00066e96473a5a425ee6f2106b.whissi@gentoo
1 commit: fba3f9a01fb4ba00066e96473a5a425ee6f2106b
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 9 17:59:10 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 9 18:43:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fba3f9a0
7
8 dev-php/pecl-redis: bump to v5.3.3
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-php/pecl-redis/Manifest | 1 +
14 dev-php/pecl-redis/pecl-redis-5.3.3.ebuild | 61 ++++++++++++++++++++++++++++++
15 2 files changed, 62 insertions(+)
16
17 diff --git a/dev-php/pecl-redis/Manifest b/dev-php/pecl-redis/Manifest
18 index 1153a351169..813b8e24e42 100644
19 --- a/dev-php/pecl-redis/Manifest
20 +++ b/dev-php/pecl-redis/Manifest
21 @@ -1 +1,2 @@
22 DIST redis-5.3.2.tgz 266814 BLAKE2B 2be79d850e5958bcaf4fddcbdef0a402e62a522f260ae94c0fdc931a988e9b266c7a4e049b89b507a29a8e9085590e4077e336b85974d70a7cb9b3d6c806949d SHA512 95ce960b78cf94ecd212ec88914935167af37e4176d4b111dfc8c6f1a0846a34beba7f9f516cd7a5e1c9dda23f46cce44c99aaa5b42724c0c2a188b0698af414
23 +DIST redis-5.3.3.tgz 266990 BLAKE2B b939e5a33b3013d1aeaa59f9a1ebbb4b4665d57abf87dc4e300273221d3390d14387cad318d69a56ab573861c1aef89ab7778d3f636adfc351b4fc330eba98d3 SHA512 a04a7d0aa3881b861a00c3f0a889b2f3fd135009293629ac55a74890196c0686e9766438f5255561105e30293f1a6a91ca987fd68e43f3ca436f6cc884e6a5df
24
25 diff --git a/dev-php/pecl-redis/pecl-redis-5.3.3.ebuild b/dev-php/pecl-redis/pecl-redis-5.3.3.ebuild
26 new file mode 100644
27 index 00000000000..cc99909962e
28 --- /dev/null
29 +++ b/dev-php/pecl-redis/pecl-redis-5.3.3.ebuild
30 @@ -0,0 +1,61 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PHP_EXT_NAME="redis"
37 +USE_PHP="php7-2 php7-3 php7-4 php8-0"
38 +PHP_EXT_NEEDED_USE="json(+)?,session?"
39 +DOCS=( arrays.markdown cluster.markdown README.markdown CREDITS )
40 +MY_P="${PN/pecl-/}-${PV/_rc/RC}"
41 +PHP_EXT_PECL_FILENAME="${MY_P}.tgz"
42 +PHP_EXT_S="${WORKDIR}/${MY_P}"
43 +
44 +inherit php-ext-pecl-r3
45 +
46 +DESCRIPTION="PHP extension for interfacing with Redis"
47 +LICENSE="PHP-3.01"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm"
50 +IUSE="igbinary +json lz4 +session zstd"
51 +
52 +DEPEND="
53 + igbinary? ( >=dev-php/igbinary-3.0.1-r1[php_targets_php7-2(-)?,php_targets_php7-3(-)?,php_targets_php7-4(-)?,php_targets_php8-0(-)?] )
54 + lz4? ( app-arch/lz4:= )
55 + zstd? ( app-arch/zstd:= )
56 +"
57 +RDEPEND="${DEPEND}
58 + !dev-php/pecl-redis:7"
59 +
60 +# The test suite requires network access.
61 +RESTRICT=test
62 +
63 +S="${WORKDIR}/${MY_P}"
64 +
65 +src_configure() {
66 + local PHP_EXT_ECONF_ARGS=(
67 + --enable-redis
68 + --disable-redis-lzf
69 + --disable-redis-msgpack
70 + $(use_enable igbinary redis-igbinary)
71 + $(use_enable json redis-json)
72 + $(use_enable lz4 redis-lz4)
73 + $(use_with lz4 liblz4)
74 + $(use_enable session redis-session)
75 + $(use_enable zstd redis-zstd)
76 + $(use_with zstd libzstd)
77 + )
78 + php-ext-source-r3_src_configure
79 +}
80 +
81 +src_test() {
82 + local slot
83 + for slot in $(php_get_slots); do
84 + php_init_slot_env "${slot}"
85 + # Run tests for Redis class
86 + ${PHPCLI} -d extension=modules/redis.so \
87 + tests/TestRedis.php \
88 + --class Redis \
89 + --host ${PECL_REDIS_HOST} || die 'test suite failed'
90 + done
91 +}