diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-03-30 14:18:22 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-03-30 14:19:44 +0200 |
commit | 33374ed7689017aada74badce62b4bbca574e630 (patch) | |
tree | 34c7410213f38b205c3ffbe4d35d2ac61e279a70 /dev-php | |
parent | games-strategy/naev: inherit python-any-r1.eclass (diff) | |
download | gentoo-33374ed7689017aada74badce62b4bbca574e630.tar.gz gentoo-33374ed7689017aada74badce62b4bbca574e630.tar.bz2 gentoo-33374ed7689017aada74badce62b4bbca574e630.zip |
dev-php/awl: test all available PHP versions
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-php')
-rw-r--r-- | dev-php/awl/awl-0.62.ebuild | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/dev-php/awl/awl-0.62.ebuild b/dev-php/awl/awl-0.62.ebuild index 1972ef4d1108..e4baa58f0208 100644 --- a/dev-php/awl/awl-0.62.ebuild +++ b/dev-php/awl/awl-0.62.ebuild @@ -7,6 +7,8 @@ DESCRIPTION="Andrew McMillan's Web Libraries" HOMEPAGE="https://gitlab.com/davical-project/awl" SRC_URI="https://www.davical.org/downloads/${PN}_${PV}.orig.tar.xz -> ${P}.tar.xz" +USE_PHP="php7.3 php7.4 php8.0" + LICENSE="GPL-2 GPL-2+ GPL-3+ LGPL-2+ LGPL-3+" SLOT="0" KEYWORDS="~amd64 ~x86" @@ -14,7 +16,7 @@ IUSE="test" RESTRICT="!test? ( test )" BDEPEND="test? ( dev-php/phpunit )" -RDEPEND="dev-lang/php:*[pdo,postgres,xml]" +RDEPEND="dev-lang/php:*[pdo,xml]" S="${WORKDIR}" @@ -23,7 +25,13 @@ src_compile() { } src_test() { - phpunit --do-not-cache-result tests/ || die "test suite failed" + local slot + for slot in ${USE_PHP//-/.} ; do + if [[ -x /usr/bin/${slot} ]] ; then + ${slot} "${EPREFIX}"/usr/bin/phpunit --verbose --do-not-cache-result tests/ \ + || die "test suite failed" + fi + done } src_install() { |