dev-perl/MooseX-Types-DateTime-ButMaintained: Add build fix for Perl 5.26, bug 617142
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Fri, 30 Jun 2017 23:32:31 +0000 (01:32 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Fri, 30 Jun 2017 23:32:31 +0000 (01:32 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-perl/MooseX-Types-DateTime-ButMaintained/MooseX-Types-DateTime-ButMaintained-0.160.0.ebuild

index de1ef9c29358c383c5be6e68f8b9e5bd9458fb2a..ee7bef5ed59992b3f997398427bd1db5056f122b 100644 (file)
@@ -1,10 +1,10 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
-MODULE_AUTHOR=ECARROLL
-MODULE_VERSION=0.16
+DIST_AUTHOR=ECARROLL
+DIST_VERSION=0.16
 inherit perl-module
 
 DESCRIPTION="DateTime related constraints and coercions for Moose"
@@ -31,6 +31,11 @@ DEPEND="${RDEPEND}
                >=dev-perl/Test-Exception-0.27
                >=virtual/perl-Test-Simple-1.1.10
                >=dev-perl/Time-Duration-Parse-0.06
-       )"
+       )
+"
 
-SRC_TEST=do
+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
+}