dev-perl/Text-FindIndent: Add build fix for Perl 5.26, bug 623138
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 2 Jul 2017 22:54:28 +0000 (00:54 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 2 Jul 2017 22:54:28 +0000 (00:54 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-perl/Text-FindIndent/Text-FindIndent-0.110.0.ebuild

index 6776d35a7a18aa412aea0718a54a9365cf22fce3..2c24f3f759d25faeafc774742b9a82fb7aacff4a 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
@@ -16,4 +16,11 @@ IUSE="test"
 RDEPEND=""
 DEPEND="${RDEPEND}
        >=virtual/perl-ExtUtils-MakeMaker-6.360.0
-       test? ( >=virtual/perl-Test-Simple-0.800.0 )"
+       test? ( >=virtual/perl-Test-Simple-0.800.0 )
+"
+
+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
+}