summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentnl@gentoo.org>2018-03-26 23:53:18 +1300
committerKent Fredric <kentnl@gentoo.org>2018-03-26 23:53:53 +1300
commit2fa5c807b5b61eded816bda5e24fdd13a57dbff2 (patch)
treeb8f4c21effd6e97358d995ec8101ff3ca7074724 /dev-perl/XML-Atom
parentdev-python/socketpool: fix EXAMPLES in EAPI 6 (diff)
downloadgentoo-2fa5c807b5b61eded816bda5e24fdd13a57dbff2.tar.gz
gentoo-2fa5c807b5b61eded816bda5e24fdd13a57dbff2.tar.bz2
gentoo-2fa5c807b5b61eded816bda5e24fdd13a57dbff2.zip
dev-perl/XML-Atom: Bump to version 0.420.0
- Fix test failures due to '.' in @INC removal - Fix test failures introduced by dev-perl/XML-LibXML being patched to default XXE's to being disabled - Cleanup tests Upstream: - Remove tests dependent on encoding.pm - Move to Module::Build::Tiny - Doc fixes Bug: https://bugs.gentoo.org/623678 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-perl/XML-Atom')
-rw-r--r--dev-perl/XML-Atom/Manifest1
-rw-r--r--dev-perl/XML-Atom/XML-Atom-0.420.0.ebuild39
-rw-r--r--dev-perl/XML-Atom/files/XML-Atom-0.42-dotinc.patch27
-rw-r--r--dev-perl/XML-Atom/files/XML-Atom-0.42-testxxe.patch28
4 files changed, 95 insertions, 0 deletions
diff --git a/dev-perl/XML-Atom/Manifest b/dev-perl/XML-Atom/Manifest
index 853424964a01..2172bc8fbf12 100644
--- a/dev-perl/XML-Atom/Manifest
+++ b/dev-perl/XML-Atom/Manifest
@@ -1 +1,2 @@
DIST XML-Atom-0.41.tar.gz 67309 BLAKE2B c8c61dcdf1cc1a73d366fb11e54b5f78452d7ad71ad5b406f61ba17fb175e6fbb536709e12e35d514df186ac3ae3feabe93b5f2b74aa711fc1a728eaf0505392 SHA512 a26f54044ec64da309cdeca718aa74b9114818b78fc74171f0e5d8393032d0af390df2b155500bf85f51586942c694261ad134bedfc9434369ce9d974fa77aa0
+DIST XML-Atom-0.42.tar.gz 59629 BLAKE2B b28fa62523855f95b4dbcd0ba6b4805c326e78b1a6765f927c1318f53fc9ba14c43b2f539f80c89b90431923dcc699f644bc7a8d2fd593560d2a9b5bc7528b11 SHA512 5f28b3daa01e9c709c4e07935e7bd301ae368d51d19b48fbbcf46bfa96d460f1b40806e4032a83e1eacd7c6ab397175d33cdaa5fc9792081a3bbe228798889d7
diff --git a/dev-perl/XML-Atom/XML-Atom-0.420.0.ebuild b/dev-perl/XML-Atom/XML-Atom-0.420.0.ebuild
new file mode 100644
index 000000000000..653ba03ffeaa
--- /dev/null
+++ b/dev-perl/XML-Atom/XML-Atom-0.420.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=MIYAGAWA
+DIST_VERSION=0.42
+inherit perl-module
+
+DESCRIPTION="Atom feed and API implementation"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-perl/libwww-perl
+ dev-perl/URI
+ dev-perl/Class-Data-Inheritable
+ >=dev-perl/XML-LibXML-1.690.0
+ dev-perl/XML-XPath
+ dev-perl/DateTime
+ dev-perl/DateTime-TimeZone
+ dev-perl/Digest-SHA1
+ dev-perl/HTML-Parser
+ dev-perl/LWP-Authen-Wsse
+ virtual/perl-MIME-Base64
+"
+DEPEND="${RDEPEND}
+ >=dev-perl/Module-Build-Tiny-0.34.0
+ >=virtual/perl-ExtUtils-MakeMaker-6.590.0
+"
+PERL_RM_FILES=(
+ "t/author-pod-syntax.t"
+)
+PATCHES=(
+ "${FILESDIR}/${PN}-0.42-dotinc.patch"
+ "${FILESDIR}/${PN}-0.42-testxxe.patch"
+)
diff --git a/dev-perl/XML-Atom/files/XML-Atom-0.42-dotinc.patch b/dev-perl/XML-Atom/files/XML-Atom-0.42-dotinc.patch
new file mode 100644
index 000000000000..c067fb6e0015
--- /dev/null
+++ b/dev-perl/XML-Atom/files/XML-Atom-0.42-dotinc.patch
@@ -0,0 +1,27 @@
+From d2c045a8ca0d0ca147b04bc9e7c70b27db8cc4e1 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Mon, 26 Mar 2018 23:28:08 +1300
+Subject: Fix tests failing without '.' in @INC
+
+Bug: https://github.com/miyagawa/xml-atom/issues/12
+Bug: https://github.com/miyagawa/xml-atom/pull/14
+---
+ t/11-entry.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/11-entry.t b/t/11-entry.t
+index bbcb107..5955e97 100644
+--- a/t/11-entry.t
++++ b/t/11-entry.t
+@@ -2,7 +2,7 @@
+
+ use strict;
+
+-use t::TestLib;
++BEGIN { require './t/TestLib.pm'; t::TestLib->import() }
+ use Test::More;
+ use XML::Atom;
+ use XML::Atom::Entry;
+--
+2.16.2
+
diff --git a/dev-perl/XML-Atom/files/XML-Atom-0.42-testxxe.patch b/dev-perl/XML-Atom/files/XML-Atom-0.42-testxxe.patch
new file mode 100644
index 000000000000..a61fdb990049
--- /dev/null
+++ b/dev-perl/XML-Atom/files/XML-Atom-0.42-testxxe.patch
@@ -0,0 +1,28 @@
+From 919852dce98ce60abf494edfbe3c57d7a08545e4 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Mon, 26 Mar 2018 23:37:10 +1300
+Subject: Force setting exapnd-external-entities on libxml for this test
+
+Gentoo defaults expand-external-entities to off, which naturally breaks
+this test which explicitly uses external entities.
+
+Bug: https://bugs.gentoo.org/623678
+---
+ t/31-external-entities-libxml.t | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/t/31-external-entities-libxml.t b/t/31-external-entities-libxml.t
+index 71f6eb9..8c9df11 100644
+--- a/t/31-external-entities-libxml.t
++++ b/t/31-external-entities-libxml.t
+@@ -51,6 +51,7 @@ EOX
+ ## custom parser
+ {
+ my $libxml = XML::LibXML->new;
++ $libxml->expand_entities(1);
+ my $entry = XML::Atom::Entry->new(Stream => \$xml, Parser => $libxml);
+ is $entry->title, "Guest Author", "got title";
+ my $content = $entry->content->body;
+--
+2.16.2
+