commit: c99f2ab9a9656719032f10a3b43bfb7cf0f041c9 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> AuthorDate: Thu Jul 6 16:39:10 2017 +0000 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> CommitDate: Thu Jul 6 16:39:26 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c99f2ab9
net-mail/grepmail: Add build fix for Perl 5.26, bug 623580 Package-Manager: Portage-2.3.6, Repoman-2.3.2 net-mail/grepmail/grepmail-5.30.33-r2.ebuild | 31 ++++++++++++++++++++-------- 1 file 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 8944fb7b638..b029483a224 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 +}