commit:     8d1bf7cc250ee0b3a6b7f95cbc61f29649681420
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 17 20:45:44 2017 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Tue Oct 17 21:58:28 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d1bf7cc

dev-perl/Class-Container: EAPI6 + Tests

- EAPI6
- Enable tests
- Fix tests broken by '.' in @INC
- Fix DESCRIPTION

Package-Manager: Portage-2.3.8, Repoman-2.3.3

 .../Class-Container-0.120.0-r2.ebuild              | 20 +++++++++++
 .../files/Class-Container-0.120.0-dot-inc.patch    | 40 ++++++++++++++++++++++
 2 files changed, 60 insertions(+)

diff --git a/dev-perl/Class-Container/Class-Container-0.120.0-r2.ebuild 
b/dev-perl/Class-Container/Class-Container-0.120.0-r2.ebuild
new file mode 100644
index 00000000000..64447d02f6f
--- /dev/null
+++ b/dev-perl/Class-Container/Class-Container-0.120.0-r2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=KWILLIAMS
+DIST_VERSION=0.12
+inherit perl-module
+
+DESCRIPTION="Glue object frameworks together transparently"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND=">=dev-perl/Params-Validate-0.24-r1
+       >=virtual/perl-Scalar-List-Utils-1.08"
+DEPEND="${RDEPEND}
+       >=dev-perl/Module-Build-0.28"
+PATCHES=( "${FILESDIR}/${P}-dot-inc.patch" )

diff --git 
a/dev-perl/Class-Container/files/Class-Container-0.120.0-dot-inc.patch 
b/dev-perl/Class-Container/files/Class-Container-0.120.0-dot-inc.patch
new file mode 100644
index 00000000000..6efc5c4eae1
--- /dev/null
+++ b/dev-perl/Class-Container/files/Class-Container-0.120.0-dot-inc.patch
@@ -0,0 +1,40 @@
+From 430b1922a9eade34d61e7d962e34b68a167528c2 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <ken...@gentoo.org>
+Date: Wed, 18 Oct 2017 09:37:56 +1300
+Subject: Fix tests failing on Perl 5.26 w/o '.' in @INC
+
+Bug: https://rt.cpan.org/Ticket/Display.html?id=123312
+---
+ t/01-basic.t     | 2 +-
+ t/02-decorator.t | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/t/01-basic.t b/t/01-basic.t
+index 931073b..a458303 100644
+--- a/t/01-basic.t
++++ b/t/01-basic.t
+@@ -12,7 +12,7 @@ use Test;
+ use Class::Container;
+ use Params::Validate qw(:types);
+ use File::Spec;
+-require File::Spec->catfile('t', 'classes.pl');
++require File::Spec->rel2abs(File::Spec->catfile('t', 'classes.pl'));
+ 
+ my $HAVE_WEAKEN = 0 + exists $INC{'Scalar/Util.pm'};
+ 
+diff --git a/t/02-decorator.t b/t/02-decorator.t
+index ea75057..0e2ca83 100644
+--- a/t/02-decorator.t
++++ b/t/02-decorator.t
+@@ -6,7 +6,7 @@ BEGIN { plan tests => 24 }
+ use Class::Container;
+ use Params::Validate qw(:types);
+ use File::Spec;
+-require File::Spec->catfile('t', 'classes.pl');
++require File::Spec->rel2abs(File::Spec->catfile('t', 'classes.pl'));
+ 
+ 
+ 
+-- 
+2.14.2
+

Reply via email to