diff options
Diffstat (limited to 'net-mail/freepops/freepops-0.0.98-r1.ebuild')
-rw-r--r-- | net-mail/freepops/freepops-0.0.98-r1.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/net-mail/freepops/freepops-0.0.98-r1.ebuild b/net-mail/freepops/freepops-0.0.98-r1.ebuild new file mode 100644 index 000000000000..15edfb06bcfa --- /dev/null +++ b/net-mail/freepops/freepops-0.0.98-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/freepops/freepops-0.0.98-r1.ebuild,v 1.1 2006/06/04 14:46:42 dragonheart Exp $ + +inherit eutils + +DESCRIPTION="WebMail->POP3 converter and more" +HOMEPAGE="http://freepops.sourceforge.net/" +SRC_URI="mirror://sourceforge/freepops/${P}.tar.gz + mirror://gentoo/${PF}-luaupdates.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="gnutls" + +RDEPEND=">=net-misc/curl-7.10.8 + gnutls? ( net-libs/gnutls ) + !gnutls? ( dev-libs/openssl ) + dev-lang/lua" +#DEPEND="${RDEPEND} +# doc? ( +# >=app-doc/doxygen-1.3 +# app-text/tetex +# virtual/ghostscript +# )" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PN}-0.0.97-system-lua.patch" + epatch "${FILESDIR}/${P}-doc.patch" +} + +src_compile() { + # note fbsd and Darwin and osx targets exist here too + if use gnutls; then + ./configure.sh linux-gnutls || die "configure gnutls failed" + else + ./configure.sh linux || die "configure openssl failed" + fi + sed -i -e '/^WHERE=/s/=.*$/=\/usr\//' config + emake -j1 all || die "make failed" + # doc fails bug #133614. seems to require alteration of the freepopsd + # executable to fix + #if use doc ; then + # emake -j1 doc || die "make doc failed" + #fi +} + +src_install() { + make install DESTDIR="${D}" || die + dodoc AUTHORS README ChangeLog TODO \ + "${D}"/usr/share/doc/${PN}/* + rm -rf "${D}"/usr/share/doc/${PN} + #if use doc; then + # mv doc/manual/html-manual "${D}/usr/share/doc/${PF}" + #fi + + newinitd buildfactory/freePOPsd.initd freepopsd + newconfd buildfactory/freePOPsd.confd freepopsd +} |