dev-perl/Test-SubCalls: Fix Perl 5.26 dot-in-inc as recommended by upstream. Bug 615696.

Package-Manager: Portage-2.3.6, Repoman-2.3.2
This commit is contained in:
Andreas K. Hüttel
2017-06-17 01:03:38 +02:00
parent 944bf0f5f0
commit 3fbc2fc8a2
2 changed files with 11 additions and 10 deletions

View File

@@ -1,10 +1,10 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
EAPI=6
MODULE_AUTHOR=ADAMK
MODULE_VERSION=1.09
DIST_AUTHOR=ADAMK
DIST_VERSION=1.09
inherit perl-module
DESCRIPTION="Track the number of times subs are called"
@@ -17,10 +17,4 @@ DEPEND=">=dev-perl/Hook-LexWrap-0.20
virtual/perl-File-Spec"
RDEPEND="${DEPEND}"
SRC_TEST="do"
src_prepare() {
sed -i -e 's/use inc::Module::Install::DSL /use lib q[.]; use inc::Module::Install::DSL /' Makefile.PL ||
die "Can't patch Makefile.PL for 5.26 dot-in-inc"
perl-module_src_prepare
}
PATCHES=( "${FILESDIR}/${P}"-dot.patch )

View File

@@ -0,0 +1,7 @@
--- a/Makefile.PL 2017-03-31 09:05:12.495038191 -0400
+++ b/Makefile.PL 2017-03-31 09:05:22.634214621 -0400
@@ -1,3 +1,4 @@
+use lib '.';
use inc::Module::Install::DSL 0.83;
all_from lib/Test/SubCalls.pm