blob: 22d21081c651c8f5ed46383dcd4ca24322c8d829 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils flag-o-matic toolchain-funcs
DOWNLOAD_ID=3016
DESCRIPTION="Light Unix download accelerator"
HOMEPAGE="http://axel.alioth.debian.org/"
SRC_URI="http://alioth.debian.org/frs/download.php/${DOWNLOAD_ID}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 hppa ~ppc ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc64-solaris"
IUSE="debug nls"
DEPEND="nls? ( sys-devel/gettext )"
RDEPEND="nls? ( virtual/libintl )"
DOCS=( API CHANGES CREDITS README axelrc.example )
src_prepare() {
append-lfs-flags
epatch \
"${FILESDIR}"/${P}-buildsystem.patch \
"${FILESDIR}"/${P}-bffr-overflow.patch \
"${FILESDIR}"/${P}-max-redir.patch
tc-export CC
}
src_configure() {
local myconf=()
use debug && myconf+=( --debug=1 )
use nls && myconf+=( --i18n=$(usex nls 1 0) )
econf \
--strip=0 \
${myconf[@]}
}
pkg_postinst() {
einfo 'To use axel with portage, try these settings in your make.conf'
einfo
einfo ' FETCHCOMMAND='\''axel -a -o "\${DISTDIR}/\${FILE}.axel" "\${URI}" && mv "\${DISTDIR}/\${FILE}.axel" "\${DISTDIR}/\${FILE}"'\'
einfo ' RESUMECOMMAND="${FETCHCOMMAND}"'
}
|