1 |
commit: 57b49051d1cc8fce00d02480d591c806f707cd48 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 7 18:19:34 2022 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 7 18:20:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57b49051 |
7 |
|
8 |
dev-php/PEAR-XML_RSS: Revbump for EAPI and adding tests |
9 |
|
10 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
11 |
|
12 |
dev-php/PEAR-XML_RSS/PEAR-XML_RSS-1.1.0-r1.ebuild | 29 +++++++++++++++++++++++ |
13 |
dev-php/PEAR-XML_RSS/metadata.xml | 1 + |
14 |
2 files changed, 30 insertions(+) |
15 |
|
16 |
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 |
17 |
new file mode 100644 |
18 |
index 000000000000..0946a4139818 |
19 |
--- /dev/null |
20 |
+++ b/dev-php/PEAR-XML_RSS/PEAR-XML_RSS-1.1.0-r1.ebuild |
21 |
@@ -0,0 +1,29 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+inherit php-pear-r2 |
28 |
+ |
29 |
+DESCRIPTION="PHP parser for RDF and RSS documents" |
30 |
+LICENSE="PHP-3.01" |
31 |
+SLOT="0" |
32 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" |
33 |
+IUSE="test" |
34 |
+RESTRICT="!test? ( test )" |
35 |
+ |
36 |
+RDEPEND="dev-php/PEAR-XML_Parser" |
37 |
+BDEPEND="test? ( ${RDEPEND} dev-php/phpunit )" |
38 |
+ |
39 |
+src_prepare() { |
40 |
+ default |
41 |
+ sed -i \ |
42 |
+ -e 's/_Framework_/\\Framework\\/' \ |
43 |
+ -e 's/_TextUI_/\\TextUI\\/' \ |
44 |
+ tests/*.php |
45 |
+} |
46 |
+ |
47 |
+src_test() { |
48 |
+ phpunit --bootstrap "${S}/XML/RSS.php" \ |
49 |
+ --cache-result-file="${T}/test-results.cache" tests || die |
50 |
+} |
51 |
|
52 |
diff --git a/dev-php/PEAR-XML_RSS/metadata.xml b/dev-php/PEAR-XML_RSS/metadata.xml |
53 |
index e20abea1376d..728e8459a9fe 100644 |
54 |
--- a/dev-php/PEAR-XML_RSS/metadata.xml |
55 |
+++ b/dev-php/PEAR-XML_RSS/metadata.xml |
56 |
@@ -9,4 +9,5 @@ |
57 |
<remote-id type="github">pear/XML_RSS</remote-id> |
58 |
<remote-id type="pear">XML_RSS</remote-id> |
59 |
</upstream> |
60 |
+ <stabilize-allarches/> |
61 |
</pkgmetadata> |