mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-php/PEAR-XML_RSS: Revbump for EAPI and adding tests
Signed-off-by: Brian Evans <grknight@gentoo.org>
This commit is contained in:
29
dev-php/PEAR-XML_RSS/PEAR-XML_RSS-1.1.0-r1.ebuild
Normal file
29
dev-php/PEAR-XML_RSS/PEAR-XML_RSS-1.1.0-r1.ebuild
Normal 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
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user