From: Kent Fredric Date: Mon, 19 Jun 2017 18:49:42 +0000 (+1200) Subject: dev-perl/Class-Autouse: Fix for '.' in @INC re bug #615124 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=441e9eeb93c4e5bd1e96a12b698a63d637ebcd51;p=gentoo.git dev-perl/Class-Autouse: Fix for '.' in @INC re bug #615124 Generic Module::Install fix for 5.26 Bug: https://bugs.gentoo.org/615124 Package-Manager: Portage-2.3.6, Repoman-2.3.2 --- diff --git a/dev-perl/Class-Autouse/Class-Autouse-2.10.0-r1.ebuild b/dev-perl/Class-Autouse/Class-Autouse-2.10.0-r1.ebuild index 662e4e0d5131..2cc34c2170ce 100644 --- a/dev-perl/Class-Autouse/Class-Autouse-2.10.0-r1.ebuild +++ b/dev-perl/Class-Autouse/Class-Autouse-2.10.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -17,3 +17,9 @@ RDEPEND=">=virtual/perl-Scalar-List-Utils-1.18" DEPEND="${RDEPEND}" 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 +}