diff options
Diffstat (limited to 'net-misc/aria2/aria2-0.8.0.ebuild')
-rw-r--r-- | net-misc/aria2/aria2-0.8.0.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/net-misc/aria2/aria2-0.8.0.ebuild b/net-misc/aria2/aria2-0.8.0.ebuild new file mode 100644 index 000000000..d65ab1096 --- /dev/null +++ b/net-misc/aria2/aria2-0.8.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +KEYWORDS="~amd64 ~ppc ~x86" + +MY_P=${P/_p/+} + +DESCRIPTION="aria2 - The high speed download utility" +HOMEPAGE="http://aria2.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +IUSE="ares bittorrent gnutls metalink nls ssl" + +CDEPEND="ssl? ( + gnutls? ( net-libs/gnutls ) + !gnutls? ( dev-libs/openssl ) ) + ares? ( >=net-dns/c-ares-1.3.1 ) + bittorrent? ( gnutls? ( dev-libs/libgcrypt ) ) + metalink? ( >=dev-libs/libxml2-2.6.26 )" +DEPEND="${CDEPEND} + nls? ( sys-devel/gettext )" +RDEPEND="${CDEPEND} + nls? ( virtual/libiconv virtual/libintl )" + +S=${WORKDIR}/${MY_P} + +src_compile() { + use ssl && \ + myconf="${myconf} $(use_with gnutls) $(use_with !gnutls openssl)" + econf \ + $(use_enable nls) \ + $(use_enable metalink) \ + $(use_enable bittorrent) \ + --without-ares \ + $(use_with ares libcares) \ + $(use_with metalink libxml2) \ + ${myconf} \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + dobin src/aria2c + dodoc ChangeLog README AUTHORS TODO NEWS +} |