diff options
author | Kent Fredric <kentnl@gentoo.org> | 2017-10-18 09:45:44 +1300 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2017-10-18 10:58:28 +1300 |
commit | 8d1bf7cc250ee0b3a6b7f95cbc61f29649681420 (patch) | |
tree | c4d484a7ab7504cb66dc8297f76303dd734fc91c /dev-perl/Class-Container | |
parent | dev-tex/cjk-latex: QA fix DESCRIPTION.toolong (diff) | |
download | gentoo-8d1bf7cc250ee0b3a6b7f95cbc61f29649681420.tar.gz gentoo-8d1bf7cc250ee0b3a6b7f95cbc61f29649681420.tar.bz2 gentoo-8d1bf7cc250ee0b3a6b7f95cbc61f29649681420.zip |
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
Diffstat (limited to 'dev-perl/Class-Container')
-rw-r--r-- | dev-perl/Class-Container/Class-Container-0.120.0-r2.ebuild | 20 | ||||
-rw-r--r-- | dev-perl/Class-Container/files/Class-Container-0.120.0-dot-inc.patch | 40 |
2 files changed, 60 insertions, 0 deletions
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 000000000000..64447d02f6f2 --- /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 000000000000..6efc5c4eae11 --- /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 <kentnl@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 + |