commit: 57b49051d1cc8fce00d02480d591c806f707cd48 Author: Brian Evans <grknight <AT> gentoo <DOT> org> AuthorDate: Fri Jan 7 18:19:34 2022 +0000 Commit: Brian Evans <grknight <AT> gentoo <DOT> org> CommitDate: Fri Jan 7 18:20:17 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57b49051
dev-php/PEAR-XML_RSS: Revbump for EAPI and adding tests Signed-off-by: Brian Evans <grknight <AT> gentoo.org> dev-php/PEAR-XML_RSS/PEAR-XML_RSS-1.1.0-r1.ebuild | 29 +++++++++++++++++++++++ dev-php/PEAR-XML_RSS/metadata.xml | 1 + 2 files changed, 30 insertions(+) diff --git a/dev-php/PEAR-XML_RSS/PEAR-XML_RSS-1.1.0-r1.ebuild b/dev-php/PEAR-XML_RSS/PEAR-XML_RSS-1.1.0-r1.ebuild new file mode 100644 index 000000000000..0946a4139818 --- /dev/null +++ b/dev-php/PEAR-XML_RSS/PEAR-XML_RSS-1.1.0-r1.ebuild @@ -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 +} diff --git a/dev-php/PEAR-XML_RSS/metadata.xml b/dev-php/PEAR-XML_RSS/metadata.xml index e20abea1376d..728e8459a9fe 100644 --- a/dev-php/PEAR-XML_RSS/metadata.xml +++ b/dev-php/PEAR-XML_RSS/metadata.xml @@ -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>