# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/mail-client/elmo/elmo-1.3.2-r2.ebuild,v 1.5 2005/10/03 12:09:00 ticho Exp $ inherit eutils IUSE="crypt nls ssl" DESCRIPTION="Elmo: console email client" HOMEPAGE="http://elmo.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="alpha ~ppc x86" SLOT="0" RDEPEND="ssl? ( dev-libs/openssl ) nls? ( sys-devel/gettext ) crypt? ( >=app-crypt/gpgme-0.9.0 )" src_compile() { local myconf epatch ${FILESDIR}/configure.in.patch || die "epatch failed" epatch ${FILESDIR}/${P}-stats.patch || die "epatch failed" ebegin "Rebuilding configure" autoconf || die "autoconf failed" eend $? use ssl && myconf="--with-openssl=/usr" econf ${myconf} \ $(use_enable nls) \ $(use_with crypt gpgme) || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die "make install failed" dodoc ABOUT-NLS ADVOCACY AUTHORS BUGS ChangeLog NEWS THANKS TODO cd doc dodoc README.txt sample.{,pl.}elmorc tutorial{,.gpg} } pkg_postinst() { einfo "If you compiled elmo with GCC 3.4 and experience run-time problems, please" einfo "consider recompiling with GCC 3.3." }