alpha-quadrant/net-misc/aria2/aria2-0.6.0.1.ebuild

56 lines
1.2 KiB
Bash
Raw Normal View History

2006-07-17 10:04:37 +02:00
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="aria2 is a download utility with resuming and segmented downloading."
HOMEPAGE="http://aria2.sourceforge.net/"
2006-07-17 10:39:40 +02:00
SRC_URI="mirror://sourceforge/${PN}/${P/\.1/+1}.tar.bz2"
echo $SRC_URI
2006-07-17 10:04:37 +02:00
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="bittorrent gnutls metalink nls ssl"
RDEPEND="ssl? ( gnutls? ( net-libs/gnutls )
!gnutls? ( dev-libs/openssl ) )
bittorrent? ( gnutls? ( dev-libs/libgcrypt ) )
metalink? ( >=dev-libs/libxml2-2.6.26 )"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )"
2006-07-17 10:39:40 +02:00
S="${WORKDIR}/${P/\.1/+1}"
2006-07-17 10:04:37 +02:00
pkg_setup() {
if use bittorrent && (! use ssl && ! use gnutls); then
eerror "For bittorrent, you need either ssl or gnutls"
eerror "use flag enabled"
die "use flag inconsistency"
fi
}
src_compile () {
econf \
$(use_enable ssl) \
$(use_enable gnutls) \
$(use_enable bittorrent) \
$(use_enable metalink) \
$(use_enable nls) \
|| die
emake || die
}
src_install () {
make install DESTDIR=${D} || die "make install failed."
# einstall || die "einstall failed"
dodoc AUTHORS NEWS README TODO
}