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-Image_Color2/
Date: Mon, 19 Feb 2018 15:20:16
Message-Id: 1519053605.801b2b6c2b62b78631bee7c07e38f9d6f99fe3c4.grknight@gentoo
1 commit: 801b2b6c2b62b78631bee7c07e38f9d6f99fe3c4
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 19 15:19:18 2018 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 19 15:20:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=801b2b6c
7
8 dev-php/PEAR-Image_Color2: Revbump for EAPI and adding tests
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 .../PEAR-Image_Color2-0.1.5-r1.ebuild | 28 ++++++++++++++++++++++
13 .../PEAR-Image_Color2-0.1.5.ebuild | 13 ----------
14 2 files changed, 28 insertions(+), 13 deletions(-)
15
16 diff --git a/dev-php/PEAR-Image_Color2/PEAR-Image_Color2-0.1.5-r1.ebuild b/dev-php/PEAR-Image_Color2/PEAR-Image_Color2-0.1.5-r1.ebuild
17 new file mode 100644
18 index 00000000000..657a45b11c2
19 --- /dev/null
20 +++ b/dev-php/PEAR-Image_Color2/PEAR-Image_Color2-0.1.5-r1.ebuild
21 @@ -0,0 +1,28 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +inherit php-pear-r2
28 +
29 +DESCRIPTION="Color conversion and mixing for PHP5"
30 +
31 +LICENSE="LGPL-2.1"
32 +SLOT="0"
33 +KEYWORDS="~amd64 ~x86"
34 +IUSE="test"
35 +DEPEND="test? ( >=dev-php/phpunit-5 )"
36 +
37 +src_prepare() {
38 + # Modernize tests
39 + sed -i -e "/require_once 'PHPUnit\/Framework.php';/d" \
40 + -e "s/assertType('\(Image_[a-zA-Z2_]*\)',/assertInstanceOf(\1::class,/" \
41 + -e "s/assertType('array',/assertInternalType('array',/" \
42 + -e "s/assertType('string',/assertInternalType('string',/" \
43 + tests/*.php tests/Model/*.php || die
44 + default
45 +}
46 +
47 +src_test() {
48 + phpunit tests/AllTests.php || die
49 +}
50
51 diff --git a/dev-php/PEAR-Image_Color2/PEAR-Image_Color2-0.1.5.ebuild b/dev-php/PEAR-Image_Color2/PEAR-Image_Color2-0.1.5.ebuild
52 deleted file mode 100644
53 index 395133b26bc..00000000000
54 --- a/dev-php/PEAR-Image_Color2/PEAR-Image_Color2-0.1.5.ebuild
55 +++ /dev/null
56 @@ -1,13 +0,0 @@
57 -# Copyright 1999-2014 Gentoo Foundation
58 -# Distributed under the terms of the GNU General Public License v2
59 -
60 -EAPI=4
61 -
62 -inherit php-pear-r1
63 -
64 -DESCRIPTION="Color conversion and mixing for PHP5"
65 -
66 -LICENSE="LGPL-2.1"
67 -SLOT="0"
68 -KEYWORDS="~amd64 ~x86"
69 -IUSE=""