dev-perl/Perl-Tags: Add build fix for Perl 5.26, bug 623068
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 2 Jul 2017 15:15:36 +0000 (17:15 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 2 Jul 2017 15:15:36 +0000 (17:15 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-perl/Perl-Tags/Perl-Tags-0.320.0.ebuild

index 1d61451f05a76a59a08016e42c640c32a00d113a..2da9c6bbe839ecfa180672785705c04e4f5c228a 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
@@ -46,3 +46,9 @@ DEPEND="${RDEPEND}
 
 DIST_TEST=skip
 # the tests work in principle, but they mess up the terminal badly
+
+src_prepare() {
+       sed -i -e 's/use inc::Module::Install/use lib q[.]; use inc::Module::Install/' Makefile.PL ||
+               die "Can't patch Makefile.PL for 5.26 dot-in-inc"
+       perl-module_src_prepare
+}