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
This commit is contained in:
Kent Fredric
2018-03-26 23:53:18 +13:00
parent 85db31f029
commit 2fa5c807b5
4 changed files with 95 additions and 0 deletions

View File

@@ -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

View File

@@ -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"
)

View File

@@ -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

View File

@@ -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