summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2018-05-31 10:38:41 +0300
committerEray Aslan <eras@gentoo.org>2018-05-31 10:38:41 +0300
commit2f3809ed22feddfee4d5bffd368ad9cdbe684ab6 (patch)
tree8bbd795712209f9c504228d47206b089194579c8 /net-mail/metamail/metamail-2.7.53.3-r2.ebuild
parentnet-proxy/shadowsocks-libev: version bump 3.2.0 (diff)
downloadgentoo-2f3809ed22feddfee4d5bffd368ad9cdbe684ab6.tar.gz
gentoo-2f3809ed22feddfee4d5bffd368ad9cdbe684ab6.tar.bz2
gentoo-2f3809ed22feddfee4d5bffd368ad9cdbe684ab6.zip
net-mail/metamail: mailcap provides the mailcap.5 now
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'net-mail/metamail/metamail-2.7.53.3-r2.ebuild')
-rw-r--r--net-mail/metamail/metamail-2.7.53.3-r2.ebuild69
1 files changed, 69 insertions, 0 deletions
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 000000000000..84c02dac00bf
--- /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 <string.h>' \
+ "${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
+}