# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/mail-client/mailtc/mailtc-1.3.5.ebuild,v 1.1 2005/09/11 19:59:32 pyrania Exp $ inherit autotools eutils DESCRIPTION="mailtc, a lightweight mail checker for the system tray" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" HOMEPAGE="http://mailtc.sourceforge.net/" IUSE="debug imap minimal nls pop ssl" SLOT="0" KEYWORDS="~x86 ~amd64" LICENSE="GPL-2" COMMON_DEPEND=">=x11-libs/gtk+-2.4 nls? ( sys-devel/gettext ) ssl? ( >=dev-libs/openssl-0.9.7 )" DEPEND="${COMMON_DEPEND}" RDEPEND="${COMMON_DEPEND}" src_compile() { local myconf use debug && myconf="${myconf} --enable-debug" if use minimal ; then myconf="${myconf} --disable-imap --enable-minimal" else use imap || myconf="${myconf} --disable-imap" fi use minimal && myconf="${myconf} --enable-minimal" use nls || myconf="${myconf} --disable-nls" use pop || myconf="${myconf} --disable-pop" use ssl || myconf="${myconf} --disable-ssl" econf ${myconf} || die "econf failed" emake || die "emake failed." } src_install () { make install DESTDIR=${D} || die "install failed" dodoc AUTHORS README COPYING ChangeLog INSTALL TODO }