mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-php/PEAR-Image_Color2: Revbump for EAPI and adding tests
Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
28
dev-php/PEAR-Image_Color2/PEAR-Image_Color2-0.1.5-r1.ebuild
Normal file
28
dev-php/PEAR-Image_Color2/PEAR-Image_Color2-0.1.5-r1.ebuild
Normal file
@@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit php-pear-r2
|
||||
|
||||
DESCRIPTION="Color conversion and mixing for PHP5"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
DEPEND="test? ( >=dev-php/phpunit-5 )"
|
||||
|
||||
src_prepare() {
|
||||
# Modernize tests
|
||||
sed -i -e "/require_once 'PHPUnit\/Framework.php';/d" \
|
||||
-e "s/assertType('\(Image_[a-zA-Z2_]*\)',/assertInstanceOf(\1::class,/" \
|
||||
-e "s/assertType('array',/assertInternalType('array',/" \
|
||||
-e "s/assertType('string',/assertInternalType('string',/" \
|
||||
tests/*.php tests/Model/*.php || die
|
||||
default
|
||||
}
|
||||
|
||||
src_test() {
|
||||
phpunit tests/AllTests.php || die
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit php-pear-r1
|
||||
|
||||
DESCRIPTION="Color conversion and mixing for PHP5"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
Reference in New Issue
Block a user