You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
647 B

# 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
}