dev-perl/DBIx-Class-InflateColumn-IP: Fix for '.' in @INC re bug #615716
authorKent Fredric <kentnl@gentoo.org>
Sun, 25 Jun 2017 09:57:33 +0000 (21:57 +1200)
committerKent Fredric <kentnl@gentoo.org>
Sun, 25 Jun 2017 09:57:50 +0000 (21:57 +1200)
Generic Module::Install fix for Perl 5.26

Bug: https://bugs.gentoo.org/615716
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-perl/DBIx-Class-InflateColumn-IP/DBIx-Class-InflateColumn-IP-0.20.30.ebuild

index 97e8e8e66dffcb836b46a7d03145f1d8096f867f..86e6177d9c6e6bdfbdaf3d8586096cc9f3636e08 100644 (file)
@@ -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
@@ -18,3 +18,9 @@ RDEPEND="
        >=dev-perl/DBIx-Class-0.81.70
 "
 DEPEND="${RDEPEND}"
+
+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
+}