Gentoo Archives: gentoo-commits

From: "Tiziano Mueller (dev-zero)" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/aria2: ChangeLog aria2-1.8.3.ebuild
Date: Mon, 22 Feb 2010 10:37:40
Message-Id: E1NjVfR-0005BT-FC@stork.gentoo.org
1 dev-zero 10/02/22 10:37:33
2
3 Modified: ChangeLog
4 Added: aria2-1.8.3.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.57 net-misc/aria2/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/aria2/ChangeLog?rev=1.57&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/aria2/ChangeLog?rev=1.57&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/aria2/ChangeLog?r1=1.56&r2=1.57
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/aria2/ChangeLog,v
19 retrieving revision 1.56
20 retrieving revision 1.57
21 diff -u -r1.56 -r1.57
22 --- ChangeLog 6 Feb 2010 06:46:22 -0000 1.56
23 +++ ChangeLog 22 Feb 2010 10:37:32 -0000 1.57
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-misc/aria2
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/ChangeLog,v 1.56 2010/02/06 06:46:22 dev-zero Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/ChangeLog,v 1.57 2010/02/22 10:37:32 dev-zero Exp $
29 +
30 +*aria2-1.8.3 (22 Feb 2010)
31 +
32 + 22 Feb 2010; Tiziano Müller <dev-zero@g.o> +aria2-1.8.3.ebuild:
33 + Version bump.
34
35 06 Feb 2010; Tiziano Müller <dev-zero@g.o> metadata.xml:
36 Added upstream info.
37
38
39
40 1.1 net-misc/aria2/aria2-1.8.3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/aria2/aria2-1.8.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/aria2/aria2-1.8.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: aria2-1.8.3.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/aria2-1.8.3.ebuild,v 1.1 2010/02/22 10:37:32 dev-zero Exp $
50
51 EAPI="2"
52
53 DESCRIPTION="A download utility with resuming and segmented downloading with HTTP/HTTPS/FTP/BitTorrent support."
54 HOMEPAGE="http://aria2.sourceforge.net/"
55 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
56 LICENSE="GPL-2"
57 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
58 SLOT="0"
59 IUSE="ares bittorrent expat gnutls metalink nls scripts sqlite ssl test xmlrpc"
60
61 CDEPEND="sys-libs/zlib
62 ssl? (
63 gnutls? ( >=net-libs/gnutls-1.2.9 )
64 !gnutls? ( dev-libs/openssl ) )
65 ares? ( >=net-dns/c-ares-1.5.0 )
66 bittorrent? (
67 gnutls? ( >=net-libs/gnutls-1.2.9 >=dev-libs/libgcrypt-1.2.2 )
68 !gnutls? ( dev-libs/openssl ) )
69 metalink? (
70 !expat? ( >=dev-libs/libxml2-2.6.26 )
71 expat? ( dev-libs/expat ) )
72 sqlite? ( dev-db/sqlite:3 )
73 xmlrpc? (
74 !expat? ( >=dev-libs/libxml2-2.6.26 )
75 expat? ( dev-libs/expat ) )"
76 DEPEND="${CDEPEND}
77 nls? ( sys-devel/gettext )
78 test? ( >=dev-util/cppunit-1.12.0 )"
79 RDEPEND="${CDEPEND}
80 scripts? ( dev-lang/ruby )
81 nls? ( virtual/libiconv virtual/libintl )"
82
83 pkg_setup() {
84 if use scripts && use !xmlrpc && use !metalink; then
85 ewarn "Please also enable the 'xmlrpc' USE flag to actually use the additional scripts"
86 fi
87 }
88
89 src_prepare() {
90 sed -i -e "s|/tmp|${T}|" test/*.cc test/*.txt || die "sed failed"
91 }
92
93 src_configure() {
94 local myconf="--without-gnutls --without-openssl"
95 use ssl && \
96 myconf="$(use_with gnutls) $(use_with !gnutls openssl)"
97
98 local xmllib="--without-libexpat --without-libxml2"
99 if use metalink || use xmlrpc ; then
100 xmllib="$(use_with expat libexpat) $(use_with !expat libxml2)"
101 fi
102
103 # Note:
104 # - depends on libgcrypt only when using gnutls
105 # - if --without-libexpat or --without-libxml2 are not given, it links against
106 # one of them to provide xmlrpc-functionality
107 # - always enable gzip/http compression since zlib should always be available anyway
108 # - always enable epoll since we can assume kernel 2.6.x
109 # - other options for threads: solaris, pth, win32
110 econf \
111 --enable-epoll \
112 --enable-threads=posix \
113 --with-libz \
114 $(use_enable nls) \
115 $(use_enable metalink) \
116 $(use_with sqlite sqlite3) \
117 $(use_enable bittorrent) \
118 $(use_with ares libcares) \
119 ${xmllib} \
120 ${myconf}
121 }
122
123 src_install() {
124 emake DESTDIR="${D}" install || die "emake install failed"
125
126 rm -rf "${D}/usr/share/doc/aria2"
127 dodoc ChangeLog README AUTHORS NEWS
128 dohtml README.html doc/aria2c.1.html
129
130 use scripts && dobin doc/xmlrpc/aria2{mon,rpc}
131 }