summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentnl@gentoo.org>2017-12-20 19:53:30 +1300
committerKent Fredric <kentnl@gentoo.org>2017-12-20 21:18:39 +1300
commit0da0f8107fe144dce04248d5a39ca70bdc45a607 (patch)
tree2166899a80357fc6aec342165c42b9d153fb58c1 /dev-perl
parentdev-ada/gprbuild: remove /usr/share/gpr to the project dirs (diff)
downloadgentoo-0da0f8107fe144dce04248d5a39ca70bdc45a607.tar.gz
gentoo-0da0f8107fe144dce04248d5a39ca70bdc45a607.tar.bz2
gentoo-0da0f8107fe144dce04248d5a39ca70bdc45a607.zip
dev-perl/Ogg-Vorbis-Header-PurePerl: Fix test failure re bug #623060
- EAPI6 - Fix tests failing on newer perls - add USE=examples - Avoid installing ogginfo.pl by default Bug: https://bugs.gentoo.org/623060 Package-Manager: Portage-2.3.18, Repoman-2.3.6
Diffstat (limited to 'dev-perl')
-rw-r--r--dev-perl/Ogg-Vorbis-Header-PurePerl/Ogg-Vorbis-Header-PurePerl-1.0.0-r2.ebuild21
-rw-r--r--dev-perl/Ogg-Vorbis-Header-PurePerl/files/Ogg-Vorbis-Header-PurePerl-1.0-example-ogginfo.patch30
-rw-r--r--dev-perl/Ogg-Vorbis-Header-PurePerl/files/Ogg-Vorbis-Header-PurePerl-1.0-test-array-ref.patch38
3 files changed, 89 insertions, 0 deletions
diff --git a/dev-perl/Ogg-Vorbis-Header-PurePerl/Ogg-Vorbis-Header-PurePerl-1.0.0-r2.ebuild b/dev-perl/Ogg-Vorbis-Header-PurePerl/Ogg-Vorbis-Header-PurePerl-1.0.0-r2.ebuild
new file mode 100644
index 000000000000..86f4b574f50b
--- /dev/null
+++ b/dev-perl/Ogg-Vorbis-Header-PurePerl/Ogg-Vorbis-Header-PurePerl-1.0.0-r2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=DANIEL
+DIST_VERSION=1.0
+DIST_EXAMPLES=( "examples/*" )
+inherit perl-module
+
+DESCRIPTION="Object-oriented interface to Ogg Vorbis information and comment fields"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.0-test-array-ref.patch"
+ "${FILESDIR}/${PN}-1.0-example-ogginfo.patch"
+)
diff --git a/dev-perl/Ogg-Vorbis-Header-PurePerl/files/Ogg-Vorbis-Header-PurePerl-1.0-example-ogginfo.patch b/dev-perl/Ogg-Vorbis-Header-PurePerl/files/Ogg-Vorbis-Header-PurePerl-1.0-example-ogginfo.patch
new file mode 100644
index 000000000000..c7517a5fa1db
--- /dev/null
+++ b/dev-perl/Ogg-Vorbis-Header-PurePerl/files/Ogg-Vorbis-Header-PurePerl-1.0-example-ogginfo.patch
@@ -0,0 +1,30 @@
+From 51fb5b08f1a5a12d1de0c87921c0eb9f1fad6aa5 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Wed, 20 Dec 2017 19:46:31 +1300
+Subject: Move ogginfo.pl to examples, not standard install
+
+---
+ MANIFEST | 2 +-
+ ogginfo.pl => examples/ogginfo.pl | 0
+ 2 files changed, 1 insertion(+), 1 deletion(-)
+ rename ogginfo.pl => examples/ogginfo.pl (100%)
+
+diff --git a/MANIFEST b/MANIFEST
+index f2d38fe..b87398a 100644
+--- a/MANIFEST
++++ b/MANIFEST
+@@ -5,6 +5,6 @@ PurePerl.pm
+ README
+ test.pl
+ test.ogg
+-ogginfo.pl
++examples/ogginfo.pl
+ LICENSE.GPL
+ META.yml Module meta-data (added by MakeMaker)
+diff --git a/ogginfo.pl b/examples/ogginfo.pl
+similarity index 100%
+rename from ogginfo.pl
+rename to examples/ogginfo.pl
+--
+2.15.1
+
diff --git a/dev-perl/Ogg-Vorbis-Header-PurePerl/files/Ogg-Vorbis-Header-PurePerl-1.0-test-array-ref.patch b/dev-perl/Ogg-Vorbis-Header-PurePerl/files/Ogg-Vorbis-Header-PurePerl-1.0-test-array-ref.patch
new file mode 100644
index 000000000000..637def07f70f
--- /dev/null
+++ b/dev-perl/Ogg-Vorbis-Header-PurePerl/files/Ogg-Vorbis-Header-PurePerl-1.0-test-array-ref.patch
@@ -0,0 +1,38 @@
+From e7c90043efe460ce33d980482b383ef095576247 Mon Sep 17 00:00:00 2001
+From: James E Keenan <jkeenan@cpan.org>
+Date: Mon, 6 Apr 2015 21:44:12 -0400
+Subject: Eliminate deprecated use of array as reference
+
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=96578
+Bug: https://bugs.gentoo.org/623060
+---
+ test.pl | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/test.pl b/test.pl
+index 365bef9..867e05e 100755
+--- a/test.pl
++++ b/test.pl
+@@ -19,16 +19,16 @@ ok(my $ogg = Ogg::Vorbis::Header::PurePerl->new('test.ogg'));
+ # Try all the routines
+ ok($ogg->info->{'rate'} == 44100);
+ ok($ogg->comment_tags);
+-ok(@{$ogg->comment('artist')}->[0] == 'maloi');
++ok($ogg->comment('artist')->[0] == 'maloi');
+
+ $ogg = 0;
+
+ # See if full load works
+ ok(my $ogg = Ogg::Vorbis::Header::PurePerl->new('test.ogg'));
+-ok(@{$ogg->comment('artist')}->[0] == 'maloi');
++ok($ogg->comment('artist')->[0] == 'maloi');
+
+ # and see if we can get comments including the '=' character
+-ok(@{$ogg->comment('album')}->[0] == 'this=that');
++ok($ogg->comment('album')->[0] == 'this=that');
+
+ # Make sure we're getting the right track length
+ ok($ogg->info->{'length'} == 0);
+--
+2.15.1
+