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.19.0.ebuild ChangeLog metadata.xml
Date: Sun, 05 Jul 2015 19:27:47
Message-Id: 20150705192743.279A3752@oystercatcher.gentoo.org
1 mgorny 15/07/05 19:27:43
2
3 Modified: ChangeLog metadata.xml
4 Added: aria2-1.19.0.ebuild
5 Log:
6 Version bump. The new version adds SFTP (SSH) support, and comes with a few bugfixes and improvements.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.102 net-misc/aria2/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/ChangeLog?rev=1.102&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/ChangeLog?rev=1.102&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/ChangeLog?r1=1.101&r2=1.102
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/aria2/ChangeLog,v
20 retrieving revision 1.101
21 retrieving revision 1.102
22 diff -u -r1.101 -r1.102
23 --- ChangeLog 21 Feb 2015 09:01:08 -0000 1.101
24 +++ ChangeLog 5 Jul 2015 19:27:43 -0000 1.102
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-misc/aria2
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/ChangeLog,v 1.101 2015/02/21 09:01:08 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/ChangeLog,v 1.102 2015/07/05 19:27:43 mgorny Exp $
30 +
31 +*aria2-1.19.0 (05 Jul 2015)
32 +
33 + 05 Jul 2015; Michał Górny <mgorny@g.o> +aria2-1.19.0.ebuild,
34 + metadata.xml:
35 + Version bump. The new version adds SFTP (SSH) support, and comes with a few
36 + bugfixes and improvements.
37
38 *aria2-1.18.9 (21 Feb 2015)
39
40
41
42
43 1.13 net-misc/aria2/metadata.xml
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/metadata.xml?rev=1.13&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/metadata.xml?rev=1.13&content-type=text/plain
47 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/metadata.xml?r1=1.12&r2=1.13
48
49 Index: metadata.xml
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/net-misc/aria2/metadata.xml,v
52 retrieving revision 1.12
53 retrieving revision 1.13
54 diff -u -r1.12 -r1.13
55 --- metadata.xml 27 Jun 2014 13:16:09 -0000 1.12
56 +++ metadata.xml 5 Jul 2015 19:27:43 -0000 1.13
57 @@ -17,6 +17,7 @@
58 <flag name="nettle">Use <pkg>dev-libs/nettle</pkg> and <pkg>dev-libs/gmp</pkg> for bittorrent/metalink crypto instead of <pkg>dev-libs/libgcrypt</pkg> (when <pkg>dev-libs/openssl</pkg> is not being used).</flag>
59 <flag name="metalink">Enable support for metalink.</flag>
60 <flag name="scripts">Install additional scripts which use aria2's xmlrpc functionality.</flag>
61 + <flag name="ssh">Enable SFTP support.</flag>
62 </use>
63 <upstream>
64 <remote-id type="sourceforge">aria2</remote-id>
65
66
67
68 1.1 net-misc/aria2/aria2-1.19.0.ebuild
69
70 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/aria2-1.19.0.ebuild?rev=1.1&view=markup
71 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aria2/aria2-1.19.0.ebuild?rev=1.1&content-type=text/plain
72
73 Index: aria2-1.19.0.ebuild
74 ===================================================================
75 # Copyright 1999-2015 Gentoo Foundation
76 # Distributed under the terms of the GNU General Public License v2
77 # $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/aria2-1.19.0.ebuild,v 1.1 2015/07/05 19:27:43 mgorny Exp $
78
79 EAPI="5"
80
81 inherit bash-completion-r1 eutils
82
83 DESCRIPTION="A download utility with segmented downloading with BitTorrent support"
84 HOMEPAGE="http://aria2.sourceforge.net/"
85 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
86
87 LICENSE="GPL-2"
88 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
89 SLOT="0"
90 IUSE="adns bittorrent +gnutls jemalloc libuv +libxml2 metalink +nettle nls sqlite scripts ssh ssl tcmalloc test xmlrpc"
91
92 CDEPEND="sys-libs/zlib:0=
93 ssl? (
94 app-misc/ca-certificates
95 gnutls? ( >=net-libs/gnutls-1.2.9:0= )
96 !gnutls? ( dev-libs/openssl:0= ) )
97 adns? ( >=net-dns/c-ares-1.5.0:0= )
98 bittorrent? (
99 ssl? (
100 gnutls? (
101 nettle? ( >=dev-libs/nettle-2.4:0=[gmp] >=dev-libs/gmp-5:0= )
102 !nettle? ( >=dev-libs/libgcrypt-1.2.2:0= ) ) )
103 !ssl? (
104 nettle? ( >=dev-libs/nettle-2.4:0=[gmp] >=dev-libs/gmp-5:0= )
105 !nettle? ( >=dev-libs/libgcrypt-1.2.2:0= ) ) )
106 jemalloc? ( dev-libs/jemalloc )
107 libuv? ( dev-libs/libuv:0= )
108 metalink? (
109 libxml2? ( >=dev-libs/libxml2-2.6.26:2= )
110 !libxml2? ( dev-libs/expat:0= ) )
111 sqlite? ( dev-db/sqlite:3= )
112 ssh? ( net-libs/libssh2:= )
113 tcmalloc? ( dev-util/google-perftools )
114 xmlrpc? (
115 libxml2? ( >=dev-libs/libxml2-2.6.26:2= )
116 !libxml2? ( dev-libs/expat:0= ) )"
117
118 DEPEND="${CDEPEND}
119 virtual/pkgconfig
120 nls? ( sys-devel/gettext )
121 test? ( >=dev-util/cppunit-1.12.0:0 )"
122 RDEPEND="${CDEPEND}
123 nls? ( virtual/libiconv virtual/libintl )
124 scripts? ( dev-lang/ruby )"
125
126 REQUIRED_USE="jemalloc? ( !tcmalloc )
127 tcmalloc? ( !jemalloc )"
128
129 pkg_setup() {
130 if use scripts && use !xmlrpc && use !metalink; then
131 ewarn "Please note that you may need to enable USE=xmlrpc to run the aria2rpc"
132 ewarn "and aria2mon scripts against the local aria2."
133 fi
134 }
135
136 src_prepare() {
137 epatch_user
138 sed -i -e "s|/tmp|${T}|" test/*.cc test/*.txt || die "sed failed"
139 }
140
141 src_configure() {
142 local myconf=(
143 # threads, epoll: check for best portability
144
145 # do not try to compile and run a test LIBXML program
146 --disable-xmltest
147 # enable the shared library
148 --enable-libaria2
149 # zlib should always be available anyway
150 --with-libz
151 --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt"
152
153 # optional features
154 $(use_enable bittorrent)
155 $(use_enable metalink)
156 $(use_enable nls)
157 $(use_with sqlite sqlite3)
158 $(use_with adns libcares)
159 $(use_with libuv)
160 $(use_with jemalloc)
161 $(use_with tcmalloc)
162 )
163
164 # SSL := gnutls / openssl
165 # USE=ssl
166 # + USE=gnutls -> gnutls
167 # + USE=-gnutls -> openssl
168
169 if use ssl; then
170 myconf+=( $(use_with gnutls) $(use_with !gnutls openssl) )
171 else
172 myconf+=( --without-gnutls --without-openssl )
173 fi
174
175 # message-digest := nettle / gcrypt / openssl
176 # bignum := nettle+gmp / gcrypt / openssl
177 # bittorrent := message-digest + bignum
178 # USE=bittorrent
179 # + USE=(ssl -gnutls) -> openssl
180 # + USE=nettle -> nettle+gmp
181 # + USE=-nettle -> gcrypt
182
183 if use !bittorrent || use ssl && use !gnutls; then
184 myconf+=( --without-libgcrypt --without-libnettle --without-libgmp )
185 else
186 myconf+=( $(use_with !nettle libgcrypt)
187 $(use_with nettle libnettle) $(use_with nettle libgmp) )
188 fi
189
190 # metalink+xmlrpc := libxml2 / expat
191 # USE=(metalink || xmlrpc)
192 # + USE=libxml2 -> libxml2
193 # + USE=-libxml2 -> expat
194
195 if use metalink || use xmlrpc; then
196 myconf+=( $(use_with !libxml2 libexpat) $(use_with libxml2) )
197 else
198 myconf+=( --without-libexpat --without-libxml2 )
199 fi
200
201 # Note:
202 # - always enable gzip/http compression since zlib should always be available anyway
203 # - always enable epoll since we can assume kernel 2.6.x
204 # - other options for threads: solaris, pth, win32
205 econf "${myconf[@]}"
206 }
207
208 src_install() {
209 default
210 rm -rf "${D}"/usr/share/doc/aria2 \
211 "${D}"/usr/share/doc/${PF}/README{,.html}
212
213 dobashcomp doc/bash_completion/aria2c
214 use scripts && dobin doc/xmlrpc/aria2{mon,rpc}
215 }
216
217 pkg_postinst() {
218 if use xmlrpc || use metalink; then
219 elog "If you would like to use the additional aria2mon and aria2rpc tools,"
220 elog "you need to have \033[1mdev-lang/ruby\033[0m installed."
221 fi
222 }