dev-perl/Text-Markdown: Add build fix for Perl 5.26, but 623124
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Mon, 3 Jul 2017 21:30:55 +0000 (23:30 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Mon, 3 Jul 2017 21:30:55 +0000 (23:30 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-perl/Text-Markdown/Text-Markdown-1.0.31-r1.ebuild

index 9596fb9a063e216e7a89489997a373a3ed99724c..9ae0ef4f3235a49099d792a98492db5effb30390 100644 (file)
@@ -1,10 +1,10 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
-MODULE_AUTHOR=BOBTFISH
-MODULE_VERSION=1.000031
+DIST_AUTHOR=BOBTFISH
+DIST_VERSION=1.000031
 inherit perl-module
 
 DESCRIPTION="Convert MultiMarkdown syntax to (X)HTML"
@@ -14,15 +14,25 @@ LICENSE="BSD"
 KEYWORDS="amd64 ~x86"
 IUSE="test"
 
-RDEPEND="virtual/perl-Digest-MD5
+RDEPEND="
+       virtual/perl-Digest-MD5
        virtual/perl-Getopt-Long
-       virtual/perl-Text-Balanced"
-
+       virtual/perl-Text-Balanced
+"
 DEPEND="${RDEPEND}
-       test? ( virtual/perl-Test-Simple
+       test? (
+               virtual/perl-Test-Simple
                dev-perl/Text-Diff
                dev-perl/List-MoreUtils
                dev-perl/Test-Differences
-               dev-perl/Test-Exception )"
-SRC_TEST=do
+               dev-perl/Test-Exception
+       )
+"
+
 mydoc="Readme.text"
+
+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
+}