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-apcu/
Date: Fri, 15 Oct 2021 14:33:19
Message-Id: 1634308384.527e2c353bf5c291f4214abc4a513a6dc4d5bfc8.whissi@gentoo
1 commit: 527e2c353bf5c291f4214abc4a513a6dc4d5bfc8
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 15 14:20:37 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 15 14:33:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=527e2c35
7
8 dev-php/pecl-apcu: bump to v5.1.21
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-php/pecl-apcu/Manifest | 1 +
14 dev-php/pecl-apcu/pecl-apcu-5.1.21.ebuild | 67 +++++++++++++++++++++++++++++++
15 2 files changed, 68 insertions(+)
16
17 diff --git a/dev-php/pecl-apcu/Manifest b/dev-php/pecl-apcu/Manifest
18 index fdb813bf4ad..effbc39b4da 100644
19 --- a/dev-php/pecl-apcu/Manifest
20 +++ b/dev-php/pecl-apcu/Manifest
21 @@ -1,2 +1,3 @@
22 DIST apcu-5.1.19.tgz 96583 BLAKE2B 330c08a4e557691d0b402111877b3caf56b211256db17cce52a76aeefce7237505eca4ecd71f3770ef3c405182a1604a92cc458cb9bca435b42370fe917e21a7 SHA512 45077e3bd0eac207539e2eafe21968c71f49b8c8920168dbafa87961b041f1d348b6bf1c130104744bc541e1f690854f0a29062e9520db81c04edeee3ef2ed99
23 DIST apcu-5.1.20.tgz 96727 BLAKE2B b8223856e0aaa52f90dffa674bbd9b047caa8c91d81b637eafc2f59fbbfdfe0d6ce30e990a87cb4833e895fcfd944f7d57eb6f7356b3e2361d6be5a535bb3a63 SHA512 3e10b7e5dc7481b1250610ef83954875f427b9114d6b232bad9064fc33d8c8906bcc317f94a6cfc9f76c720fa06a44270d259cf2ceef6c1ec9dcadc49254ee1b
24 +DIST apcu-5.1.21.tgz 92516 BLAKE2B 32d73b89bde9ef4eb01c9ad766930e87300b86776c95929607a8aaefba5043e3a7947d064416ac083ff38876fdb41bb03dab1552ac000082e54f809269b4c925 SHA512 a6ffe8349760d27cde0d86017a59a68e9639bf385e606622d807094f4e5fb305bb25b9ce00077d0856f4d223d44329f7a6314c229b62c78d8e2b085593c92bb3
25
26 diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.21.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.21.ebuild
27 new file mode 100644
28 index 00000000000..525f58c9e98
29 --- /dev/null
30 +++ b/dev-php/pecl-apcu/pecl-apcu-5.1.21.ebuild
31 @@ -0,0 +1,67 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PHP_EXT_NAME="apcu"
38 +PHP_EXT_INI="yes"
39 +PHP_EXT_ZENDEXT="no"
40 +DOCS=( NOTICE README.md TECHNOTES.txt )
41 +
42 +USE_PHP="php7-2 php7-3 php7-4 php8-0 php8-1"
43 +
44 +inherit php-ext-pecl-r3
45 +
46 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
47 +
48 +DESCRIPTION="Stripped down version of APC supporting only user cache"
49 +LICENSE="PHP-3.01"
50 +SLOT="7"
51 +
52 +LOCKS="pthreadmutex pthreadrw spinlock semaphore"
53 +
54 +LUSE=""
55 +for l in ${LOCKS}; do
56 + LUSE+="lock-${l} "
57 +done
58 +
59 +IUSE="+mmap ${LUSE/lock-pthreadrw/+lock-pthreadrw}"
60 +
61 +REQUIRED_USE="^^ ( $LUSE )"
62 +
63 +src_prepare() {
64 + php-ext-source-r3_src_prepare
65 + # Remove broken tests from php 7.4 due to trivial output differences
66 + if use php_targets_php7-4 ; then
67 + php_init_slot_env "php7.4"
68 + rm "${PHP_EXT_S}"/tests/apc_entry_00{2,3}.phpt || die
69 + fi
70 +}
71 +
72 +src_configure() {
73 + local PHP_EXT_ECONF_ARGS=(
74 + --enable-apcu
75 + $(use_enable mmap apcu-mmap)
76 + $(use_enable lock-spinlock apcu-spinlocks)
77 + )
78 + # Broken upstream autoconf test disables if present at all
79 + use lock-pthreadrw || PHP_EXT_ECONF_ARGS+=( --disable-apcu-rwlocks )
80 +
81 + php-ext-source-r3_src_configure
82 +}
83 +
84 +src_install() {
85 + php-ext-pecl-r3_src_install
86 +
87 + insinto /usr/share/php7/apcu
88 + doins apc.php
89 +}
90 +
91 +pkg_postinst() {
92 + elog "The apc.php file shipped with this release of pecl-apcu was"
93 + elog "installed to ${EPREFIX}/usr/share/php7/apcu/."
94 + elog
95 + elog "If you depend on the apc_* functions,"
96 + elog "please install dev-php/pecl-apcu_bc as this extension no longer"
97 + elog "provides backwards compatibility."
98 +}