Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/aria2: aria2-1.16.3.ebuild ChangeLog
Date: Thu, 28 Feb 2013 08:44:14
Message-Id: 20130228084409.AEF952171D@flycatcher.gentoo.org
1 mgorny 13/02/28 08:44:09
2
3 Modified: ChangeLog
4 Added: aria2-1.16.3.ebuild
5 Log:
6 Version bump. Requested in bug #456094.
7
8 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 9627F456F9DA7643!)
9
10 Revision Changes Path
11 1.88 net-misc/aria2/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/ChangeLog?rev=1.88&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/ChangeLog?rev=1.88&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/ChangeLog?r1=1.87&r2=1.88
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/aria2/ChangeLog,v
20 retrieving revision 1.87
21 retrieving revision 1.88
22 diff -u -r1.87 -r1.88
23 --- ChangeLog 28 Dec 2012 09:58:14 -0000 1.87
24 +++ ChangeLog 28 Feb 2013 08:44:09 -0000 1.88
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-misc/aria2
27 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/ChangeLog,v 1.87 2012/12/28 09:58:14 dev-zero Exp $
29 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/ChangeLog,v 1.88 2013/02/28 08:44:09 mgorny Exp $
31 +
32 +*aria2-1.16.3 (28 Feb 2013)
33 +
34 + 28 Feb 2013; Michał Górny <mgorny@g.o> +aria2-1.16.3.ebuild:
35 + Version bump. Requested in bug #456094.
36
37 *aria2-1.16.1 (28 Dec 2012)
38
39
40
41
42 1.1 net-misc/aria2/aria2-1.16.3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/aria2-1.16.3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/aria2-1.16.3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: aria2-1.16.3.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/aria2-1.16.3.ebuild,v 1.1 2013/02/28 08:44:09 mgorny Exp $
52
53 EAPI="5"
54
55 inherit bash-completion-r1 eutils
56
57 DESCRIPTION="A download utility with segmented downloading with BitTorrent support"
58 HOMEPAGE="http://aria2.sourceforge.net/"
59 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
60
61 LICENSE="GPL-2"
62 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
63 SLOT="0"
64 IUSE="adns bittorrent +gnutls +libxml2 metalink +nettle nls sqlite scripts ssl test xmlrpc"
65
66 CDEPEND="sys-libs/zlib
67 ssl? (
68 app-misc/ca-certificates
69 gnutls? ( >=net-libs/gnutls-1.2.9 )
70 !gnutls? ( dev-libs/openssl ) )
71 adns? ( >=net-dns/c-ares-1.5.0 )
72 bittorrent? (
73 ssl? (
74 gnutls? (
75 nettle? ( >=dev-libs/nettle-2.4[gmp] >=dev-libs/gmp-5 )
76 !nettle? ( >=dev-libs/libgcrypt-1.2.2 ) ) )
77 !ssl? (
78 nettle? ( >=dev-libs/nettle-2.4[gmp] >=dev-libs/gmp-5 )
79 !nettle? ( >=dev-libs/libgcrypt-1.2.2 ) ) )
80 metalink? (
81 libxml2? ( >=dev-libs/libxml2-2.6.26 )
82 !libxml2? ( dev-libs/expat ) )
83 sqlite? ( dev-db/sqlite:3 )
84 xmlrpc? (
85 libxml2? ( >=dev-libs/libxml2-2.6.26 )
86 !libxml2? ( dev-libs/expat ) )"
87
88 DEPEND="${CDEPEND}
89 virtual/pkgconfig
90 nls? ( sys-devel/gettext )
91 test? ( >=dev-util/cppunit-1.12.0 )"
92 RDEPEND="${CDEPEND}
93 nls? ( virtual/libiconv virtual/libintl )
94 scripts? ( dev-lang/ruby )"
95
96 pkg_setup() {
97 if use scripts && use !xmlrpc && use !metalink; then
98 ewarn "Please note that you may need to enable USE=xmlrpc to run the aria2rpc"
99 ewarn "and aria2mon scripts against the local aria2."
100 fi
101 }
102
103 src_prepare() {
104 epatch_user
105 sed -i -e "s|/tmp|${T}|" test/*.cc test/*.txt || die "sed failed"
106 }
107
108 src_configure() {
109 # Notes:
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 local myconf=(
114 --enable-epoll
115 --enable-threads=posix
116 --with-libz
117 --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt"
118 $(use_enable nls)
119 $(use_enable metalink)
120 $(use_with sqlite sqlite3)
121 $(use_enable bittorrent)
122 $(use_with adns libcares)
123 )
124
125 # SSL := gnutls / openssl
126 # USE=ssl
127 # + USE=gnutls -> gnutls
128 # + USE=-gnutls -> openssl
129
130 if use ssl; then
131 myconf+=( $(use_with gnutls) $(use_with !gnutls openssl) )
132 else
133 myconf+=( --without-gnutls --without-openssl )
134 fi
135
136 # message-digest := nettle / gcrypt / openssl
137 # bignum := nettle+gmp / gcrypt / openssl
138 # bittorrent := message-digest + bignum
139 # USE=bittorrent
140 # + USE=(ssl -gnutls) -> openssl
141 # + USE=nettle -> nettle+gmp
142 # + USE=-nettle -> gcrypt
143
144 if use !bittorrent || use ssl && use !gnutls; then
145 myconf+=( --without-libgcrypt --without-libnettle --without-libgmp )
146 else
147 myconf+=( $(use_with !nettle libgcrypt)
148 $(use_with nettle libnettle) $(use_with nettle libgmp) )
149 fi
150
151 # metalink+xmlrpc := libxml2 / expat
152 # USE=(metalink || xmlrpc)
153 # + USE=libxml2 -> libxml2
154 # + USE=-libxml2 -> expat
155
156 if use metalink || use xmlrpc; then
157 myconf+=( $(use_with !libxml2 libexpat) $(use_with libxml2) )
158 else
159 myconf+=( --without-libexpat --without-libxml2 )
160 fi
161
162 # Note:
163 # - always enable gzip/http compression since zlib should always be available anyway
164 # - always enable epoll since we can assume kernel 2.6.x
165 # - other options for threads: solaris, pth, win32
166 econf "${myconf[@]}"
167 }
168
169 src_install() {
170 default
171 rm -rf "${D}"/usr/share/doc/aria2 \
172 "${D}"/usr/share/doc/${PF}/README{,.html}
173
174 dobashcomp doc/bash_completion/aria2c
175 use scripts && dobin doc/xmlrpc/aria2{mon,rpc}
176 }
177
178 pkg_postinst() {
179 if use xmlrpc || use metalink; then
180 elog "If you would like to use the additional aria2mon and aria2rpc tools,"
181 elog "you need to have \033[1mdev-lang/ruby\033[0m installed."
182 fi
183 }