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/PEAR-Var_Dump/
Date: Fri, 03 Mar 2017 19:29:34
Message-Id: 1488569360.87b4dc0421814177f2c415b057c5d22346435def.grknight@gentoo
1 commit: 87b4dc0421814177f2c415b057c5d22346435def
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 3 19:15:13 2017 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 3 19:29:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87b4dc04
7
8 dev-php/PEAR-Var_Dump: Revision bump for new eclass
9
10 Package-Manager: Portage-2.3.4, Repoman-2.3.2
11
12 .../PEAR-Var_Dump/PEAR-Var_Dump-1.0.4-r3.ebuild | 33 ++++++++++++++++++++++
13 1 file changed, 33 insertions(+)
14
15 diff --git a/dev-php/PEAR-Var_Dump/PEAR-Var_Dump-1.0.4-r3.ebuild b/dev-php/PEAR-Var_Dump/PEAR-Var_Dump-1.0.4-r3.ebuild
16 new file mode 100644
17 index 00000000000..707cff167f5
18 --- /dev/null
19 +++ b/dev-php/PEAR-Var_Dump/PEAR-Var_Dump-1.0.4-r3.ebuild
20 @@ -0,0 +1,33 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +inherit php-pear-r2
27 +
28 +DESCRIPTION="Dump structured information about a variable"
29 +LICENSE="PHP-3.01"
30 +SLOT="0"
31 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
32 +IUSE="examples test"
33 +
34 +DEPEND="test? ( dev-php/PEAR-PEAR )"
35 +
36 +# The test suite fails due to some deprecation warnings that are output.
37 +# The test cases themselves set error_reporting(E_ALL), so there's no
38 +# easy way to override it.
39 +RESTRICT=test
40 +
41 +src_install() {
42 + use examples && dodoc -r docs/example*.php
43 + php-pear-r2_src_install
44 +}
45 +
46 +src_test() {
47 + # Requires the "pear" executable from dev-php/PEAR-PEAR.
48 + pear run-tests tests || die
49 +
50 + # The command succeeds regardless of whether or not the test suite
51 + # passed, but this file is only written when there was a failure.
52 + [[ -f run-tests.log ]] && die "test suite failed"
53 +}