1 |
commit: 41d563f15c78b07562bdf0e329085b52b6b72d60 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 1 19:03:16 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 1 19:05:07 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41d563f1 |
7 |
|
8 |
dev-php/pecl-apcu: Revbump for 5.1.17-r1 |
9 |
|
10 |
Add PHP 7.4, drop 5.6 and 7.0 |
11 |
Fix bogus test failures in 7.4 |
12 |
Fix bad autoconf usage from upstream |
13 |
|
14 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
15 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
16 |
|
17 |
dev-php/pecl-apcu/pecl-apcu-5.1.17-r1.ebuild | 67 ++++++++++++++++++++++++++++ |
18 |
1 file changed, 67 insertions(+) |
19 |
|
20 |
diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.17-r1.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.17-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..19f8e009175 |
23 |
--- /dev/null |
24 |
+++ b/dev-php/pecl-apcu/pecl-apcu-5.1.17-r1.ebuild |
25 |
@@ -0,0 +1,67 @@ |
26 |
+# Copyright 1999-2019 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+PHP_EXT_NAME="apcu" |
32 |
+PHP_EXT_INI="yes" |
33 |
+PHP_EXT_ZENDEXT="no" |
34 |
+DOCS=( NOTICE README.md TECHNOTES.txt ) |
35 |
+ |
36 |
+USE_PHP="php7-1 php7-2 php7-3 php7-4" |
37 |
+ |
38 |
+inherit php-ext-pecl-r3 |
39 |
+ |
40 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
41 |
+ |
42 |
+DESCRIPTION="Stripped down version of APC supporting only user cache" |
43 |
+LICENSE="PHP-3.01" |
44 |
+SLOT="7" |
45 |
+ |
46 |
+LOCKS="pthreadmutex pthreadrw spinlock semaphore" |
47 |
+ |
48 |
+LUSE="" |
49 |
+for l in ${LOCKS}; do |
50 |
+ LUSE+="lock-${l} " |
51 |
+done |
52 |
+ |
53 |
+IUSE="+mmap ${LUSE/lock-pthreadrw/+lock-pthreadrw}" |
54 |
+ |
55 |
+REQUIRED_USE="^^ ( $LUSE )" |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ php-ext-source-r3_src_prepare |
59 |
+ # Remove broken tests from php 7.4 due to trivial output differences |
60 |
+ if use php_targets_php7-4 ; then |
61 |
+ php_init_slot_env "php7.4" |
62 |
+ rm "${PHP_EXT_S}"/tests/apc_entry_00{2,3}.phpt || die |
63 |
+ fi |
64 |
+} |
65 |
+ |
66 |
+src_configure() { |
67 |
+ local PHP_EXT_ECONF_ARGS=( |
68 |
+ --enable-apcu |
69 |
+ $(use_enable mmap apcu-mmap) |
70 |
+ $(use_enable lock-spinlock apcu-spinlocks) |
71 |
+ ) |
72 |
+ # Broken upstream autoconf test disables if present at all |
73 |
+ use lock-pthreadrw || PHP_EXT_ECONF_ARGS+=( --disable-apcu-rwlocks ) |
74 |
+ |
75 |
+ php-ext-source-r3_src_configure |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ php-ext-pecl-r3_src_install |
80 |
+ |
81 |
+ insinto /usr/share/php7/apcu |
82 |
+ doins apc.php |
83 |
+} |
84 |
+ |
85 |
+pkg_postinst() { |
86 |
+ elog "The apc.php file shipped with this release of pecl-apcu was" |
87 |
+ elog "installed to ${EPREFIX}/usr/share/php7/apcu/." |
88 |
+ elog |
89 |
+ elog "If you depend on the apc_* functions," |
90 |
+ elog "please install dev-php/pecl-apcu_bc as this extension no longer" |
91 |
+ elog "provides backwards compatibility." |
92 |
+} |