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

Contents of /net-misc/axel/axel-2.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Feb 7 10:28:35 2009 UTC (10 years, 10 months ago) by drizzt
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
I hate alioth! (fixed download URL)
(Portage version: 2.2_rc23/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.3.ebuild,v 1.3 2009/02/04 17:59:08 drizzt Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="light Unix download accelerator"
8 HOMEPAGE="http://axel.alioth.debian.org/"
9 SRC_URI="http://alioth.debian.org/frs/download.php/2287/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
14 IUSE="debug kde nls"
15
16 RDEPEND="nls? ( virtual/libintl )"
17 DEPEND="${RDEPEND}
18 nls? ( sys-devel/gettext )"
19 RDEPEND="${RDEPEND}
20 kde? ( kde-misc/kaptain )"
21
22 S="${WORKDIR}/${PN}-1.1"
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27 # Set LDFLAGS and fix expr
28 sed -i -e 's/expr/& --/' -e "s/^LFLAGS=$/&${LDFLAGS}/" configure
29 }
30
31 src_compile() {
32 local myconf
33
34 use debug && myconf="--debug=1"
35 use nls && myconf="--i18n=1"
36 econf \
37 --strip=0 \
38 --etcdir=/etc \
39 ${myconf} \
40 || die
41
42 emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die "emake failed"
43 }
44
45 src_install() {
46 emake DESTDIR="${D}" install || die "emake install failed"
47
48 if use kde; then
49 dobin gui/kapt/axel-kapt || die
50 doman gui/kapt/axel-kapt.1 || die
51 domenu gui/kapt/axel-kapt.desktop || die
52 fi
53
54 dodoc API CHANGES CREDITS README axelrc.example
55 }
56
57 pkg_postinst() {
58 einfo 'To use axel with portage, try these settings in your make.conf'
59 einfo
60 einfo ' FETCHCOMMAND='\''/usr/bin/axel -a -o "\${DISTDIR}/\${FILE}.axel" "\${URI}" && mv "\${DISTDIR}/\${FILE}.axel" "\${DISTDIR}/\${FILE}"'\'
61 einfo ' RESUMECOMMAND="${FETCHCOMMAND}"'
62 }

  ViewVC Help
Powered by ViewVC 1.1.20