# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A dutch binary newsgroup post announce program." HOMEPAGE="http://www.ftd4linux.nl" SRC_URI="http://www.ftd4linux.nl/releases/ftd-${PV}.tar.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="firefox" DEPEND=">=sys-libs/zlib-1.1.4 >=sys-libs/glibc-2.2.0 >=x11-libs/gtk+-2.4.0 >=dev-libs/libxml2-2.2.5 >=dev-libs/libxslt-1.0.5 dev-libs/openssl >=net-misc/curl-7.10.6 firefox? ( www-client/mozilla-firefox ) !firefox? ( www-client/mozilla )" src_compile() { econf || die "econf failed" emake || die "emake failed" } src_install() { make install \ FTD_DATA_DIR=${D}usr/share/ftd \ prefix=${D}usr || die exeinto /usr/bin doexe $FILESDIR/ftd dodoc README TODO COPYING NEWS TODO ChangeLog GENERIC_PLUGIN_TEST=`grep 'INSTALL_GENERIC_PLUGIN_TRUE = #' ${S}/Makefile` } pkg_postinst() { if [ "$GENERIC_PLUGIN_TEST" ]; then ewarn ewarn "The generic auth plugin doesn't work for you." ewarn "You have to download the correct auth plugin from" ewarn $HOMEPAGE ewarn fi }