1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils libtool
8 DESCRIPTION="A sophisticated ftp/sftp/http/https/torrent client and file transfer program"
9 HOMEPAGE="http://lftp.yar.ru/"
10 SRC_URI="${HOMEPAGE}ftp/${P}.tar.xz"
14 KEYWORDS="alpha amd64 arm ~arm64 hppa ~ia64 ~mips ~ppc ppc64 ~s390 ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
16 IUSE="convert-mozilla-cookies +gnutls idn ipv6 nls openssl socks5 +ssl verify-file"
17 LFTP_LINGUAS=( cs de es fr it ja ko pl pt_BR ru uk zh_CN zh_HK zh_TW )
18 IUSE+=" ${LFTP_LINGUAS[@]/#/linguas_}"
21 ssl? ( ^^ ( openssl gnutls ) )
25 >=sys-libs/ncurses-5.1:=
26 >=sys-libs/readline-5.1:=
29 convert-mozilla-cookies? ( dev-perl/DBI )
30 idn? ( net-dns/libidn )
32 >=net-proxy/dante-1.1.12
36 gnutls? ( >=net-libs/gnutls-1.2.3 )
37 openssl? ( dev-libs/openssl:0 )
41 virtual/perl-Digest-MD5
49 nls? ( >=sys-devel/gettext-0.19 )
54 BUGS ChangeLog FAQ FEATURES MIRRORS NEWS README README.debug-levels
55 README.dnssec README.modules THANKS TODO
60 "${FILESDIR}"/${PN}-4.0.2.91-lafile.patch \
61 "${FILESDIR}"/${PN}-4.5.5-am_config_header.patch \
62 "${FILESDIR}"/${PN}-4.6.3a-autopoint.patch
65 elibtoolize # for Darwin bundles
68 printf 'set fish:auto-confirm no\nset sftp:auto-confirm no\n' >> ${PN}.conf || die
75 $(use_with idn libidn) \
77 $(use_with openssl openssl "${EPREFIX}"/usr) \
78 $(use_with socks5 socksdante "${EPREFIX}"/usr) \
79 --enable-packager-mode \
80 --sysconfdir="${EPREFIX}"/etc/${PN} \
82 --without-included-regex
88 for script in {convert-mozilla-cookies,verify-file}; do
89 use ${script} || { rm "${ED}"/usr/share/${PN}/${script} || die ;}