Lines 2-14
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/aria2-1.9.3.ebuild,v 1.3 2010/05/23 14:23:01 phajdan.jr Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/aria2-1.9.3.ebuild,v 1.3 2010/05/23 14:23:01 phajdan.jr Exp $ |
4 |
|
4 |
|
5 |
EAPI="2" |
5 |
EAPI=4 |
|
|
6 |
|
7 |
inherit multilib |
6 |
|
8 |
|
7 |
DESCRIPTION="A download utility with resuming and segmented downloading with HTTP/HTTPS/FTP/BitTorrent support." |
9 |
DESCRIPTION="A download utility with resuming and segmented downloading with HTTP/HTTPS/FTP/BitTorrent support." |
8 |
HOMEPAGE="http://aria2.sourceforge.net/" |
10 |
HOMEPAGE="http://aria2.sourceforge.net/" |
9 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
11 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
10 |
LICENSE="GPL-2" |
12 |
LICENSE="GPL-2" |
11 |
KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86" |
13 |
KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
12 |
SLOT="0" |
14 |
SLOT="0" |
13 |
IUSE="ares bittorrent expat gnutls metalink nls scripts sqlite ssl test xmlrpc" |
15 |
IUSE="ares bittorrent expat gnutls metalink nls scripts sqlite ssl test xmlrpc" |
14 |
|
16 |
|
Lines 47-57
Link Here
|
47 |
src_configure() { |
49 |
src_configure() { |
48 |
local myconf="--without-gnutls --without-openssl" |
50 |
local myconf="--without-gnutls --without-openssl" |
49 |
use ssl && \ |
51 |
use ssl && \ |
50 |
myconf="$(use_with gnutls) $(use_with !gnutls openssl)" |
52 |
myconf="$(use_with gnutls) $(use_with !gnutls openssl "${EPREFIX}"/usr/$(get_libdir))" |
51 |
|
53 |
|
52 |
local xmllib="--without-libexpat --without-libxml2" |
54 |
local xmllib="--without-libexpat --without-libxml2" |
53 |
if use metalink || use xmlrpc ; then |
55 |
if use metalink || use xmlrpc ; then |
54 |
xmllib="$(use_with expat libexpat) $(use_with !expat libxml2)" |
56 |
xmllib="$(use_with expat libexpat "${EPREFIX}"/usr/$(get_libdir)) $(use_with !expat libxml2)" |
55 |
fi |
57 |
fi |
56 |
|
58 |
|
57 |
# Note: |
59 |
# Note: |
Lines 67-75
Link Here
|
67 |
--with-libz \ |
69 |
--with-libz \ |
68 |
$(use_enable nls) \ |
70 |
$(use_enable nls) \ |
69 |
$(use_enable metalink) \ |
71 |
$(use_enable metalink) \ |
70 |
$(use_with sqlite sqlite3) \ |
72 |
$(use_with sqlite sqlite3 "${EPREFIX}"/usr/$(get_libdir)) \ |
71 |
$(use_enable bittorrent) \ |
73 |
$(use_enable bittorrent) \ |
72 |
$(use_with ares libcares) \ |
74 |
$(use_with ares libcares "${EPREFIX}"/usr/$(get_libdir)) \ |
73 |
${xmllib} \ |
75 |
${xmllib} \ |
74 |
${myconf} |
76 |
${myconf} |
75 |
} |
77 |
} |
Lines 77-83
Link Here
|
77 |
src_install() { |
79 |
src_install() { |
78 |
emake DESTDIR="${D}" install || die "emake install failed" |
80 |
emake DESTDIR="${D}" install || die "emake install failed" |
79 |
|
81 |
|
80 |
rm -rf "${D}/usr/share/doc/aria2" |
82 |
rm -rf "${ED}/usr/share/doc/aria2" |
81 |
dodoc ChangeLog README AUTHORS NEWS |
83 |
dodoc ChangeLog README AUTHORS NEWS |
82 |
dohtml README.html doc/aria2c.1.html |
84 |
dohtml README.html doc/aria2c.1.html |
83 |
|
85 |
|