dev-perl/Data-AMF: Fix for '.' in @INC re bug #615632
authorKent Fredric <kentnl@gentoo.org>
Sun, 25 Jun 2017 07:49:02 +0000 (19:49 +1200)
committerKent Fredric <kentnl@gentoo.org>
Sun, 25 Jun 2017 07:49:02 +0000 (19:49 +1200)
Module::Install + 5.26 fix

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

dev-perl/Data-AMF/Data-AMF-0.90.0-r1.ebuild

index 4e56ff4ae41b32cf22fb87018bb5acdea4f28fde..f1c1192fc62aa14b892449fe2c3f5e0e74738348 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=5
@@ -24,6 +24,8 @@ DEPEND="${RDEPEND}
 src_prepare() {
        sed -i '/^inc\/YAML.pm/d' MANIFEST || die
        rm inc/YAML.pm || die
+       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
 }