From: Kent Fredric Date: Sun, 25 Jun 2017 09:37:32 +0000 (+1200) Subject: dev-perl/DBICx-TestDatabase: Fix for '.' in @INC re bug #615712 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4b1d4f9eb5de2a46584b94c611127b968aa58750;p=gentoo.git dev-perl/DBICx-TestDatabase: Fix for '.' in @INC re bug #615712 Generic Module::Install + 5.26 fix Bug: https://bugs.gentoo.org/615712 Package-Manager: Portage-2.3.6, Repoman-2.3.2 --- diff --git a/dev-perl/DBICx-TestDatabase/DBICx-TestDatabase-0.40.0.ebuild b/dev-perl/DBICx-TestDatabase/DBICx-TestDatabase-0.40.0.ebuild index f3433e222efd..fde967d26958 100644 --- a/dev-perl/DBICx-TestDatabase/DBICx-TestDatabase-0.40.0.ebuild +++ b/dev-perl/DBICx-TestDatabase/DBICx-TestDatabase-0.40.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -26,3 +26,9 @@ DEPEND="${RDEPEND} " SRC_TEST="do" + +src_prepare() { + sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL || + die "Can't patch Makefile.PL for 5.26 dot-in-inc" + perl-module_src_prepare +} diff --git a/dev-perl/DBICx-TestDatabase/DBICx-TestDatabase-0.50.0.ebuild b/dev-perl/DBICx-TestDatabase/DBICx-TestDatabase-0.50.0.ebuild index cf49bbea0257..1e043da5e0f4 100644 --- a/dev-perl/DBICx-TestDatabase/DBICx-TestDatabase-0.50.0.ebuild +++ b/dev-perl/DBICx-TestDatabase/DBICx-TestDatabase-0.50.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -25,3 +25,9 @@ DEPEND="${RDEPEND} ) " PERL_RM_FILES=("MYMETA.json" "MYMETA.yml") # https://rt.cpan.org/Ticket/Display.html?id=108141 + +src_prepare() { + sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL || + die "Can't patch Makefile.PL for 5.26 dot-in-inc" + perl-module_src_prepare +}