# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-ftp/gftp/gftp-2.0.17.ebuild,v 1.8 2004/11/02 19:43:24 corsair Exp $ DESCRIPTION="Gnome based FTP Client" SRC_URI="http://www.gftp.org/${PN}-2.0.18rc1.tar.bz2" HOMEPAGE="http://www.gftp.org" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~sparc ~amd64 ~ppc64" IUSE="nls gtk gtk2 ssl" S=${WORKDIR}/${PN}-2.0.18rc1 DEPEND="virtual/x11 ssl? ( dev-libs/openssl ) gtk? ( gtk2? ( >=x11-libs/gtk+-2 ) !gtk2? ( =x11-libs/gtk+-1.2* ) ) !gtk? ( sys-libs/readline sys-libs/ncurses =dev-libs/glib-1.2* )" #RDEPEND="nls? ( sys-devel/gettext )" src_compile() { local myconf use nls \ && myconf="--enable-nls" \ || myconf="--disable-nls" # do not use enable-{gtk20,gtkport} they are not recognized # and will disable building the gtkport alltogether if use gtk then einfo "gtk+ enabled" use gtk2 \ && einfo "gtk2 enabled" \ || myconf="${myconf} --disable-gtk20" else einfo "gtk+ and gtk2 disabled" myconf="${myconf} --disable-gtkport --disable-gtk20" fi use ssl \ && myconf="${myconf}" \ || myconf="${myconf} --disable-ssl" econf ${myconf} || die emake || die } src_install() { einstall || die dodoc COPYING ChangeLog README* THANKS \ TODO docs/USERS-GUIDE }