dev-perl/XML-DOM-XPath: Fix encoding.pm tests failing bug #623188
authorKent Fredric <kentnl@gentoo.org>
Mon, 26 Mar 2018 04:25:34 +0000 (17:25 +1300)
committerKent Fredric <kentnl@gentoo.org>
Mon, 26 Mar 2018 04:26:37 +0000 (17:26 +1300)
Bug: https://bugs.gentoo.org/623188
Package-Manager: Portage-2.3.24, Repoman-2.3.6

dev-perl/XML-DOM-XPath/XML-DOM-XPath-0.140.0-r2.ebuild [new file with mode: 0644]
dev-perl/XML-DOM-XPath/files/XML-DOM-XPath-0.14-encoding.patch [new file with mode: 0644]
dev-perl/XML-DOM-XPath/metadata.xml

diff --git a/dev-perl/XML-DOM-XPath/XML-DOM-XPath-0.140.0-r2.ebuild b/dev-perl/XML-DOM-XPath/XML-DOM-XPath-0.140.0-r2.ebuild
new file mode 100644 (file)
index 0000000..6b3e2e9
--- /dev/null
@@ -0,0 +1,22 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=MIROD
+DIST_VERSION=0.14
+inherit perl-module
+
+DESCRIPTION="Perl extension to add XPath support to XML::DOM, using XML::XPath engine"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-perl/XML-DOM
+       dev-perl/XML-XPathEngine"
+DEPEND="${RDEPEND}
+       test? ( virtual/perl-Test-Simple )
+"
+PERL_RM_FILES=("t/pod.t" "t/pod_coverage.t")
+PATCHES=("${FILESDIR}/${PN}-0.14-encoding.patch")
diff --git a/dev-perl/XML-DOM-XPath/files/XML-DOM-XPath-0.14-encoding.patch b/dev-perl/XML-DOM-XPath/files/XML-DOM-XPath-0.14-encoding.patch
new file mode 100644 (file)
index 0000000..922f51a
--- /dev/null
@@ -0,0 +1,27 @@
+From 1b247ffafb3362b5a1c727f993c63818e827aa12 Mon Sep 17 00:00:00 2001
+From: Father Chrysostomos <sprout@cpan.org>
+Date: Thu, 14 Jul 2016 22:05:56 -0700
+Subject: Fix removal of encoding.pm in 5.25.3+
+
+Bug: https://rt.cpan.org/Ticket/Display.html?id=115098
+Bug: https://bugs.gentoo.org/623188
+---
+ t/test_non_ascii.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/test_non_ascii.t b/t/test_non_ascii.t
+index d8686f8..7aea5ee 100644
+--- a/t/test_non_ascii.t
++++ b/t/test_non_ascii.t
+@@ -7,7 +7,7 @@ use strict;
+ use Test::More tests => 10;
+ use XML::DOM::XPath;
+-use encoding 'utf8';
++use utf8;
+ my $display_warning=0;
+-- 
+2.16.2
+
index 368273ab63d173c7d16ad996735d29186e9bc452..39e5f4b723061970344e5a8c215935536e83ca4b 100644 (file)
   </maintainer>
   <upstream>
     <remote-id type="cpan">XML-DOM-XPath</remote-id>
-    <remote-id type="cpan-module">XML::DOM::Attr</remote-id>
-    <remote-id type="cpan-module">XML::DOM::Comment</remote-id>
-    <remote-id type="cpan-module">XML::DOM::Document</remote-id>
-    <remote-id type="cpan-module">XML::DOM::Element</remote-id>
     <remote-id type="cpan-module">XML::DOM::Namespace</remote-id>
-    <remote-id type="cpan-module">XML::DOM::Node</remote-id>
-    <remote-id type="cpan-module">XML::DOM::ProcessingInstruction</remote-id>
-    <remote-id type="cpan-module">XML::DOM::Text</remote-id>
     <remote-id type="cpan-module">XML::DOM::XPath</remote-id>
   </upstream>
 </pkgmetadata>