Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-apcu/
Date: Thu, 25 Jan 2018 15:05:17
Message-Id: 1516892701.14cf47c43e456f9cbbe99acd924e4443bbdf6a54.grknight@gentoo
1 commit: 14cf47c43e456f9cbbe99acd924e4443bbdf6a54
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 25 15:05:01 2018 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 25 15:05:01 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14cf47c4
7
8 dev-php/pecl-apcu: Drop old revision
9
10 Package-Manager: Portage-2.3.20, Repoman-2.3.6
11
12 dev-php/pecl-apcu/pecl-apcu-5.1.8-r1.ebuild | 80 -----------------------------
13 1 file changed, 80 deletions(-)
14
15 diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.8-r1.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.8-r1.ebuild
16 deleted file mode 100644
17 index bcf56069751..00000000000
18 --- a/dev-php/pecl-apcu/pecl-apcu-5.1.8-r1.ebuild
19 +++ /dev/null
20 @@ -1,80 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -PHP_EXT_NAME="apcu"
27 -PHP_EXT_INI="yes"
28 -PHP_EXT_ZENDEXT="no"
29 -DOCS=( NOTICE README.md TECHNOTES.txt TODO )
30 -
31 -# Define 5.6 here so we get the USE and REQUIRED_USE from the eclass
32 -# This allows us to depend on the other slot
33 -USE_PHP="php5-6 php7-0 php7-1 php7-2"
34 -
35 -inherit php-ext-pecl-r3
36 -
37 -# However, we only really build for 7.x; so redefine it here
38 -USE_PHP="php7-0 php7-1 php7-2"
39 -
40 -KEYWORDS="~amd64 ~x86"
41 -
42 -DESCRIPTION="Stripped down version of APC supporting only user cache"
43 -LICENSE="PHP-3.01"
44 -SLOT="7"
45 -IUSE="+mmap"
46 -
47 -DEPEND=""
48 -RDEPEND="${DEPEND} php_targets_php5-6? ( dev-php/pecl-apcu:0[php_targets_php5-6] )"
49 -
50 -LOCKS="pthreadmutex pthreadrw spinlock semaphore"
51 -
52 -LUSE=""
53 -for l in ${LOCKS}; do
54 - LUSE+="lock_${l} "
55 -done
56 -
57 -IUSE+=" ${LUSE/lock_pthreadrw/+lock_pthreadrw}"
58 -
59 -REQUIRED_USE="^^ ( $LUSE )"
60 -
61 -src_prepare() {
62 - if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then
63 - php-ext-source-r3_src_prepare
64 - else
65 - eapply_user
66 - fi
67 -}
68 -
69 -src_configure() {
70 - if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then
71 - local PHP_EXT_ECONF_ARGS=(
72 - --enable-apcu
73 - $(use_enable mmap apcu-mmap)
74 - $(use_enable lock_pthreadrw apcu-rwlocks)
75 - $(use_enable lock_spinlock apcu-spinlocks)
76 - )
77 -
78 - php-ext-source-r3_src_configure
79 - fi
80 -}
81 -
82 -src_install() {
83 - if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then
84 - php-ext-pecl-r3_src_install
85 -
86 - insinto /usr/share/php7/apcu
87 - doins apc.php
88 - fi
89 -}
90 -
91 -pkg_postinst() {
92 - if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then
93 - elog "The apc.php file shipped with this release of pecl-apcu was"
94 - elog "installed into ${EPREFIX}/usr/share/php7/apcu/."
95 - elog
96 - elog "If you depend on the apc_* functions,"
97 - elog "please install dev-php/pecl-apcu_bc as this extension no longer"
98 - elog "provides backwards compatibility."
99 - fi
100 -}