From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 36E8B138330 for ; Thu, 31 May 2018 07:48:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25E4EE08F1; Thu, 31 May 2018 07:48:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EC7F3E08F1 for ; Thu, 31 May 2018 07:48:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 80A44335C51 for ; Thu, 31 May 2018 07:48:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D1518287 for ; Thu, 31 May 2018 07:48:31 +0000 (UTC) From: "Eray Aslan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Eray Aslan" Message-ID: <1527752321.2f3809ed22feddfee4d5bffd368ad9cdbe684ab6.eras@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/metamail/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-mail/metamail/metamail-2.7.53.3-r2.ebuild X-VCS-Directories: net-mail/metamail/ X-VCS-Committer: eras X-VCS-Committer-Name: Eray Aslan X-VCS-Revision: 2f3809ed22feddfee4d5bffd368ad9cdbe684ab6 X-VCS-Branch: master Date: Thu, 31 May 2018 07:48:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6bcd5ef8-b9a2-42a2-88c3-34ce00b78692 X-Archives-Hash: 8c6ec5f31c027faa0589eadb523e10f1 commit: 2f3809ed22feddfee4d5bffd368ad9cdbe684ab6 Author: Eray Aslan gentoo org> AuthorDate: Thu May 31 07:38:41 2018 +0000 Commit: Eray Aslan gentoo org> CommitDate: Thu May 31 07:38:41 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f3809ed net-mail/metamail: mailcap provides the mailcap.5 now Package-Manager: Portage-2.3.40, Repoman-2.3.9 net-mail/metamail/metamail-2.7.53.3-r2.ebuild | 69 +++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/net-mail/metamail/metamail-2.7.53.3-r2.ebuild b/net-mail/metamail/metamail-2.7.53.3-r2.ebuild new file mode 100644 index 00000000000..84c02dac00b --- /dev/null +++ b/net-mail/metamail/metamail-2.7.53.3-r2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools toolchain-funcs + +MY_PV=$(ver_cut 1-2) +DEB_PV=${MY_PV}-$(ver_cut 3) + +DESCRIPTION="Metamail (with Debian patches) - Generic MIME package" +HOMEPAGE="http://ftp.funet.fi/pub/unix/mail/metamail/" +SRC_URI="http://ftp.funet.fi/pub/unix/mail/metamail/mm${MY_PV}.tar.Z + mirror://debian/pool/main/m/metamail/metamail_${DEB_PV}.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="static-libs" + +DEPEND="sys-libs/ncurses + app-arch/sharutils + net-mail/mailbase" +RDEPEND="app-misc/mime-types + sys-apps/debianutils + !app-misc/run-mailcap" + +S=${WORKDIR}/mm${MY_PV}/src + +src_prepare() { + eapply "${WORKDIR}"/metamail_${DEB_PV}.diff + eapply "${FILESDIR}"/${PN}-2.7.45.3-CVE-2006-0709.patch + eapply "${FILESDIR}"/${P}-glibc-2.10.patch + + # respect CFLAGS + sed -i -e 's/CFLAGS/LIBS/' \ + "${S}"/src/{metamail,richmail}/Makefile.am || die + + # add missing include - QA + sed -i -e '/config.h/a #include ' \ + "${S}"/src/metamail/shared.c || die + + # Fix building with ncurses[tinfo] + sed -i -e "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" \ + src/richmail/Makefile.am \ + src/metamail/Makefile.am || die + + eapply_user + eautoreconf + chmod +x "${S}"/configure +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_compile() { + emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" +} + +src_install () { + emake DESTDIR="${D}" install + dodoc CREDITS README + rm man/mmencode.1 + rm man/mailcap.5 + doman man/* debian/mimencode.1 debian/mimeit.1 + + use static-libs || find "${D}"/usr/lib* -name '*.la' -delete +}