/[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.3 - (show annotations) (download)
Sun Jul 29 21:21:27 2012 UTC (7 years, 5 months ago) by ottxor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
added ~x64-macos (bug #428542)

(Portage version: 2.2.0_alpha120/cvs/Linux i686)

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-r2.ebuild,v 1.2 2012/07/06 15:24:02 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 ~x64-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 "${FILESDIR}"/${P}-max-redir.patch
31 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