diff options
author | Kent Fredric <kentnl@gentoo.org> | 2018-03-29 16:48:08 +1300 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2018-03-29 16:49:21 +1300 |
commit | 6d4c22ce3c0dc6872575a755ef66632279a52bf4 (patch) | |
tree | 390c5b383a9189f004df04417ff828df90370bd5 /dev-perl/XML-Grove | |
parent | net-misc/memcached: 1.5.7 bup (diff) | |
download | gentoo-6d4c22ce3c0dc6872575a755ef66632279a52bf4.tar.gz gentoo-6d4c22ce3c0dc6872575a755ef66632279a52bf4.tar.bz2 gentoo-6d4c22ce3c0dc6872575a755ef66632279a52bf4.zip |
dev-perl/XML-Grove: EAPI6, Tests, Normalize Version
- EAPI6ify
- Normalize version
- Enable tests
- Fix bad internal version
- Fix test suite broken since perl 5.8.0
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-perl/XML-Grove')
-rw-r--r-- | dev-perl/XML-Grove/XML-Grove-0.460.0_rc.ebuild | 20 | ||||
-rw-r--r-- | dev-perl/XML-Grove/files/XML-Grove-0.46-badversion.patch | 26 | ||||
-rw-r--r-- | dev-perl/XML-Grove/files/XML-Grove-0.46-utf8tests.patch | 25 |
3 files changed, 71 insertions, 0 deletions
diff --git a/dev-perl/XML-Grove/XML-Grove-0.460.0_rc.ebuild b/dev-perl/XML-Grove/XML-Grove-0.460.0_rc.ebuild new file mode 100644 index 000000000000..2f1295d5ff84 --- /dev/null +++ b/dev-perl/XML-Grove/XML-Grove-0.460.0_rc.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +DIST_AUTHOR=KMACLEOD +DIST_VERSION=0.46alpha +inherit perl-module + +DESCRIPTION="A Perl module providing a simple API to parsed XML instances" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND=">=dev-perl/XML-Parser-2.190.0" +DEPEND="${RDEPEND}" +PATCHES=( + "${FILESDIR}/${PN}-0.46-badversion.patch" + "${FILESDIR}/${PN}-0.46-utf8tests.patch" +) diff --git a/dev-perl/XML-Grove/files/XML-Grove-0.46-badversion.patch b/dev-perl/XML-Grove/files/XML-Grove-0.46-badversion.patch new file mode 100644 index 000000000000..b284efb0163a --- /dev/null +++ b/dev-perl/XML-Grove/files/XML-Grove-0.46-badversion.patch @@ -0,0 +1,26 @@ +From ecb3a0b2ffff542179edf844a35fa9a875c188ed Mon Sep 17 00:00:00 2001 +From: Kent Fredric <kentnl@gentoo.org> +Date: Thu, 29 Mar 2018 16:17:47 +1300 +Subject: Fix nonsense version + +--- + lib/XML/Grove.pm | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/lib/XML/Grove.pm b/lib/XML/Grove.pm +index 3dfcf5c..2cbcd33 100644 +--- a/lib/XML/Grove.pm ++++ b/lib/XML/Grove.pm +@@ -14,7 +14,8 @@ use Data::Grove; + package XML::Grove; + use vars qw{$VERSION @ISA}; + +-$VERSION = '0.46alpha'; ++$VERSION = '0.46_00'; ++$VERSION =~ tr/_//d; + + @ISA = qw{Data::Grove}; + +-- +2.16.2 + diff --git a/dev-perl/XML-Grove/files/XML-Grove-0.46-utf8tests.patch b/dev-perl/XML-Grove/files/XML-Grove-0.46-utf8tests.patch new file mode 100644 index 000000000000..bb54dc052ade --- /dev/null +++ b/dev-perl/XML-Grove/files/XML-Grove-0.46-utf8tests.patch @@ -0,0 +1,25 @@ +From f4ef80f143ba18c7b5894fc10fb1a939e317208f Mon Sep 17 00:00:00 2001 +From: Kent Fredric <kentnl@gentoo.org> +Date: Thu, 29 Mar 2018 16:33:28 +1300 +Subject: Fix tests failing due to encoding differences + +Bug: https://rt.cpan.org/Ticket/Display.html?id=69723 +--- + t/grove.t | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/t/grove.t b/t/grove.t +index a1ab816..dce4f32 100644 +--- a/t/grove.t ++++ b/t/grove.t +@@ -8,6 +8,7 @@ + + BEGIN { $| = 1; print "1..5\n"; } + END {print "not ok 1\n" unless $loaded;} ++use utf8; + use XML::Grove; + use XML::Parser::PerlSAX; + use XML::Grove::Builder; +-- +2.16.2 + |