1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 inherit autotools eutils flag-o-matic multilib wxwidgets
12 MY_P="FileZilla_${MY_PV}"
14 DESCRIPTION="FTP client with lots of useful features and an intuitive interface"
15 HOMEPAGE="http://filezilla-project.org/"
16 SRC_URI="mirror://sourceforge/${PN}/${MY_P}_src.tar.bz2"
20 KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
21 IUSE="aqua dbus nls test"
23 RDEPEND=">=app-eselect/eselect-wxwidgets-0.7-r1
26 >=net-libs/gnutls-3.1.12
27 aqua? ( >=x11-libs/wxGTK-3.0.2.0-r1:3.0[aqua] )
28 !aqua? ( >=x11-libs/wxGTK-3.0.2.0-r1:3.0[X] x11-misc/xdg-utils )
29 dbus? ( sys-apps/dbus )"
30 # >=dev-libs/pugixml-1.5
33 >=sys-devel/libtool-1.4
34 nls? ( >=sys-devel/gettext-0.11 )
35 test? ( dev-util/cppunit )"
37 S="${WORKDIR}"/${PN}-${MY_PV}
40 if [[ ${MERGE_TYPE} != binary ]]; then
41 if ! test-flag-CXX -std=c++14; then
42 eerror "${P} requires C++14-capable C++ compiler. Your current compiler"
43 eerror "does not seem to support -std=c++14 option. Please upgrade your compiler"
44 eerror "to gcc-4.9 or an equivalent version supporting C++14."
45 die "Currently active compiler does not support -std=c++14"
51 epatch "${FILESDIR}"/${PN}-3.10.2-debug.patch
56 # system pugixml lacks long long ops support, use builtin for now
57 econf $(use_with dbus) $(use_enable nls locales) \
58 --with-pugixml=builtin \
59 --disable-autoupdatecheck
63 emake DESTDIR="${D}" install
65 doicon src/interface/resources/48x48/${PN}.png
67 dodoc AUTHORS ChangeLog NEWS
70 cat > "${T}/${PN}" <<-EOF || die
72 open "${EPREFIX}"/Applications/FileZilla.app
74 rm "${ED}/usr/bin/${PN}" || die
77 doins -r "${S}"/FileZilla.app