# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ WANT_AUTOCONF="2.5" WANT_AUTOMAKE="1.8" inherit eutils multilib autotools MY_PV=${PV/_/-} MY_P="FileZilla_${MY_PV}" DESCRIPTION="FTP client with lots of useful features and an intuitive interface" HOMEPAGE="http://filezilla-project.org/" SRC_URI="mirror://sourceforge/${PN}/${MY_P}_src.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" IUSE="" DEPEND=">=x11-libs/wxGTK-2.8.0 >=net-libs/gnutls-1.6.1 net-dns/libidn sys-devel/gettext >=sys-devel/libtool-1.4" S=${WORKDIR}/${PN}-${MY_PV} src_unpack() { unpack ${A} cd "${S}" # Tasks done by autogen.sh rm -rf config{,ure,.log,.status} aclocal.m4 autom4te.cache libtool find . -name "Makefile.in" | xargs rm -f find . -name "Makefile" | xargs rm -f mkdir -p config # Is naughty to run autogen.sh #AT_M4DIR=. #eaclocal #autoheader #libtoolize --automake -c -f #autoconf #automake-1.8 -a -c ./autogen.sh } src_compile() { econf \ --with-wx-config=/usr/$(get_libdir)/wx/config/gtk2-unicode-release-2.8 \ || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" doicon src/interface/resources/${PN}.xpm || die "doicon failed" make_desktop_entry ${PN} "FileZilla" ${PN}.xpm dodoc AUTHORS ChangeLog NEWS }