/[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.1 - (show annotations) (download)
Fri Jul 6 15:13:56 2012 UTC (7 years, 6 months ago) by jlec
Branch: MAIN
net-misc/axel: Move to EAPI=4, fix buildsystem, #424822, fix potential buffer overflow

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/axel/axel-2.4-r1.ebuild,v 1.1 2011/05/01 14:49:25 jlec Exp $
4
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 "${FILESDIR}"/${P}-bffr-overflow.patch
30 tc-export CC
31 }
32
33 src_configure() {
34 local myconf=""
35
36 use debug && myconf+=" --debug=1"
37 use nls && myconf+=" --i18n=$(use nls && echo 1 || echo 0)"
38 econf \
39 --strip=0 \
40 ${myconf}
41 }
42
43 pkg_postinst() {
44 einfo 'To use axel with portage, try these settings in your make.conf'
45 einfo
46 einfo ' FETCHCOMMAND='\''axel -a -o "\${DISTDIR}/\${FILE}.axel" "\${URI}" && mv "\${DISTDIR}/\${FILE}.axel" "\${DISTDIR}/\${FILE}"'\'
47 einfo ' RESUMECOMMAND="${FETCHCOMMAND}"'
48 }

  ViewVC Help
Powered by ViewVC 1.1.20