1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Light Unix download accelerator"
9 HOMEPAGE="https://github.com/axel-download-accelerator/axel"
10 SRC_URI="https://github.com/axel-download-accelerator/axel/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc64-solaris"
15 IUSE="debug libressl nls ssl"
17 REQUIRED_USE="libressl? ( ssl )"
21 !libressl? ( dev-libs/openssl:0= )
22 libressl? ( dev-libs/libressl:0= )
26 nls? ( sys-devel/gettext )"
28 nls? ( virtual/libintl virtual/libiconv )"
44 einfo 'To use axel with portage, create a script in'
45 einfo '/usr/local/bin/fetchwrapper.sh with the following content:'
49 einfo ' /usr/bin/axel -o "$1.axel" "$2"'
50 einfo ' mv "$1.axel" "$1"'
52 einfo 'and then add the following to your make.conf:'
53 einfo ' FETCHCOMMAND='\''/usr/local/bin/fetchwrapper.sh "\${DISTDIR}/\${FILE}" "\${URI}"'\'
54 einfo ' RESUMECOMMAND="${FETCHCOMMAND}"'