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_bc/
Date: Wed, 16 Jan 2019 13:59:50
Message-Id: 1547647082.d86bca3d8aeb9097256ba82fbb6217f9ade3d6d6.grknight@gentoo
1 commit: d86bca3d8aeb9097256ba82fbb6217f9ade3d6d6
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 16 13:58:02 2019 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 16 13:58:02 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d86bca3d
7
8 dev-php/pecl-apcu_bc: Revbump adding php7-3, drop php7-0
9
10 Package-Manager: Portage-2.3.56, Repoman-2.3.12
11 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
12
13 dev-php/pecl-apcu_bc/pecl-apcu_bc-1.0.4-r1.ebuild | 44 +++++++++++++++++++++++
14 1 file changed, 44 insertions(+)
15
16 diff --git a/dev-php/pecl-apcu_bc/pecl-apcu_bc-1.0.4-r1.ebuild b/dev-php/pecl-apcu_bc/pecl-apcu_bc-1.0.4-r1.ebuild
17 new file mode 100644
18 index 00000000000..e9ed00d7cc4
19 --- /dev/null
20 +++ b/dev-php/pecl-apcu_bc/pecl-apcu_bc-1.0.4-r1.ebuild
21 @@ -0,0 +1,44 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +PHP_INI_NAME="bc_apc"
28 +PHP_EXT_NAME="apc"
29 +PHP_EXT_INI="yes"
30 +PHP_EXT_ZENDEXT="no"
31 +PHP_EXT_EXTRA_ECONF=""
32 +DOCS=( README.md )
33 +
34 +USE_PHP="php7-1 php7-2 php7-3"
35 +
36 +inherit php-ext-pecl-r3 multilib
37 +
38 +KEYWORDS="~amd64 ~x86"
39 +
40 +DESCRIPTION="Provides APC backwards compatibility functions via APCu"
41 +LICENSE="PHP-3.01"
42 +SLOT="0"
43 +IUSE=""
44 +
45 +DEPEND="dev-php/pecl-apcu:7[php_targets_php7-1?,php_targets_php7-2?,php_targets_php7-3?]"
46 +RDEPEND="${DEPEND}"
47 +
48 +src_test() {
49 + # This fixed version is necessary to have apcu load
50 + # from the install before the tested apc.
51 + # It is intentional to specify phpoptions twice.
52 + # This mimics the Makefile.
53 + local slot phpoptions
54 + for slot in $(php_get_slots); do
55 + php_init_slot_env "${slot}"
56 + ln -s "${EXT_DIR}/apcu$(get_libname)" \
57 + "modules/" || die
58 + phpoptions=( -n -d extension_dir="${PHP_EXT_S}/modules"
59 + -d extension=apcu$(get_libname)
60 + -d extension=apc$(get_libname) )
61 + NO_INTERACTION="yes" TEST_PHP_EXECUTABLE="${PHPCLI}" \
62 + "${PHPCLI}" "${phpoptions[@]}" \
63 + run-tests.php "${phpoptions[@]}" || die
64 + done
65 +}