dev-perl/Starlet: Fix compile failure without '.' in @INC
authorKent Fredric <kentnl@gentoo.org>
Tue, 26 Sep 2017 17:19:28 +0000 (06:19 +1300)
committerKent Fredric <kentnl@gentoo.org>
Tue, 26 Sep 2017 17:19:57 +0000 (06:19 +1300)
Somehow missed in my exessive testing, likely due to having
Module::Install accidentally installed somehow

Package-Manager: Portage-2.3.8, Repoman-2.3.3

dev-perl/Starlet/Starlet-0.290.0.ebuild
dev-perl/Starlet/Starlet-0.310.0.ebuild

index c0fce8f8c9c42fee7db2c5bc691ef38871aceddb..6b73510dbddf9ac2853be3fa65732f515b48cf6f 100644 (file)
@@ -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
@@ -27,3 +27,8 @@ DEPEND="${RDEPEND}
                >=virtual/perl-Test-Simple-0.880.0
        )
 "
+src_prepare() {
+       sed -i -e 's/use inc::Module::Install/use lib q[.];\n use inc::Module::Install/' Makefile.PL ||
+               die "Can't patch Makefile.PL for 5.26 dot-in-inc"
+       perl-module_src_prepare
+}
index 5ae305f339cd18eb54bd0729a42c286d33f609fb..3739422ddc635d9501c261bd22159c2e49e07372 100644 (file)
@@ -27,3 +27,8 @@ DEPEND="${RDEPEND}
                >=virtual/perl-Test-Simple-0.880.0
        )
 "
+src_prepare() {
+       sed -i -e 's/use inc::Module::Install/use lib q[.];\n use inc::Module::Install/' Makefile.PL ||
+               die "Can't patch Makefile.PL for 5.26 dot-in-inc"
+       perl-module_src_prepare
+}