/[gentoo-x86]/net-misc/axel/axel-2.4-r2.ebuild
Gentoo

Contents of /net-misc/axel/axel-2.4-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Jul 6 15:24:02 2012 UTC (7 years, 6 months ago) by jlec
Branch: MAIN
Changes since 1.1: +3 -2 lines
net-misc/axel: Increase max redirections to 25, as this services like github need this

(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20