2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=7
|
5 |
|
inherit autotools libtool xdg-utils
|
|
5 |
inherit autotools git-r3 libtool xdg-utils
|
6 |
6 |
|
7 |
7 |
DESCRIPTION="A sophisticated ftp/sftp/http/https/torrent client and file transfer program"
|
8 |
8 |
HOMEPAGE="http://lftp.yar.ru/"
|
9 |
|
SRC_URI="http://lftp.yar.ru/ftp/${P}.tar.xz"
|
|
9 |
EGIT_REPO_URI="https://github.com/lavv17/lftp"
|
10 |
10 |
|
11 |
11 |
LICENSE="GPL-3"
|
12 |
12 |
SLOT="0"
|
13 |
|
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
|
13 |
KEYWORDS=""
|
14 |
14 |
IUSE="convert-mozilla-cookies +gnutls idn nls socks5 +ssl verify-file"
|
15 |
|
RESTRICT="test"
|
16 |
15 |
|
17 |
16 |
RDEPEND="
|
18 |
17 |
>=sys-libs/ncurses-5.1:=
|
... | ... | |
34 |
33 |
virtual/perl-Digest-MD5
|
35 |
34 |
)
|
36 |
35 |
"
|
|
36 |
|
37 |
37 |
DEPEND="
|
38 |
38 |
${RDEPEND}
|
|
39 |
dev-libs/gnulib
|
39 |
40 |
=sys-devel/libtool-2*
|
40 |
41 |
app-arch/xz-utils
|
41 |
42 |
nls? ( >=sys-devel/gettext-0.19 )
|
42 |
43 |
virtual/pkgconfig
|
43 |
44 |
"
|
|
45 |
|
44 |
46 |
DOCS=(
|
45 |
47 |
BUGS ChangeLog FAQ FEATURES MIRRORS NEWS README README.debug-levels
|
46 |
48 |
README.dnssec README.modules THANKS TODO
|
47 |
49 |
)
|
48 |
50 |
PATCHES=(
|
49 |
|
"${FILESDIR}"/${PN}-4.0.2.91-lafile.patch
|
50 |
51 |
"${FILESDIR}"/${PN}-4.5.5-am_config_header.patch
|
51 |
|
"${FILESDIR}"/${PN}-4.7.0-gettext.patch
|
52 |
|
"${FILESDIR}"/${PN}-4.7.5-libdir-additional.patch
|
53 |
52 |
"${FILESDIR}"/${PN}-4.7.5-libdir-expat.patch
|
54 |
53 |
"${FILESDIR}"/${PN}-4.8.2-libdir-configure.patch
|
55 |
54 |
"${FILESDIR}"/${PN}-4.8.2-libdir-libidn2.patch
|
56 |
55 |
"${FILESDIR}"/${PN}-4.8.2-libdir-openssl.patch
|
57 |
56 |
"${FILESDIR}"/${PN}-4.8.2-libdir-zlib.patch
|
58 |
57 |
"${FILESDIR}"/${PN}-4.9.1-libdir-readline.patch
|
59 |
|
"${FILESDIR}"/${PN}-4.9.2-ac-270.patch
|
60 |
|
"${FILESDIR}"/${PN}-4.9.2-configure-clang16.patch
|
61 |
|
"${FILESDIR}"/${PN}-4.9.2-libressl.patch #903001
|
62 |
58 |
)
|
63 |
59 |
|
64 |
60 |
# Gnulib false positive #900064
|
... | ... | |
70 |
66 |
# bug #875692
|
71 |
67 |
sed -e '/#include/s/cmath/math.h/' -i trio/*.c || die
|
72 |
68 |
|
73 |
|
eautoreconf
|
|
69 |
gnulib-tool --update || die
|
74 |
70 |
|
75 |
|
elibtoolize # for Darwin bundles
|
|
71 |
chmod +x build-aux/git-version-gen || die
|
76 |
72 |
|
77 |
|
# bug #536036
|
78 |
|
printf 'set fish:auto-confirm no\nset sftp:auto-confirm no\n' >> ${PN}.conf || die
|
|
73 |
eautoreconf
|
|
74 |
elibtoolize # for Darwin bundles
|
79 |
75 |
}
|
80 |
76 |
|
81 |
77 |
src_configure() {
|
... | ... | |
85 |
81 |
$(use_with socks5 socksdante "${EPREFIX}"/usr) \
|
86 |
82 |
$(usex ssl "$(use_with !gnutls openssl "${EPREFIX}"/usr)" '--without-openssl') \
|
87 |
83 |
$(usex ssl "$(use_with gnutls)" '--without-gnutls') \
|
88 |
|
--enable-ipv6 \
|
|
84 |
--enable-ipv6
|
89 |
85 |
--enable-packager-mode \
|
90 |
86 |
--sysconfdir="${EPREFIX}"/etc/${PN} \
|
91 |
87 |
--with-modules \
|
... | ... | |
94 |
90 |
}
|
95 |
91 |
|
96 |
92 |
src_install() {
|
97 |
|
default
|
|
93 |
# FIXME: MKDIR_P is not getting picked up in po/Makefile
|
|
94 |
emake DESTDIR="${D}" mkdir_p="mkdir -p" install
|
98 |
95 |
|
99 |
96 |
local script
|
100 |
97 |
for script in {convert-mozilla-cookies,verify-file}; do
|