Skip to content

Commit

Permalink
net-mail/grepmail: Add build fix for Perl 5.26, bug 623580
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.6, Repoman-2.3.2
  • Loading branch information
akhuettel committed Jul 6, 2017
1 parent 5265e08 commit c99f2ab
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions net-mail/grepmail/grepmail-5.30.33-r2.ebuild
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
}

0 comments on commit c99f2ab

Please sign in to comment.