summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Ostorga <vostorga@gentoo.org>2009-10-27 23:09:08 +0000
committerVictor Ostorga <vostorga@gentoo.org>2009-10-27 23:09:08 +0000
commit9dc9758c7daad4c7fd694e2410e00750f57a449c (patch)
treecdc033fd98fd8ead43c9a9587ab8f13d1bd5bedb /net-misc/axel
parentAdd multilib USE flag and fix no-multilib compilation, bug #290653 (diff)
downloadgentoo-2-9dc9758c7daad4c7fd694e2410e00750f57a449c.tar.gz
gentoo-2-9dc9758c7daad4c7fd694e2410e00750f57a449c.tar.bz2
gentoo-2-9dc9758c7daad4c7fd694e2410e00750f57a449c.zip
Version bump to 2.4 , bug #267732
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'net-misc/axel')
-rw-r--r--net-misc/axel/ChangeLog7
-rw-r--r--net-misc/axel/axel-2.4.ebuild61
2 files changed, 67 insertions, 1 deletions
diff --git a/net-misc/axel/ChangeLog b/net-misc/axel/ChangeLog
index a7fa2d678b8b..81c80b8ebde1 100644
--- a/net-misc/axel/ChangeLog
+++ b/net-misc/axel/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-misc/axel
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/axel/ChangeLog,v 1.48 2009/10/25 20:19:14 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/axel/ChangeLog,v 1.49 2009/10/27 23:09:08 vostorga Exp $
+
+*axel-2.4 (27 Oct 2009)
+
+ 27 Oct 2009; Víctor Ostorga <vostorga@gentoo.org> +axel-2.4.ebuild:
+ Version bump to 2.4 , bug #267732
25 Oct 2009; Torsten Veller <tove@gentoo.org> metadata.xml:
Remove drizzt from metadata.xml (#149111)
diff --git a/net-misc/axel/axel-2.4.ebuild b/net-misc/axel/axel-2.4.ebuild
new file mode 100644
index 000000000000..3bc7d8da34a9
--- /dev/null
+++ b/net-misc/axel/axel-2.4.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/axel/axel-2.4.ebuild,v 1.1 2009/10/27 23:09:08 vostorga Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="light Unix download accelerator"
+HOMEPAGE="http://axel.alioth.debian.org/"
+SRC_URI="http://alioth.debian.org/frs/download.php/3015/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="debug kde nls"
+
+RDEPEND="nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+RDEPEND="${RDEPEND}
+ kde? ( kde-misc/kaptain )"
+
+#S="${WORKDIR}/${PN}-1.1"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # Set LDFLAGS and fix expr
+ sed -i -e 's/expr/& --/' -e "s/^LFLAGS=$/&${LDFLAGS}/" configure
+}
+
+src_compile() {
+ local myconf
+
+ use debug && myconf="${myconf} --debug=1"
+ use nls && myconf="${myconf} --i18n=1"
+ econf \
+ --strip=0 \
+ --etcdir=/etc \
+ ${myconf}
+
+ emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ if use kde; then
+ dobin gui/kapt/axel-kapt || die
+ doman gui/kapt/axel-kapt.1 || die
+ domenu gui/kapt/axel-kapt.desktop || die
+ fi
+
+ dodoc API CHANGES CREDITS README axelrc.example
+}
+
+pkg_postinst() {
+ einfo 'To use axel with portage, try these settings in your make.conf'
+ einfo
+ einfo ' FETCHCOMMAND='\''/usr/bin/axel -a -o "\${DISTDIR}/\${FILE}.axel" "\${URI}" && mv "\${DISTDIR}/\${FILE}.axel" "\${DISTDIR}/\${FILE}"'\'
+ einfo ' RESUMECOMMAND="${FETCHCOMMAND}"'
+}