dev-perl/Class-Adapter: Fix for '.' in @INC re bug #615506
authorKent Fredric <kentnl@gentoo.org>
Sat, 24 Jun 2017 22:39:37 +0000 (10:39 +1200)
committerKent Fredric <kentnl@gentoo.org>
Sat, 24 Jun 2017 22:39:37 +0000 (10:39 +1200)
Generic Module::Install::DSL fix for 5.26

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

dev-perl/Class-Adapter/Class-Adapter-1.80.0-r1.ebuild

index 067c1d1f94c5b91336bcd4ab0eaf4a91249c7952..c7fa7698bf0b3508e2563097ba480dbb384bf6ed 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -19,3 +19,9 @@ DEPEND="${RDEPEND}
        test? ( virtual/perl-Test-Simple )"
 
 SRC_TEST=do
+
+src_prepare() {
+       sed -i -e 's/use inc::Module::Install::DSL /use lib q[.];\nuse inc::Module::Install::DSL /' Makefile.PL ||
+               die "Can't patch Makefile.PL for 5.26 dot-in-inc"
+       perl-module_src_prepare
+}