dev-php/PEAR-XML_RSS: Revbump for EAPI and adding tests

Signed-off-by: Brian Evans <grknight@gentoo.org>
This commit is contained in:
Brian Evans
2022-01-07 13:19:34 -05:00
parent 7961b04ddf
commit 57b49051d1
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit php-pear-r2
DESCRIPTION="PHP parser for RDF and RSS documents"
LICENSE="PHP-3.01"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="dev-php/PEAR-XML_Parser"
BDEPEND="test? ( ${RDEPEND} dev-php/phpunit )"
src_prepare() {
default
sed -i \
-e 's/_Framework_/\\Framework\\/' \
-e 's/_TextUI_/\\TextUI\\/' \
tests/*.php
}
src_test() {
phpunit --bootstrap "${S}/XML/RSS.php" \
--cache-result-file="${T}/test-results.cache" tests || die
}

View File

@@ -9,4 +9,5 @@
<remote-id type="github">pear/XML_RSS</remote-id>
<remote-id type="pear">XML_RSS</remote-id>
</upstream>
<stabilize-allarches/>
</pkgmetadata>