diff options
Diffstat (limited to 'net-mail/fdm/fdm-1.6.ebuild')
-rw-r--r-- | net-mail/fdm/fdm-1.6.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/net-mail/fdm/fdm-1.6.ebuild b/net-mail/fdm/fdm-1.6.ebuild new file mode 100644 index 000000000000..b535edf9025d --- /dev/null +++ b/net-mail/fdm/fdm-1.6.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/fdm/fdm-1.6.ebuild,v 1.1 2010/09/05 22:50:26 xmw Exp $ + +EAPI=2 + +inherit eutils toolchain-funcs + +DESCRIPTION="fetch, filter and deliver mail" +HOMEPAGE="http://fdm.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="courierauth examples pcre" + +DEPEND="dev-libs/openssl + sys-libs/tdb + courierauth? ( net-libs/courier-authlib ) + pcre? ( dev-libs/libpcre )" +RDEPEND="${DEPEND}" + +pkg_setup() { + enewuser _fdm +} + +src_prepare() { + rm Makefile || die + epatch "${FILESDIR}"/${P}-GNUmakefile.patch +} + +src_compile() { + emake CC="$(tc-getCC)" \ + COURIER=$(use courierauth && echo 1) \ + PCRE=$(use pcre && echo 1) || die +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install || die + dodoc CHANGES MANUAL README TODO || die + if use examples ; then + docinto examples + dodoc examples/* || die + fi +} |