diff options
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/metamail/ChangeLog | 11 | ||||
-rw-r--r-- | net-mail/metamail/metamail-2.7.53.3-r1.ebuild | 65 |
2 files changed, 73 insertions, 3 deletions
diff --git a/net-mail/metamail/ChangeLog b/net-mail/metamail/ChangeLog index e1d31872d071..636118f1cd6c 100644 --- a/net-mail/metamail/ChangeLog +++ b/net-mail/metamail/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-mail/metamail -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/metamail/ChangeLog,v 1.46 2011/12/19 20:33:25 eras Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/metamail/ChangeLog,v 1.47 2012/08/07 12:13:30 eras Exp $ + +*metamail-2.7.53.3-r1 (07 Aug 2012) + + 07 Aug 2012; Eray Aslan <eras@gentoo.org> +metamail-2.7.53.3-r1.ebuild: + Add blocker to run-mailcap - bug #251181. Respect CFLAGS - bug #427380. Fix QA + warnings 19 Dec 2011; Eray Aslan <eras@gentoo.org> -metamail-2.7.45.3-r1.ebuild: remove old @@ -170,4 +176,3 @@ Initial checkin of this package. Ebuild originally created by Alexander Holler <holler@ahsoftware.de> - diff --git a/net-mail/metamail/metamail-2.7.53.3-r1.ebuild b/net-mail/metamail/metamail-2.7.53.3-r1.ebuild new file mode 100644 index 000000000000..a510815fd256 --- /dev/null +++ b/net-mail/metamail/metamail-2.7.53.3-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/metamail/metamail-2.7.53.3-r1.ebuild,v 1.1 2012/08/07 12:13:30 eras Exp $ + +EAPI=4 + +WANT_AUTOCONF="2.5" + +inherit eutils versionator autotools + +MY_PV=$(get_version_component_range 1-2) +DEB_PV=${MY_PV}-$(get_version_component_range 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() { + epatch "${WORKDIR}"/metamail_${DEB_PV}.diff + epatch "${FILESDIR}"/${PN}-2.7.45.3-CVE-2006-0709.patch + epatch "${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 + + 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 + doman man/* debian/mimencode.1 debian/mimeit.1 + + use static-libs || find "${D}"/usr/lib* -name '*.la' -delete +} |