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: aria2-1.10.2.ebuild ChangeLog
Date: Wed, 01 Sep 2010 16:27:23
Message-Id: 20100901162714.71EBF20051@flycatcher.gentoo.org
1 dev-zero 10/09/01 16:27:14
2
3 Modified: ChangeLog
4 Added: aria2-1.10.2.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.66 net-misc/aria2/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/ChangeLog?rev=1.66&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/ChangeLog?rev=1.66&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/ChangeLog?r1=1.65&r2=1.66
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/aria2/ChangeLog,v
19 retrieving revision 1.65
20 retrieving revision 1.66
21 diff -u -r1.65 -r1.66
22 --- ChangeLog 30 Aug 2010 05:24:54 -0000 1.65
23 +++ ChangeLog 1 Sep 2010 16:27:14 -0000 1.66
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.65 2010/08/30 05:24:54 dev-zero Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/ChangeLog,v 1.66 2010/09/01 16:27:14 dev-zero Exp $
29 +
30 +*aria2-1.10.2 (01 Sep 2010)
31 +
32 + 01 Sep 2010; Tiziano Müller <dev-zero@g.o> +aria2-1.10.2.ebuild:
33 + Version bump.
34
35 *aria2-1.10.1 (30 Aug 2010)
36
37
38
39
40 1.1 net-misc/aria2/aria2-1.10.2.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/aria2-1.10.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/aria2-1.10.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: aria2-1.10.2.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.10.2.ebuild,v 1.1 2010/09/01 16:27:14 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 dev-util/pkgconfig
78 nls? ( sys-devel/gettext )
79 test? ( >=dev-util/cppunit-1.12.0 )"
80 RDEPEND="${CDEPEND}
81 scripts? ( dev-lang/ruby )
82 nls? ( virtual/libiconv virtual/libintl )"
83
84 RESTRICT="test"
85
86 pkg_setup() {
87 if use scripts && use !xmlrpc && use !metalink; then
88 ewarn "Please also enable the 'xmlrpc' USE flag to actually use the additional scripts"
89 fi
90 }
91
92 src_prepare() {
93 sed -i -e "s|/tmp|${T}|" test/*.cc test/*.txt || die "sed failed"
94 }
95
96 src_configure() {
97 local myconf="--without-gnutls --without-openssl"
98 use ssl && \
99 myconf="$(use_with gnutls) $(use_with !gnutls openssl)"
100
101 local xmllib="--without-libexpat --without-libxml2"
102 if use metalink || use xmlrpc ; then
103 xmllib="$(use_with expat libexpat) $(use_with !expat libxml2)"
104 fi
105
106 # Note:
107 # - depends on libgcrypt only when using gnutls
108 # - if --without-libexpat or --without-libxml2 are not given, it links against
109 # one of them to provide xmlrpc-functionality
110 # - always enable gzip/http compression since zlib should always be available anyway
111 # - always enable epoll since we can assume kernel 2.6.x
112 # - other options for threads: solaris, pth, win32
113 econf \
114 --enable-epoll \
115 --enable-threads=posix \
116 --with-libz \
117 $(use_enable nls) \
118 $(use_enable metalink) \
119 $(use_with sqlite sqlite3) \
120 $(use_enable bittorrent) \
121 $(use_with ares libcares) \
122 ${xmllib} \
123 ${myconf}
124 }
125
126 src_install() {
127 emake DESTDIR="${D}" install || die "emake install failed"
128
129 rm -rf "${D}/usr/share/doc/aria2"
130 dodoc ChangeLog README AUTHORS NEWS
131 dohtml README.html doc/aria2c.1.html
132
133 use scripts && dobin doc/xmlrpc/aria2{mon,rpc}
134 }