commit: 84ceb796f1c677e9edcae831d14749101ef90be5 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com> AuthorDate: Fri Oct 17 15:26:06 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Oct 19 16:35:06 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84ceb796
dev-php/pecl-redis: add 6.2.0 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44223 Closes: https://github.com/gentoo/gentoo/pull/44223 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-php/pecl-redis/Manifest | 1 + dev-php/pecl-redis/pecl-redis-6.2.0.ebuild | 60 ++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/dev-php/pecl-redis/Manifest b/dev-php/pecl-redis/Manifest index 42c9d0eaed31..4706fb0f7c44 100644 --- a/dev-php/pecl-redis/Manifest +++ b/dev-php/pecl-redis/Manifest @@ -1 +1,2 @@ DIST redis-6.1.0.tgz 373740 BLAKE2B 9ad24fb1968a8873bcc38a53fa1f3f15b44b2423785c3c8d50c4ea4bdb7a5ddbb3148a579b8bf8676307c48adb319ffe78854e580ff034e21c0584f3501ea59f SHA512 731697b429f8070ae33f02b6a302904c6e8e79c8d6fd3d07b9fcdb50f55b52448292a936ca4050406d14b6db11669269a315c798ce52a80e4857427a65b01dff +DIST redis-6.2.0.tgz 379865 BLAKE2B 3ed8776d1e53e3a1b08e5d18511ccf3ed1f896d0ae28b54ce47615d58ca4c9cbc29c00b2a10301cd7e9fd533f54335bbf3878f8f59ddff82ad2b16da03d45e77 SHA512 fd4d79cd4f7a3d25c865ae52daea4e6d9e805f55c3b7004633ac23ed6724a30b85ed3034bddee86c42146b39215309cb9c96f5659b248e6b859295cdf10e02f1 diff --git a/dev-php/pecl-redis/pecl-redis-6.2.0.ebuild b/dev-php/pecl-redis/pecl-redis-6.2.0.ebuild new file mode 100644 index 000000000000..fa6fa21893f7 --- /dev/null +++ b/dev-php/pecl-redis/pecl-redis-6.2.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_NAME="redis" +USE_PHP="php8-2 php8-3 php8-4" +PHP_EXT_NEEDED_USE="json(+)?,session(-)?" +MY_P="${PN/pecl-/}-${PV/_rc/RC}" +PHP_EXT_PECL_FILENAME="${MY_P}.tgz" +PHP_EXT_S="${WORKDIR}/${MY_P}" + +inherit php-ext-pecl-r3 + +DESCRIPTION="PHP extension for interfacing with Redis" +LICENSE="PHP-3.01" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" +IUSE="igbinary +json lz4 +session zstd" + +DEPEND=" + igbinary? ( >=dev-php/igbinary-3.0.1-r1[php_targets_php8-2(-)?,php_targets_php8-3(-)?,php_targets_php8-4(-)?] ) + lz4? ( app-arch/lz4:= ) + zstd? ( app-arch/zstd:= ) +" +RDEPEND="${DEPEND} + !dev-php/pecl-redis:7" + +# The test suite requires network access. +RESTRICT=test + +S="${WORKDIR}/${MY_P}" + +src_configure() { + local PHP_EXT_ECONF_ARGS=( + --enable-redis + --disable-redis-lzf + --disable-redis-msgpack + $(use_enable igbinary redis-igbinary) + $(use_enable json redis-json) + $(use_enable lz4 redis-lz4) + $(use_with lz4 liblz4) + $(use_enable session redis-session) + $(use_enable zstd redis-zstd) + $(use_with zstd libzstd) + ) + php-ext-source-r3_src_configure +} + +src_test() { + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + # Run tests for Redis class + ${PHPCLI} -d extension=modules/redis.so \ + tests/TestRedis.php \ + --class Redis \ + --host ${PECL_REDIS_HOST} || die 'test suite failed' + done +}
