summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2017-07-06 18:39:10 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2017-07-06 18:39:26 +0200
commitc99f2ab9a9656719032f10a3b43bfb7cf0f041c9 (patch)
tree6fff69459105a095f217ae87346f91b838e543f8 /net-mail
parentnet-vpn/wireguard: bump (diff)
downloadgentoo-c99f2ab9a9656719032f10a3b43bfb7cf0f041c9.tar.gz
gentoo-c99f2ab9a9656719032f10a3b43bfb7cf0f041c9.tar.bz2
gentoo-c99f2ab9a9656719032f10a3b43bfb7cf0f041c9.zip
net-mail/grepmail: Add build fix for Perl 5.26, bug 623580
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/grepmail/grepmail-5.30.33-r2.ebuild31
1 files changed, 22 insertions, 9 deletions
diff --git a/net-mail/grepmail/grepmail-5.30.33-r2.ebuild b/net-mail/grepmail/grepmail-5.30.33-r2.ebuild
index 8944fb7b6384..b029483a2241 100644
--- a/net-mail/grepmail/grepmail-5.30.33-r2.ebuild
+++ b/net-mail/grepmail/grepmail-5.30.33-r2.ebuild
@@ -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
+}