net-mail/grepmail: Add build fix for Perl 5.26, bug 623580
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Thu, 6 Jul 2017 16:39:10 +0000 (18:39 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Thu, 6 Jul 2017 16:39:26 +0000 (18:39 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

net-mail/grepmail/grepmail-5.30.33-r2.ebuild

index 8944fb7b638433ebf2151986fb778b9af8a39d70..b029483a22417940c2ef2ddf7056a688179afb42 100644 (file)
@@ -1,7 +1,7 @@
-# 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
 
 inherit versionator perl-module
 
@@ -15,16 +15,29 @@ SRC_URI="mirror://sourceforge/grepmail/${MY_P}.tar.gz"
 SLOT="0"
 LICENSE="GPL-2"
 KEYWORDS="amd64 ppc x86"
-IUSE=""
+IUSE="test"
 
-RDEPEND="dev-perl/Inline
+RDEPEND="
+       dev-perl/Inline
        dev-perl/TimeDate
        dev-perl/Date-Manip
        virtual/perl-Digest-MD5
-       >=dev-perl/Mail-Mbox-MessageParser-1.40.01"
-DEPEND="${RDEPEND}"
+       >=dev-perl/Mail-Mbox-MessageParser-1.40.01
+"
+DEPEND="${RDEPEND}
+"
+#      test? ( dev-perl/Mail-Mbox-MessageParser )
 
 # 100% failure on running
-SRC_TEST="skip"
-PATCHES=( "${FILESDIR}"/5.30.33-fix_nonexistent_mailbox_test.patch
-       "${FILESDIR}"/5.30.33-midnight.patch )
+DIST_TEST="skip"
+
+PATCHES=(
+       "${FILESDIR}"/5.30.33-fix_nonexistent_mailbox_test.patch
+       "${FILESDIR}"/5.30.33-midnight.patch
+)
+
+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
+}