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: Thu, 18 Oct 2018 01:15:14
Message-Id: 1539825284.b60e51f25185a1a9a25044925133eef345e10573.grknight@gentoo
1 commit: b60e51f25185a1a9a25044925133eef345e10573
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 18 01:14:44 2018 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 18 01:14:44 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b60e51f2
7
8 dev-php/pecl-apcu_bc: Fix tests in 1.0.4
9
10 Closes: https://bugs.gentoo.org/667494
11 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
12 Package-Manager: Portage-2.3.51, Repoman-2.3.11
13
14 dev-php/pecl-apcu_bc/pecl-apcu_bc-1.0.4.ebuild | 23 +++++++++++++++++++++--
15 1 file changed, 21 insertions(+), 2 deletions(-)
16
17 diff --git a/dev-php/pecl-apcu_bc/pecl-apcu_bc-1.0.4.ebuild b/dev-php/pecl-apcu_bc/pecl-apcu_bc-1.0.4.ebuild
18 index 6cb699b96c7..30400a425c6 100644
19 --- a/dev-php/pecl-apcu_bc/pecl-apcu_bc-1.0.4.ebuild
20 +++ b/dev-php/pecl-apcu_bc/pecl-apcu_bc-1.0.4.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2018 Gentoo Foundation
23 +# Copyright 1999-2018 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=6
27 @@ -12,7 +12,7 @@ DOCS=( README.md )
28
29 USE_PHP="php7-0 php7-1 php7-2"
30
31 -inherit php-ext-pecl-r3
32 +inherit php-ext-pecl-r3 multilib
33
34 KEYWORDS="~amd64 ~x86"
35
36 @@ -23,3 +23,22 @@ IUSE=""
37
38 DEPEND="dev-php/pecl-apcu:7[php_targets_php7-0?,php_targets_php7-1?,php_targets_php7-2?]"
39 RDEPEND="${DEPEND}"
40 +
41 +src_test() {
42 + # This fixed version is necessary to have apcu load
43 + # from the install before the tested apc.
44 + # It is intentional to specify phpoptions twice.
45 + # This mimics the Makefile.
46 + local slot phpoptions
47 + for slot in $(php_get_slots); do
48 + php_init_slot_env "${slot}"
49 + ln -s "${EXT_DIR}/apcu$(get_libname)" \
50 + "modules/" || die
51 + phpoptions=( -n -d extension_dir="${PHP_EXT_S}/modules"
52 + -d extension=apcu$(get_libname)
53 + -d extension=apc$(get_libname) )
54 + NO_INTERACTION="yes" TEST_PHP_EXECUTABLE="${PHPCLI}" \
55 + "${PHPCLI}" "${phpoptions[@]}" \
56 + run-tests.php "${phpoptions[@]}" || die
57 + done
58 +}