Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-apcu/
Date: Fri, 25 Sep 2015 19:21:02
Message-Id: 1443208821.d694c9065623a3d211b1e615e7cb99181c1c4ade.mjo@gentoo
1 commit: d694c9065623a3d211b1e615e7cb99181c1c4ade
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 25 19:20:21 2015 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 19:20:21 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d694c906
7
8 dev-php/pecl-apcu: revbump to fix incorrect DOCS.
9
10 Package-Manager: portage-2.2.20.1
11
12 dev-php/pecl-apcu/pecl-apcu-4.0.7-r1.ebuild | 63 +++++++++++++++++++++++++++++
13 1 file changed, 63 insertions(+)
14
15 diff --git a/dev-php/pecl-apcu/pecl-apcu-4.0.7-r1.ebuild b/dev-php/pecl-apcu/pecl-apcu-4.0.7-r1.ebuild
16 new file mode 100644
17 index 0000000..3e0d14a
18 --- /dev/null
19 +++ b/dev-php/pecl-apcu/pecl-apcu-4.0.7-r1.ebuild
20 @@ -0,0 +1,63 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +PHP_EXT_NAME="apcu"
28 +PHP_EXT_PECL_PKG="APCu"
29 +PHP_EXT_INI="yes"
30 +PHP_EXT_ZENDEXT="no"
31 +DOCS="NOTICE README.md TECHNOTES.txt TODO"
32 +
33 +USE_PHP="php5-6 php5-5 php5-4"
34 +
35 +S="${WORKDIR}/apcu-${PV}"
36 +PHP_EXT_S="${WORKDIR}/apcu-${PV}"
37 +
38 +inherit php-ext-pecl-r2 confutils eutils
39 +
40 +S="${WORKDIR}/apcu-${PV}"
41 +
42 +KEYWORDS="~amd64 ~x86"
43 +
44 +DESCRIPTION="Stripped down version of APC supporting only user cache"
45 +LICENSE="PHP-3.01"
46 +SLOT="0"
47 +IUSE="+mmap"
48 +
49 +DEPEND=""
50 +RDEPEND="${DEPEND}"
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+=" ${LUSE/lock_pthreadrw/+lock_pthreadrw}"
60 +
61 +REQUIRED_USE="^^ ( $LUSE )"
62 +
63 +src_configure() {
64 + my_conf="--enable-apcu"
65 + use mmap || my_conf+=" --disable-apcu-mmap"
66 +
67 + enable_extension_enable "apcu-rwlocks" "lock_pthreadrw" 0
68 +
69 + php-ext-source-r2_src_configure
70 +}
71 +
72 +src_install() {
73 + php-ext-pecl-r2_src_install
74 +
75 + dodir "${PHP_EXT_SHARED_DIR}"
76 + insinto "${PHP_EXT_SHARED_DIR}"
77 + doins apc.php
78 +}
79 +
80 +pkg_postinst() {
81 + elog "The apc.php file shipped with this release of pecl-apcu was"
82 + elog "installed into ${PHP_EXT_SHARED_DIR}/."
83 +}