blob: 0946a413981898fea0e5fbd02f2025621f7855ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
}
|