1 |
commit: 1c43b23cc499440e91e217856f86219f49019c3e |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 15 12:36:28 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 15 12:36:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c43b23c |
7 |
|
8 |
dev-php/pecl-apcu: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
11 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
12 |
|
13 |
dev-php/pecl-apcu/Manifest | 5 -- |
14 |
dev-php/pecl-apcu/pecl-apcu-5.1.10.ebuild | 80 ------------------------------- |
15 |
dev-php/pecl-apcu/pecl-apcu-5.1.11.ebuild | 80 ------------------------------- |
16 |
dev-php/pecl-apcu/pecl-apcu-5.1.16.ebuild | 80 ------------------------------- |
17 |
dev-php/pecl-apcu/pecl-apcu-5.1.8.ebuild | 80 ------------------------------- |
18 |
dev-php/pecl-apcu/pecl-apcu-5.1.9.ebuild | 80 ------------------------------- |
19 |
6 files changed, 405 deletions(-) |
20 |
|
21 |
diff --git a/dev-php/pecl-apcu/Manifest b/dev-php/pecl-apcu/Manifest |
22 |
index 8e2142410ff..d8ae8b20c60 100644 |
23 |
--- a/dev-php/pecl-apcu/Manifest |
24 |
+++ b/dev-php/pecl-apcu/Manifest |
25 |
@@ -1,8 +1,3 @@ |
26 |
DIST apcu-4.0.11.tgz 119535 BLAKE2B 2c1f8a0463b2802b11ae679987807127556b04fb099e4872bff9d1ea51c633140d978b66373eb987d5207403ed9389e58f1afa7ca94360680d9a9693230fb87a SHA512 e3b97066240e33850419e96f0fd9df0e66ee3b0fa238c418e07ac639d07439e9edfa1696e56a620e33f1ffc0993c57bde585b0c170b22995e7d5c0ae550b7899 |
27 |
-DIST apcu-5.1.10.tgz 111937 BLAKE2B 87bf86b43a775c38b232e4acd876f5c63628fc095747fecc26109fddc0473672180e3886dd613fa426772ea53aa8d7f46d08ec3e3383f6ce53be2f63a9ff066b SHA512 fdf82f2b46231849b373f50d1255bcedab8fbefa7ded7c157649cf6406fb593cc2f4e63ca7d3cecfbadb4533ecd8d0ad80e198626dc1489cea8a22ba87ca583a |
28 |
-DIST apcu-5.1.11.tgz 105462 BLAKE2B 37ff632555e1bca51951db3021a4108a1de491b1bae2b12daed80e5d2d4651737cad744023c62956779395198accf33290c0c3b81b6abfc7bb54337a1a23e082 SHA512 2c284bbe84012030cc5c24ccf903c3abee995af549616c10211dbd5e463a5f37a3f27a5982127db81787a64345597a10be495380b844ce6204dc57c8b058bb88 |
29 |
DIST apcu-5.1.12.tgz 105890 BLAKE2B 110a56ed1da8e33bd39c9d694007acdca2deb42219ae5d31b57296ff3729bab3fdbc508965b2cd0fccc425b2c2fea9249933cd7f45586beeee7cd3bd38ef2473 SHA512 f53b7840d5aecfc899e3e878f0bb9a5dc4a83628543963c20c25ce2b2a2adf14dd40d39a6a2014c139962453e0e9e5038fca7b1d0be205c0b9b2aa6e3fefb054 |
30 |
-DIST apcu-5.1.16.tgz 94032 BLAKE2B 3676cfaad796f565b63fa882fad79ed2fc8de383d364ff24369556761e21f7091ebd7064ac8e0815f283e839bc95ca88aced83d882b622d3a4297af46dc0da72 SHA512 cda2b61540b786cdecc09a2c1f77c5bf91cc118ac97fa929f1d4c3c63d29969397cf3ee37691a86e7bd7784411046df5d93efe37b4cc0c1ce903dfa7dc7dce89 |
31 |
DIST apcu-5.1.17.tgz 94814 BLAKE2B 2e49f08b9445f04fd036bc949c9099ee045c3ecd460b323e371a4906fdef77f8d3e7d338af14fe3e116a94aa548c7fb79cc0003556ed739e258370095cbec075 SHA512 7f6a6cd927ed4ff251497c2c79e8d832d1a44ddd59abdb175886d3c12ea27f26142e6b851ac5bb5acb49a0e3a998e9741ba0ff03310f51b9cd188cdf6cf12793 |
32 |
-DIST apcu-5.1.8.tgz 111260 BLAKE2B eb41b1af33500ed9ddbbcb5e1a92884af4b356e16cf76c70f75a8853522cc91af1c156cc0bbd464fce539a138bf4e2ead5101810223b0f1bb91cd062850ef08e SHA512 4f377389e713bcae5534c64ea28f72c20ab2176aa758188c4d956c1f2370be49bc33dd2a1db43941fff5344a164aaeebc4e73e6d579f62d17334bcc520171526 |
33 |
-DIST apcu-5.1.9.tgz 111049 BLAKE2B c7138f65d73a056e4a34972098c2b543ad6d96d0d8215e82757c457cc8938af48fea842e006c79c83deee4060cdc94047764930592eef03c5f347abeb7730897 SHA512 3e9b29a293b5bfb29283dd650907bfb9f31a1cb99ef908021d3869c3e3ae4051a2c45aab27275e90b0a2fa94c35cc9e170637dc539184d955f3f13dc09cba060 |
34 |
|
35 |
diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.10.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.10.ebuild |
36 |
deleted file mode 100644 |
37 |
index d78f6c0b318..00000000000 |
38 |
--- a/dev-php/pecl-apcu/pecl-apcu-5.1.10.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,80 +0,0 @@ |
41 |
-# Copyright 1999-2018 Gentoo Foundation |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
- |
44 |
-EAPI=6 |
45 |
- |
46 |
-PHP_EXT_NAME="apcu" |
47 |
-PHP_EXT_INI="yes" |
48 |
-PHP_EXT_ZENDEXT="no" |
49 |
-DOCS=( NOTICE README.md TECHNOTES.txt TODO ) |
50 |
- |
51 |
-# Define 5.6 here so we get the USE and REQUIRED_USE from the eclass |
52 |
-# This allows us to depend on the other slot |
53 |
-USE_PHP="php5-6 php7-0 php7-1 php7-2" |
54 |
- |
55 |
-inherit php-ext-pecl-r3 |
56 |
- |
57 |
-# However, we only really build for 7.x; so redefine it here |
58 |
-USE_PHP="php7-0 php7-1 php7-2" |
59 |
- |
60 |
-KEYWORDS="~amd64 ~x86" |
61 |
- |
62 |
-DESCRIPTION="Stripped down version of APC supporting only user cache" |
63 |
-LICENSE="PHP-3.01" |
64 |
-SLOT="7" |
65 |
-IUSE="+mmap" |
66 |
- |
67 |
-DEPEND="" |
68 |
-RDEPEND="${DEPEND} php_targets_php5-6? ( dev-php/pecl-apcu:0[php_targets_php5-6] )" |
69 |
- |
70 |
-LOCKS="pthreadmutex pthreadrw spinlock semaphore" |
71 |
- |
72 |
-LUSE="" |
73 |
-for l in ${LOCKS}; do |
74 |
- LUSE+="lock_${l} " |
75 |
-done |
76 |
- |
77 |
-IUSE+=" ${LUSE/lock_pthreadrw/+lock_pthreadrw}" |
78 |
- |
79 |
-REQUIRED_USE="^^ ( $LUSE )" |
80 |
- |
81 |
-src_prepare() { |
82 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
83 |
- php-ext-source-r3_src_prepare |
84 |
- else |
85 |
- eapply_user |
86 |
- fi |
87 |
-} |
88 |
- |
89 |
-src_configure() { |
90 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
91 |
- local PHP_EXT_ECONF_ARGS=( |
92 |
- --enable-apcu |
93 |
- $(use_enable mmap apcu-mmap) |
94 |
- $(use_enable lock_pthreadrw apcu-rwlocks) |
95 |
- $(use_enable lock_spinlock apcu-spinlocks) |
96 |
- ) |
97 |
- |
98 |
- php-ext-source-r3_src_configure |
99 |
- fi |
100 |
-} |
101 |
- |
102 |
-src_install() { |
103 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
104 |
- php-ext-pecl-r3_src_install |
105 |
- |
106 |
- insinto /usr/share/php7/apcu |
107 |
- doins apc.php |
108 |
- fi |
109 |
-} |
110 |
- |
111 |
-pkg_postinst() { |
112 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
113 |
- elog "The apc.php file shipped with this release of pecl-apcu was" |
114 |
- elog "installed into ${EPREFIX}/usr/share/php7/apcu/." |
115 |
- elog |
116 |
- elog "If you depend on the apc_* functions," |
117 |
- elog "please install dev-php/pecl-apcu_bc as this extension no longer" |
118 |
- elog "provides backwards compatibility." |
119 |
- fi |
120 |
-} |
121 |
|
122 |
diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.11.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.11.ebuild |
123 |
deleted file mode 100644 |
124 |
index d78f6c0b318..00000000000 |
125 |
--- a/dev-php/pecl-apcu/pecl-apcu-5.1.11.ebuild |
126 |
+++ /dev/null |
127 |
@@ -1,80 +0,0 @@ |
128 |
-# Copyright 1999-2018 Gentoo Foundation |
129 |
-# Distributed under the terms of the GNU General Public License v2 |
130 |
- |
131 |
-EAPI=6 |
132 |
- |
133 |
-PHP_EXT_NAME="apcu" |
134 |
-PHP_EXT_INI="yes" |
135 |
-PHP_EXT_ZENDEXT="no" |
136 |
-DOCS=( NOTICE README.md TECHNOTES.txt TODO ) |
137 |
- |
138 |
-# Define 5.6 here so we get the USE and REQUIRED_USE from the eclass |
139 |
-# This allows us to depend on the other slot |
140 |
-USE_PHP="php5-6 php7-0 php7-1 php7-2" |
141 |
- |
142 |
-inherit php-ext-pecl-r3 |
143 |
- |
144 |
-# However, we only really build for 7.x; so redefine it here |
145 |
-USE_PHP="php7-0 php7-1 php7-2" |
146 |
- |
147 |
-KEYWORDS="~amd64 ~x86" |
148 |
- |
149 |
-DESCRIPTION="Stripped down version of APC supporting only user cache" |
150 |
-LICENSE="PHP-3.01" |
151 |
-SLOT="7" |
152 |
-IUSE="+mmap" |
153 |
- |
154 |
-DEPEND="" |
155 |
-RDEPEND="${DEPEND} php_targets_php5-6? ( dev-php/pecl-apcu:0[php_targets_php5-6] )" |
156 |
- |
157 |
-LOCKS="pthreadmutex pthreadrw spinlock semaphore" |
158 |
- |
159 |
-LUSE="" |
160 |
-for l in ${LOCKS}; do |
161 |
- LUSE+="lock_${l} " |
162 |
-done |
163 |
- |
164 |
-IUSE+=" ${LUSE/lock_pthreadrw/+lock_pthreadrw}" |
165 |
- |
166 |
-REQUIRED_USE="^^ ( $LUSE )" |
167 |
- |
168 |
-src_prepare() { |
169 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
170 |
- php-ext-source-r3_src_prepare |
171 |
- else |
172 |
- eapply_user |
173 |
- fi |
174 |
-} |
175 |
- |
176 |
-src_configure() { |
177 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
178 |
- local PHP_EXT_ECONF_ARGS=( |
179 |
- --enable-apcu |
180 |
- $(use_enable mmap apcu-mmap) |
181 |
- $(use_enable lock_pthreadrw apcu-rwlocks) |
182 |
- $(use_enable lock_spinlock apcu-spinlocks) |
183 |
- ) |
184 |
- |
185 |
- php-ext-source-r3_src_configure |
186 |
- fi |
187 |
-} |
188 |
- |
189 |
-src_install() { |
190 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
191 |
- php-ext-pecl-r3_src_install |
192 |
- |
193 |
- insinto /usr/share/php7/apcu |
194 |
- doins apc.php |
195 |
- fi |
196 |
-} |
197 |
- |
198 |
-pkg_postinst() { |
199 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
200 |
- elog "The apc.php file shipped with this release of pecl-apcu was" |
201 |
- elog "installed into ${EPREFIX}/usr/share/php7/apcu/." |
202 |
- elog |
203 |
- elog "If you depend on the apc_* functions," |
204 |
- elog "please install dev-php/pecl-apcu_bc as this extension no longer" |
205 |
- elog "provides backwards compatibility." |
206 |
- fi |
207 |
-} |
208 |
|
209 |
diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.16.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.16.ebuild |
210 |
deleted file mode 100644 |
211 |
index 77f78a0680a..00000000000 |
212 |
--- a/dev-php/pecl-apcu/pecl-apcu-5.1.16.ebuild |
213 |
+++ /dev/null |
214 |
@@ -1,80 +0,0 @@ |
215 |
-# Copyright 1999-2018 Gentoo Authors |
216 |
-# Distributed under the terms of the GNU General Public License v2 |
217 |
- |
218 |
-EAPI=6 |
219 |
- |
220 |
-PHP_EXT_NAME="apcu" |
221 |
-PHP_EXT_INI="yes" |
222 |
-PHP_EXT_ZENDEXT="no" |
223 |
-DOCS=( NOTICE README.md TECHNOTES.txt ) |
224 |
- |
225 |
-# Define 5.6 here so we get the USE and REQUIRED_USE from the eclass |
226 |
-# This allows us to depend on the other slot |
227 |
-USE_PHP="php5-6 php7-0 php7-1 php7-2 php7-3" |
228 |
- |
229 |
-inherit php-ext-pecl-r3 |
230 |
- |
231 |
-# However, we only really build for 7.x; so redefine it here |
232 |
-USE_PHP="php7-0 php7-1 php7-2 php7-3" |
233 |
- |
234 |
-KEYWORDS="~amd64 ~x86" |
235 |
- |
236 |
-DESCRIPTION="Stripped down version of APC supporting only user cache" |
237 |
-LICENSE="PHP-3.01" |
238 |
-SLOT="7" |
239 |
-IUSE="+mmap" |
240 |
- |
241 |
-DEPEND="" |
242 |
-RDEPEND="${DEPEND} php_targets_php5-6? ( dev-php/pecl-apcu:0[php_targets_php5-6] )" |
243 |
- |
244 |
-LOCKS="pthreadmutex pthreadrw spinlock semaphore" |
245 |
- |
246 |
-LUSE="" |
247 |
-for l in ${LOCKS}; do |
248 |
- LUSE+="lock_${l} " |
249 |
-done |
250 |
- |
251 |
-IUSE+=" ${LUSE/lock_pthreadrw/+lock_pthreadrw}" |
252 |
- |
253 |
-REQUIRED_USE="^^ ( $LUSE )" |
254 |
- |
255 |
-src_prepare() { |
256 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then |
257 |
- php-ext-source-r3_src_prepare |
258 |
- else |
259 |
- eapply_user |
260 |
- fi |
261 |
-} |
262 |
- |
263 |
-src_configure() { |
264 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then |
265 |
- local PHP_EXT_ECONF_ARGS=( |
266 |
- --enable-apcu |
267 |
- $(use_enable mmap apcu-mmap) |
268 |
- $(use_enable lock_pthreadrw apcu-rwlocks) |
269 |
- $(use_enable lock_spinlock apcu-spinlocks) |
270 |
- ) |
271 |
- |
272 |
- php-ext-source-r3_src_configure |
273 |
- fi |
274 |
-} |
275 |
- |
276 |
-src_install() { |
277 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then |
278 |
- php-ext-pecl-r3_src_install |
279 |
- |
280 |
- insinto /usr/share/php7/apcu |
281 |
- doins apc.php |
282 |
- fi |
283 |
-} |
284 |
- |
285 |
-pkg_postinst() { |
286 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then |
287 |
- elog "The apc.php file shipped with this release of pecl-apcu was" |
288 |
- elog "installed into ${EPREFIX}/usr/share/php7/apcu/." |
289 |
- elog |
290 |
- elog "If you depend on the apc_* functions," |
291 |
- elog "please install dev-php/pecl-apcu_bc as this extension no longer" |
292 |
- elog "provides backwards compatibility." |
293 |
- fi |
294 |
-} |
295 |
|
296 |
diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.8.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.8.ebuild |
297 |
deleted file mode 100644 |
298 |
index a0dd81ab461..00000000000 |
299 |
--- a/dev-php/pecl-apcu/pecl-apcu-5.1.8.ebuild |
300 |
+++ /dev/null |
301 |
@@ -1,80 +0,0 @@ |
302 |
-# Copyright 1999-2017 Gentoo Foundation |
303 |
-# Distributed under the terms of the GNU General Public License v2 |
304 |
- |
305 |
-EAPI=6 |
306 |
- |
307 |
-PHP_EXT_NAME="apcu" |
308 |
-PHP_EXT_INI="yes" |
309 |
-PHP_EXT_ZENDEXT="no" |
310 |
-DOCS=( NOTICE README.md TECHNOTES.txt TODO ) |
311 |
- |
312 |
-# Define 5.6 here so we get the USE and REQUIRED_USE from the eclass |
313 |
-# This allows us to depend on the other slot |
314 |
-USE_PHP="php5-6 php7-0 php7-1" |
315 |
- |
316 |
-inherit php-ext-pecl-r3 |
317 |
- |
318 |
-# However, we only really build for 7.x; so redefine it here |
319 |
-USE_PHP="php7-0 php7-1" |
320 |
- |
321 |
-KEYWORDS="amd64 x86" |
322 |
- |
323 |
-DESCRIPTION="Stripped down version of APC supporting only user cache" |
324 |
-LICENSE="PHP-3.01" |
325 |
-SLOT="7" |
326 |
-IUSE="+mmap" |
327 |
- |
328 |
-DEPEND="" |
329 |
-RDEPEND="${DEPEND} php_targets_php5-6? ( dev-php/pecl-apcu:0[php_targets_php5-6] )" |
330 |
- |
331 |
-LOCKS="pthreadmutex pthreadrw spinlock semaphore" |
332 |
- |
333 |
-LUSE="" |
334 |
-for l in ${LOCKS}; do |
335 |
- LUSE+="lock_${l} " |
336 |
-done |
337 |
- |
338 |
-IUSE+=" ${LUSE/lock_pthreadrw/+lock_pthreadrw}" |
339 |
- |
340 |
-REQUIRED_USE="^^ ( $LUSE )" |
341 |
- |
342 |
-src_prepare() { |
343 |
- if use php_targets_php7-0 || use php_targets_php7-1 ; then |
344 |
- php-ext-source-r3_src_prepare |
345 |
- else |
346 |
- eapply_user |
347 |
- fi |
348 |
-} |
349 |
- |
350 |
-src_configure() { |
351 |
- if use php_targets_php7-0 || use php_targets_php7-1 ; then |
352 |
- local PHP_EXT_ECONF_ARGS=( |
353 |
- --enable-apcu |
354 |
- $(use_enable mmap apcu-mmap) |
355 |
- $(use_enable lock_pthreadrw apcu-rwlocks) |
356 |
- $(use_enable lock_spinlock apcu-spinlocks) |
357 |
- ) |
358 |
- |
359 |
- php-ext-source-r3_src_configure |
360 |
- fi |
361 |
-} |
362 |
- |
363 |
-src_install() { |
364 |
- if use php_targets_php7-0 || use php_targets_php7-1 ; then |
365 |
- php-ext-pecl-r3_src_install |
366 |
- |
367 |
- insinto /usr/share/php7/apcu |
368 |
- doins apc.php |
369 |
- fi |
370 |
-} |
371 |
- |
372 |
-pkg_postinst() { |
373 |
- if use php_targets_php7-0 || use php_targets_php7-1 ; then |
374 |
- elog "The apc.php file shipped with this release of pecl-apcu was" |
375 |
- elog "installed into ${EPREFIX}/usr/share/php7/apcu/." |
376 |
- elog |
377 |
- elog "If you depend on the apc_* functions," |
378 |
- elog "please install dev-php/pecl-apcu_bc as this extension no longer" |
379 |
- elog "provides backwards compatibility." |
380 |
- fi |
381 |
-} |
382 |
|
383 |
diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.9.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.9.ebuild |
384 |
deleted file mode 100644 |
385 |
index d78f6c0b318..00000000000 |
386 |
--- a/dev-php/pecl-apcu/pecl-apcu-5.1.9.ebuild |
387 |
+++ /dev/null |
388 |
@@ -1,80 +0,0 @@ |
389 |
-# Copyright 1999-2018 Gentoo Foundation |
390 |
-# Distributed under the terms of the GNU General Public License v2 |
391 |
- |
392 |
-EAPI=6 |
393 |
- |
394 |
-PHP_EXT_NAME="apcu" |
395 |
-PHP_EXT_INI="yes" |
396 |
-PHP_EXT_ZENDEXT="no" |
397 |
-DOCS=( NOTICE README.md TECHNOTES.txt TODO ) |
398 |
- |
399 |
-# Define 5.6 here so we get the USE and REQUIRED_USE from the eclass |
400 |
-# This allows us to depend on the other slot |
401 |
-USE_PHP="php5-6 php7-0 php7-1 php7-2" |
402 |
- |
403 |
-inherit php-ext-pecl-r3 |
404 |
- |
405 |
-# However, we only really build for 7.x; so redefine it here |
406 |
-USE_PHP="php7-0 php7-1 php7-2" |
407 |
- |
408 |
-KEYWORDS="~amd64 ~x86" |
409 |
- |
410 |
-DESCRIPTION="Stripped down version of APC supporting only user cache" |
411 |
-LICENSE="PHP-3.01" |
412 |
-SLOT="7" |
413 |
-IUSE="+mmap" |
414 |
- |
415 |
-DEPEND="" |
416 |
-RDEPEND="${DEPEND} php_targets_php5-6? ( dev-php/pecl-apcu:0[php_targets_php5-6] )" |
417 |
- |
418 |
-LOCKS="pthreadmutex pthreadrw spinlock semaphore" |
419 |
- |
420 |
-LUSE="" |
421 |
-for l in ${LOCKS}; do |
422 |
- LUSE+="lock_${l} " |
423 |
-done |
424 |
- |
425 |
-IUSE+=" ${LUSE/lock_pthreadrw/+lock_pthreadrw}" |
426 |
- |
427 |
-REQUIRED_USE="^^ ( $LUSE )" |
428 |
- |
429 |
-src_prepare() { |
430 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
431 |
- php-ext-source-r3_src_prepare |
432 |
- else |
433 |
- eapply_user |
434 |
- fi |
435 |
-} |
436 |
- |
437 |
-src_configure() { |
438 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
439 |
- local PHP_EXT_ECONF_ARGS=( |
440 |
- --enable-apcu |
441 |
- $(use_enable mmap apcu-mmap) |
442 |
- $(use_enable lock_pthreadrw apcu-rwlocks) |
443 |
- $(use_enable lock_spinlock apcu-spinlocks) |
444 |
- ) |
445 |
- |
446 |
- php-ext-source-r3_src_configure |
447 |
- fi |
448 |
-} |
449 |
- |
450 |
-src_install() { |
451 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
452 |
- php-ext-pecl-r3_src_install |
453 |
- |
454 |
- insinto /usr/share/php7/apcu |
455 |
- doins apc.php |
456 |
- fi |
457 |
-} |
458 |
- |
459 |
-pkg_postinst() { |
460 |
- if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
461 |
- elog "The apc.php file shipped with this release of pecl-apcu was" |
462 |
- elog "installed into ${EPREFIX}/usr/share/php7/apcu/." |
463 |
- elog |
464 |
- elog "If you depend on the apc_* functions," |
465 |
- elog "please install dev-php/pecl-apcu_bc as this extension no longer" |
466 |
- elog "provides backwards compatibility." |
467 |
- fi |
468 |
-} |