Diff pecl-memcache-8.0 with a pecl-memcache-8.0-r1

/usr/portage/dev-php/pecl-memcache/pecl-memcache-8.0-r1.ebuild 2023-10-09 14:52:30.236368369 +0300
9 9
DOCS=( README example.php )
10 10
HTML_DOCS=( memcache.php )
11 11

  
12
USE_PHP="php8-0"
12
USE_PHP="php8-0 php8-1"
13 13

  
14 14
inherit php-ext-pecl-r3
15 15

  
......
20 20
SLOT="8"
21 21
IUSE="+session"
22 22

  
23
DEPEND="php_targets_php8-0? ( sys-libs/zlib )"
23
DEPEND="
24
	php_targets_php8-0? ( sys-libs/zlib )
25
	php_targets_php8-1? ( sys-libs/zlib )
26
"
24 27
RDEPEND="${DEPEND}"
25 28

  
26 29
# The test suite requires memcached to be running.
27 30
RESTRICT='test'
31
PATCHES=( "${FILESDIR}/8.0-patches-20211123.patch" )
28 32

  
29 33
src_prepare() {
30
	if use php_targets_php8-0 ; then
34
	if use php_targets_php8-0 || use php_targets_php8-1 ; then
31 35
		php-ext-source-r3_src_prepare
32 36
	else
33 37
		default
......
35 39
}
36 40

  
37 41
src_configure() {
38
	if use php_targets_php8-0 ; then
42
	if use php_targets_php8-0 || use php_targets_php8-1 ; then
39 43
		local PHP_EXT_ECONF_ARGS=( --enable-memcache --with-zlib-dir="${EPREFIX}/usr" $(use_enable session memcache-session) )
40 44
		php-ext-source-r3_src_configure
41 45
	fi
42 46
}
43 47

  
44 48
src_install() {
45
	if use php_targets_php8-0 ; then
49
	if use php_targets_php8-0 || use php_targets_php8-1 ; then
46 50
		php-ext-pecl-r3_src_install
47 51

  
48 52
		php-ext-source-r3_addtoinifiles "memcache.allow_failover" "true"
Thank you!