dev-perl/HTTP-Server-Simple-Mason: Fix build with Perl 5.26, bug 616984
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Thu, 29 Jun 2017 21:52:44 +0000 (23:52 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Thu, 29 Jun 2017 21:53:07 +0000 (23:53 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-perl/HTTP-Server-Simple-Mason/HTTP-Server-Simple-Mason-0.140.0-r1.ebuild

index dcad3f1a35e84acbb208cfbfa0434ecb6bf1f7e0..7fe36dbbefe75e5b82f91066f95e953c19b0fa8c 100644 (file)
@@ -1,10 +1,10 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
-MODULE_AUTHOR=JESSE
-MODULE_VERSION=0.14
+DIST_AUTHOR=JESSE
+DIST_VERSION=0.14
 inherit perl-module
 
 DESCRIPTION="An abstract baseclass for a standalone mason server"
@@ -13,11 +13,17 @@ SLOT="0"
 KEYWORDS="amd64 ~ppc x86"
 IUSE=""
 
-DEPEND="dev-perl/Hook-LexWrap
+RDEPEND="
+       dev-perl/Hook-LexWrap
        dev-perl/URI
        dev-perl/libwww-perl
-       >=dev-perl/HTML-Mason-1.25
-       >=dev-perl/HTTP-Server-Simple-0.04"
-RDEPEND="${DEPEND}"
+       >=dev-perl/HTML-Mason-1.250.0
+       >=dev-perl/HTTP-Server-Simple-0.40.0
+"
+DEPEND="${RDEPEND}"
 
-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
+}