1 |
commit: 65ce2d2ac043552fe6b7acd0912f16dbb2fdce6d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 1 22:09:03 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 2 06:18:52 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65ce2d2a |
7 |
|
8 |
net-misc/aria2: Clean old up |
9 |
|
10 |
net-misc/aria2/Manifest | 3 - |
11 |
net-misc/aria2/aria2-1.31.0.ebuild | 152 ------------------------------------- |
12 |
net-misc/aria2/aria2-1.32.0.ebuild | 152 ------------------------------------- |
13 |
net-misc/aria2/aria2-1.33.0.ebuild | 152 ------------------------------------- |
14 |
4 files changed, 459 deletions(-) |
15 |
|
16 |
diff --git a/net-misc/aria2/Manifest b/net-misc/aria2/Manifest |
17 |
index e923de0c261..6cf1f36cc38 100644 |
18 |
--- a/net-misc/aria2/Manifest |
19 |
+++ b/net-misc/aria2/Manifest |
20 |
@@ -1,5 +1,2 @@ |
21 |
DIST aria2-1.30.0.tar.xz 1497124 BLAKE2B 99bce103f1bd89b94e202cb7b2d9dc427398e0dec3517b25a3870515433b7be35fe2841b5ace049771181e6ce44acb82f8715c72347e7069acd6b003e33522ac SHA512 8c3deb4b58b9db9e8de52f48f6e863e07743ae4af14e2b2d64ddcac94b6aec16ff8d4f27e7d6076426d597af9e6e0988289f3a1c156796c9d79ee7f60f5edc38 |
22 |
-DIST aria2-1.31.0.tar.xz 1501388 BLAKE2B 6decd9a1ba658e27ada5137747a36764cedd37dd9caccd609dcfeb284f040d72a021a0bf79731a65e33a29cea0dc0e31f3e08dd633d6d0c44e95bea60a7c7182 SHA512 a0a1312522324dc0bc24cf1a5cceaef49d40445668ed0bd98dc3cdd5e2edb428552e97504c8c072f5d1180d6bbd252de01d290ef5c94d1803b8ade330bc2710f |
23 |
-DIST aria2-1.32.0.tar.xz 1502192 BLAKE2B 8b515cb91dc30ee598bdae0f96c53448b22af73983fdc105e85e9a2feb68c33fcb3f3440c1808cedbba421d145f37022e876af9f0ab12dfaec5a59aa87f43787 SHA512 7c14c395fab3024191145b5c965c6c89211cd36ce405cafeef350aa6df9850bee9de65e756eab7d0bdeccb9409b829ea21552b9aac0166f50dcc17501b3dca8b |
24 |
-DIST aria2-1.33.0.tar.xz 1526936 BLAKE2B 69012e3221afe6e510a3fabe68236526fa64c982b84b2894c61a847084bd151b607bbfc46ac8b4e802ff796e1a2d4d056209e36e9273f20d3acd22e6cc5db978 SHA512 6b28282b5688444c99c3219d185c5c87f1760300f47fb9a87f9ee5eb62dd366d55a7706bb6edb16957f0a6926b354b0c6cbbe9887c94980c3027775d06589fea |
25 |
DIST aria2-1.33.1.tar.xz 1505208 BLAKE2B fb74add042d0cda81ca1b9c9d9b27b559ba859829c681520d6ece6322411f139667a1eaddc6f8aef23931e301ba4aab599ab17595df8d6ef477000f5e8fa83f0 SHA512 5379768a0960e46ed616a2540508d0dda4172c8d1a05021e50243241adb64448f5fa01878868ea206ec6b462fea39fa82284bb0f78ceec299eb289f94815b94a |
26 |
|
27 |
diff --git a/net-misc/aria2/aria2-1.31.0.ebuild b/net-misc/aria2/aria2-1.31.0.ebuild |
28 |
deleted file mode 100644 |
29 |
index b0c010ec863..00000000000 |
30 |
--- a/net-misc/aria2/aria2-1.31.0.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,152 +0,0 @@ |
33 |
-# Copyright 1999-2017 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI="6" |
37 |
- |
38 |
-inherit bash-completion-r1 |
39 |
- |
40 |
-DESCRIPTION="A download utility with segmented downloading with BitTorrent support" |
41 |
-HOMEPAGE="https://aria2.github.io/" |
42 |
-SRC_URI="https://github.com/aria2/${PN}/releases/download/release-${PV}/${P}.tar.xz" |
43 |
- |
44 |
-LICENSE="GPL-2" |
45 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
46 |
-SLOT="0" |
47 |
-IUSE="adns bittorrent +gnutls jemalloc libuv +libxml2 metalink +nettle nls sqlite scripts ssh ssl tcmalloc test xmlrpc" |
48 |
- |
49 |
-CDEPEND="sys-libs/zlib:0= |
50 |
- ssl? ( |
51 |
- app-misc/ca-certificates |
52 |
- gnutls? ( >=net-libs/gnutls-1.2.9:0= ) |
53 |
- !gnutls? ( dev-libs/openssl:0= ) ) |
54 |
- adns? ( >=net-dns/c-ares-1.5.0:0= ) |
55 |
- bittorrent? ( |
56 |
- ssl? ( |
57 |
- gnutls? ( |
58 |
- nettle? ( >=dev-libs/nettle-2.4:0=[gmp] >=dev-libs/gmp-5:0= ) |
59 |
- !nettle? ( >=dev-libs/libgcrypt-1.2.2:0= ) ) ) |
60 |
- !ssl? ( |
61 |
- nettle? ( >=dev-libs/nettle-2.4:0=[gmp] >=dev-libs/gmp-5:0= ) |
62 |
- !nettle? ( >=dev-libs/libgcrypt-1.2.2:0= ) ) ) |
63 |
- jemalloc? ( dev-libs/jemalloc ) |
64 |
- libuv? ( dev-libs/libuv:0= ) |
65 |
- metalink? ( |
66 |
- libxml2? ( >=dev-libs/libxml2-2.6.26:2= ) |
67 |
- !libxml2? ( dev-libs/expat:0= ) ) |
68 |
- sqlite? ( dev-db/sqlite:3= ) |
69 |
- ssh? ( net-libs/libssh2:= ) |
70 |
- tcmalloc? ( dev-util/google-perftools ) |
71 |
- xmlrpc? ( |
72 |
- libxml2? ( >=dev-libs/libxml2-2.6.26:2= ) |
73 |
- !libxml2? ( dev-libs/expat:0= ) )" |
74 |
- |
75 |
-DEPEND="${CDEPEND} |
76 |
- app-arch/xz-utils |
77 |
- virtual/pkgconfig |
78 |
- nls? ( sys-devel/gettext ) |
79 |
- test? ( >=dev-util/cppunit-1.12.0:0 )" |
80 |
-RDEPEND="${CDEPEND} |
81 |
- nls? ( virtual/libiconv virtual/libintl ) |
82 |
- scripts? ( dev-lang/ruby )" |
83 |
- |
84 |
-# xmlrpc has no explicit switch, it's turned out by any XML library |
85 |
-# so metalink implicitly forces it on |
86 |
-REQUIRED_USE="?? ( jemalloc tcmalloc ) |
87 |
- metalink? ( xmlrpc )" |
88 |
-RESTRICT="!test? ( test )" |
89 |
- |
90 |
-pkg_setup() { |
91 |
- if use scripts && ! use xmlrpc; then |
92 |
- ewarn "Please note that you may need to enable USE=xmlrpc to run the aria2rpc" |
93 |
- ewarn "and aria2mon scripts against the local aria2." |
94 |
- fi |
95 |
-} |
96 |
- |
97 |
-src_prepare() { |
98 |
- default |
99 |
- sed -i -e "s|/tmp|${T}|" test/*.cc test/*.txt || die "sed failed" |
100 |
-} |
101 |
- |
102 |
-src_configure() { |
103 |
- local myconf=( |
104 |
- # threads, epoll: check for best portability |
105 |
- |
106 |
- # do not try to compile and run a test LIBXML program |
107 |
- --disable-xmltest |
108 |
- # enable the shared library |
109 |
- --enable-libaria2 |
110 |
- # zlib should always be available anyway |
111 |
- --with-libz |
112 |
- --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt" |
113 |
- |
114 |
- # optional features |
115 |
- $(use_enable bittorrent) |
116 |
- $(use_enable metalink) |
117 |
- $(use_enable nls) |
118 |
- $(use_with adns libcares) |
119 |
- $(use_with jemalloc) |
120 |
- $(use_with libuv) |
121 |
- $(use_with sqlite sqlite3) |
122 |
- $(use_with ssh libssh2) |
123 |
- $(use_with tcmalloc) |
124 |
- ) |
125 |
- |
126 |
- # SSL := gnutls / openssl |
127 |
- # USE=ssl |
128 |
- # + USE=gnutls -> gnutls |
129 |
- # + USE=-gnutls -> openssl |
130 |
- |
131 |
- if use ssl; then |
132 |
- myconf+=( $(use_with gnutls) $(use_with !gnutls openssl) ) |
133 |
- else |
134 |
- myconf+=( --without-gnutls --without-openssl ) |
135 |
- fi |
136 |
- |
137 |
- # message-digest := nettle / gcrypt / openssl |
138 |
- # bignum := nettle+gmp / gcrypt / openssl |
139 |
- # bittorrent := message-digest + bignum |
140 |
- # USE=bittorrent |
141 |
- # + USE=(ssl -gnutls) -> openssl |
142 |
- # + USE=nettle -> nettle+gmp |
143 |
- # + USE=-nettle -> gcrypt |
144 |
- |
145 |
- if use !bittorrent || use ssl && use !gnutls; then |
146 |
- myconf+=( --without-libgcrypt --without-libnettle --without-libgmp ) |
147 |
- else |
148 |
- myconf+=( $(use_with !nettle libgcrypt) |
149 |
- $(use_with nettle libnettle) $(use_with nettle libgmp) ) |
150 |
- fi |
151 |
- |
152 |
- # metalink+xmlrpc := libxml2 / expat |
153 |
- # USE=(metalink || xmlrpc) |
154 |
- # + USE=libxml2 -> libxml2 |
155 |
- # + USE=-libxml2 -> expat |
156 |
- |
157 |
- if use metalink || use xmlrpc; then |
158 |
- myconf+=( $(use_with !libxml2 libexpat) $(use_with libxml2) ) |
159 |
- else |
160 |
- myconf+=( --without-libexpat --without-libxml2 ) |
161 |
- fi |
162 |
- |
163 |
- # Note: |
164 |
- # - always enable gzip/http compression since zlib should always be available anyway |
165 |
- # - always enable epoll since we can assume kernel 2.6.x |
166 |
- # - other options for threads: solaris, pth, win32 |
167 |
- econf "${myconf[@]}" |
168 |
-} |
169 |
- |
170 |
-src_install() { |
171 |
- default |
172 |
- rm -rf "${D}"/usr/share/doc/aria2 \ |
173 |
- "${D}"/usr/share/doc/${PF}/README{,.html} |
174 |
- |
175 |
- dobashcomp doc/bash_completion/aria2c |
176 |
- use scripts && dobin doc/xmlrpc/aria2{mon,rpc} |
177 |
-} |
178 |
- |
179 |
-pkg_postinst() { |
180 |
- if use xmlrpc; then |
181 |
- elog "If you would like to use the additional aria2mon and aria2rpc tools," |
182 |
- elog "you need to have \033[1mdev-lang/ruby\033[0m installed." |
183 |
- fi |
184 |
-} |
185 |
|
186 |
diff --git a/net-misc/aria2/aria2-1.32.0.ebuild b/net-misc/aria2/aria2-1.32.0.ebuild |
187 |
deleted file mode 100644 |
188 |
index de956e8d169..00000000000 |
189 |
--- a/net-misc/aria2/aria2-1.32.0.ebuild |
190 |
+++ /dev/null |
191 |
@@ -1,152 +0,0 @@ |
192 |
-# Copyright 1999-2017 Gentoo Foundation |
193 |
-# Distributed under the terms of the GNU General Public License v2 |
194 |
- |
195 |
-EAPI="6" |
196 |
- |
197 |
-inherit bash-completion-r1 |
198 |
- |
199 |
-DESCRIPTION="A download utility with segmented downloading with BitTorrent support" |
200 |
-HOMEPAGE="https://aria2.github.io/" |
201 |
-SRC_URI="https://github.com/aria2/${PN}/releases/download/release-${PV}/${P}.tar.xz" |
202 |
- |
203 |
-LICENSE="GPL-2" |
204 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
205 |
-SLOT="0" |
206 |
-IUSE="adns bittorrent +gnutls jemalloc libuv +libxml2 metalink +nettle nls sqlite scripts ssh ssl tcmalloc test xmlrpc" |
207 |
- |
208 |
-CDEPEND="sys-libs/zlib:0= |
209 |
- ssl? ( |
210 |
- app-misc/ca-certificates |
211 |
- gnutls? ( >=net-libs/gnutls-1.2.9:0= ) |
212 |
- !gnutls? ( dev-libs/openssl:0= ) ) |
213 |
- adns? ( >=net-dns/c-ares-1.5.0:0= ) |
214 |
- bittorrent? ( |
215 |
- ssl? ( |
216 |
- gnutls? ( |
217 |
- nettle? ( >=dev-libs/nettle-2.4:0=[gmp] >=dev-libs/gmp-6:0= ) |
218 |
- !nettle? ( >=dev-libs/libgcrypt-1.2.2:0= ) ) ) |
219 |
- !ssl? ( |
220 |
- nettle? ( >=dev-libs/nettle-2.4:0=[gmp] >=dev-libs/gmp-6:0= ) |
221 |
- !nettle? ( >=dev-libs/libgcrypt-1.2.2:0= ) ) ) |
222 |
- jemalloc? ( dev-libs/jemalloc ) |
223 |
- libuv? ( dev-libs/libuv:0= ) |
224 |
- metalink? ( |
225 |
- libxml2? ( >=dev-libs/libxml2-2.6.26:2= ) |
226 |
- !libxml2? ( dev-libs/expat:0= ) ) |
227 |
- sqlite? ( dev-db/sqlite:3= ) |
228 |
- ssh? ( net-libs/libssh2:= ) |
229 |
- tcmalloc? ( dev-util/google-perftools ) |
230 |
- xmlrpc? ( |
231 |
- libxml2? ( >=dev-libs/libxml2-2.6.26:2= ) |
232 |
- !libxml2? ( dev-libs/expat:0= ) )" |
233 |
- |
234 |
-DEPEND="${CDEPEND} |
235 |
- app-arch/xz-utils |
236 |
- virtual/pkgconfig |
237 |
- nls? ( sys-devel/gettext ) |
238 |
- test? ( >=dev-util/cppunit-1.12.0:0 )" |
239 |
-RDEPEND="${CDEPEND} |
240 |
- nls? ( virtual/libiconv virtual/libintl ) |
241 |
- scripts? ( dev-lang/ruby )" |
242 |
- |
243 |
-# xmlrpc has no explicit switch, it's turned out by any XML library |
244 |
-# so metalink implicitly forces it on |
245 |
-REQUIRED_USE="?? ( jemalloc tcmalloc ) |
246 |
- metalink? ( xmlrpc )" |
247 |
-RESTRICT="!test? ( test )" |
248 |
- |
249 |
-pkg_setup() { |
250 |
- if use scripts && ! use xmlrpc; then |
251 |
- ewarn "Please note that you may need to enable USE=xmlrpc to run the aria2rpc" |
252 |
- ewarn "and aria2mon scripts against the local aria2." |
253 |
- fi |
254 |
-} |
255 |
- |
256 |
-src_prepare() { |
257 |
- default |
258 |
- sed -i -e "s|/tmp|${T}|" test/*.cc test/*.txt || die "sed failed" |
259 |
-} |
260 |
- |
261 |
-src_configure() { |
262 |
- local myconf=( |
263 |
- # threads, epoll: check for best portability |
264 |
- |
265 |
- # do not try to compile and run a test LIBXML program |
266 |
- --disable-xmltest |
267 |
- # enable the shared library |
268 |
- --enable-libaria2 |
269 |
- # zlib should always be available anyway |
270 |
- --with-libz |
271 |
- --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt" |
272 |
- |
273 |
- # optional features |
274 |
- $(use_enable bittorrent) |
275 |
- $(use_enable metalink) |
276 |
- $(use_enable nls) |
277 |
- $(use_with adns libcares) |
278 |
- $(use_with jemalloc) |
279 |
- $(use_with libuv) |
280 |
- $(use_with sqlite sqlite3) |
281 |
- $(use_with ssh libssh2) |
282 |
- $(use_with tcmalloc) |
283 |
- ) |
284 |
- |
285 |
- # SSL := gnutls / openssl |
286 |
- # USE=ssl |
287 |
- # + USE=gnutls -> gnutls |
288 |
- # + USE=-gnutls -> openssl |
289 |
- |
290 |
- if use ssl; then |
291 |
- myconf+=( $(use_with gnutls) $(use_with !gnutls openssl) ) |
292 |
- else |
293 |
- myconf+=( --without-gnutls --without-openssl ) |
294 |
- fi |
295 |
- |
296 |
- # message-digest := nettle / gcrypt / openssl |
297 |
- # bignum := nettle+gmp / gcrypt / openssl |
298 |
- # bittorrent := message-digest + bignum |
299 |
- # USE=bittorrent |
300 |
- # + USE=(ssl -gnutls) -> openssl |
301 |
- # + USE=nettle -> nettle+gmp |
302 |
- # + USE=-nettle -> gcrypt |
303 |
- |
304 |
- if use !bittorrent || use ssl && use !gnutls; then |
305 |
- myconf+=( --without-libgcrypt --without-libnettle --without-libgmp ) |
306 |
- else |
307 |
- myconf+=( $(use_with !nettle libgcrypt) |
308 |
- $(use_with nettle libnettle) $(use_with nettle libgmp) ) |
309 |
- fi |
310 |
- |
311 |
- # metalink+xmlrpc := libxml2 / expat |
312 |
- # USE=(metalink || xmlrpc) |
313 |
- # + USE=libxml2 -> libxml2 |
314 |
- # + USE=-libxml2 -> expat |
315 |
- |
316 |
- if use metalink || use xmlrpc; then |
317 |
- myconf+=( $(use_with !libxml2 libexpat) $(use_with libxml2) ) |
318 |
- else |
319 |
- myconf+=( --without-libexpat --without-libxml2 ) |
320 |
- fi |
321 |
- |
322 |
- # Note: |
323 |
- # - always enable gzip/http compression since zlib should always be available anyway |
324 |
- # - always enable epoll since we can assume kernel 2.6.x |
325 |
- # - other options for threads: solaris, pth, win32 |
326 |
- econf "${myconf[@]}" |
327 |
-} |
328 |
- |
329 |
-src_install() { |
330 |
- default |
331 |
- rm -rf "${D}"/usr/share/doc/aria2 \ |
332 |
- "${D}"/usr/share/doc/${PF}/README{,.html} |
333 |
- |
334 |
- dobashcomp doc/bash_completion/aria2c |
335 |
- use scripts && dobin doc/xmlrpc/aria2{mon,rpc} |
336 |
-} |
337 |
- |
338 |
-pkg_postinst() { |
339 |
- if use xmlrpc; then |
340 |
- elog "If you would like to use the additional aria2mon and aria2rpc tools," |
341 |
- elog "you need to have \033[1mdev-lang/ruby\033[0m installed." |
342 |
- fi |
343 |
-} |
344 |
|
345 |
diff --git a/net-misc/aria2/aria2-1.33.0.ebuild b/net-misc/aria2/aria2-1.33.0.ebuild |
346 |
deleted file mode 100644 |
347 |
index de956e8d169..00000000000 |
348 |
--- a/net-misc/aria2/aria2-1.33.0.ebuild |
349 |
+++ /dev/null |
350 |
@@ -1,152 +0,0 @@ |
351 |
-# Copyright 1999-2017 Gentoo Foundation |
352 |
-# Distributed under the terms of the GNU General Public License v2 |
353 |
- |
354 |
-EAPI="6" |
355 |
- |
356 |
-inherit bash-completion-r1 |
357 |
- |
358 |
-DESCRIPTION="A download utility with segmented downloading with BitTorrent support" |
359 |
-HOMEPAGE="https://aria2.github.io/" |
360 |
-SRC_URI="https://github.com/aria2/${PN}/releases/download/release-${PV}/${P}.tar.xz" |
361 |
- |
362 |
-LICENSE="GPL-2" |
363 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
364 |
-SLOT="0" |
365 |
-IUSE="adns bittorrent +gnutls jemalloc libuv +libxml2 metalink +nettle nls sqlite scripts ssh ssl tcmalloc test xmlrpc" |
366 |
- |
367 |
-CDEPEND="sys-libs/zlib:0= |
368 |
- ssl? ( |
369 |
- app-misc/ca-certificates |
370 |
- gnutls? ( >=net-libs/gnutls-1.2.9:0= ) |
371 |
- !gnutls? ( dev-libs/openssl:0= ) ) |
372 |
- adns? ( >=net-dns/c-ares-1.5.0:0= ) |
373 |
- bittorrent? ( |
374 |
- ssl? ( |
375 |
- gnutls? ( |
376 |
- nettle? ( >=dev-libs/nettle-2.4:0=[gmp] >=dev-libs/gmp-6:0= ) |
377 |
- !nettle? ( >=dev-libs/libgcrypt-1.2.2:0= ) ) ) |
378 |
- !ssl? ( |
379 |
- nettle? ( >=dev-libs/nettle-2.4:0=[gmp] >=dev-libs/gmp-6:0= ) |
380 |
- !nettle? ( >=dev-libs/libgcrypt-1.2.2:0= ) ) ) |
381 |
- jemalloc? ( dev-libs/jemalloc ) |
382 |
- libuv? ( dev-libs/libuv:0= ) |
383 |
- metalink? ( |
384 |
- libxml2? ( >=dev-libs/libxml2-2.6.26:2= ) |
385 |
- !libxml2? ( dev-libs/expat:0= ) ) |
386 |
- sqlite? ( dev-db/sqlite:3= ) |
387 |
- ssh? ( net-libs/libssh2:= ) |
388 |
- tcmalloc? ( dev-util/google-perftools ) |
389 |
- xmlrpc? ( |
390 |
- libxml2? ( >=dev-libs/libxml2-2.6.26:2= ) |
391 |
- !libxml2? ( dev-libs/expat:0= ) )" |
392 |
- |
393 |
-DEPEND="${CDEPEND} |
394 |
- app-arch/xz-utils |
395 |
- virtual/pkgconfig |
396 |
- nls? ( sys-devel/gettext ) |
397 |
- test? ( >=dev-util/cppunit-1.12.0:0 )" |
398 |
-RDEPEND="${CDEPEND} |
399 |
- nls? ( virtual/libiconv virtual/libintl ) |
400 |
- scripts? ( dev-lang/ruby )" |
401 |
- |
402 |
-# xmlrpc has no explicit switch, it's turned out by any XML library |
403 |
-# so metalink implicitly forces it on |
404 |
-REQUIRED_USE="?? ( jemalloc tcmalloc ) |
405 |
- metalink? ( xmlrpc )" |
406 |
-RESTRICT="!test? ( test )" |
407 |
- |
408 |
-pkg_setup() { |
409 |
- if use scripts && ! use xmlrpc; then |
410 |
- ewarn "Please note that you may need to enable USE=xmlrpc to run the aria2rpc" |
411 |
- ewarn "and aria2mon scripts against the local aria2." |
412 |
- fi |
413 |
-} |
414 |
- |
415 |
-src_prepare() { |
416 |
- default |
417 |
- sed -i -e "s|/tmp|${T}|" test/*.cc test/*.txt || die "sed failed" |
418 |
-} |
419 |
- |
420 |
-src_configure() { |
421 |
- local myconf=( |
422 |
- # threads, epoll: check for best portability |
423 |
- |
424 |
- # do not try to compile and run a test LIBXML program |
425 |
- --disable-xmltest |
426 |
- # enable the shared library |
427 |
- --enable-libaria2 |
428 |
- # zlib should always be available anyway |
429 |
- --with-libz |
430 |
- --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt" |
431 |
- |
432 |
- # optional features |
433 |
- $(use_enable bittorrent) |
434 |
- $(use_enable metalink) |
435 |
- $(use_enable nls) |
436 |
- $(use_with adns libcares) |
437 |
- $(use_with jemalloc) |
438 |
- $(use_with libuv) |
439 |
- $(use_with sqlite sqlite3) |
440 |
- $(use_with ssh libssh2) |
441 |
- $(use_with tcmalloc) |
442 |
- ) |
443 |
- |
444 |
- # SSL := gnutls / openssl |
445 |
- # USE=ssl |
446 |
- # + USE=gnutls -> gnutls |
447 |
- # + USE=-gnutls -> openssl |
448 |
- |
449 |
- if use ssl; then |
450 |
- myconf+=( $(use_with gnutls) $(use_with !gnutls openssl) ) |
451 |
- else |
452 |
- myconf+=( --without-gnutls --without-openssl ) |
453 |
- fi |
454 |
- |
455 |
- # message-digest := nettle / gcrypt / openssl |
456 |
- # bignum := nettle+gmp / gcrypt / openssl |
457 |
- # bittorrent := message-digest + bignum |
458 |
- # USE=bittorrent |
459 |
- # + USE=(ssl -gnutls) -> openssl |
460 |
- # + USE=nettle -> nettle+gmp |
461 |
- # + USE=-nettle -> gcrypt |
462 |
- |
463 |
- if use !bittorrent || use ssl && use !gnutls; then |
464 |
- myconf+=( --without-libgcrypt --without-libnettle --without-libgmp ) |
465 |
- else |
466 |
- myconf+=( $(use_with !nettle libgcrypt) |
467 |
- $(use_with nettle libnettle) $(use_with nettle libgmp) ) |
468 |
- fi |
469 |
- |
470 |
- # metalink+xmlrpc := libxml2 / expat |
471 |
- # USE=(metalink || xmlrpc) |
472 |
- # + USE=libxml2 -> libxml2 |
473 |
- # + USE=-libxml2 -> expat |
474 |
- |
475 |
- if use metalink || use xmlrpc; then |
476 |
- myconf+=( $(use_with !libxml2 libexpat) $(use_with libxml2) ) |
477 |
- else |
478 |
- myconf+=( --without-libexpat --without-libxml2 ) |
479 |
- fi |
480 |
- |
481 |
- # Note: |
482 |
- # - always enable gzip/http compression since zlib should always be available anyway |
483 |
- # - always enable epoll since we can assume kernel 2.6.x |
484 |
- # - other options for threads: solaris, pth, win32 |
485 |
- econf "${myconf[@]}" |
486 |
-} |
487 |
- |
488 |
-src_install() { |
489 |
- default |
490 |
- rm -rf "${D}"/usr/share/doc/aria2 \ |
491 |
- "${D}"/usr/share/doc/${PF}/README{,.html} |
492 |
- |
493 |
- dobashcomp doc/bash_completion/aria2c |
494 |
- use scripts && dobin doc/xmlrpc/aria2{mon,rpc} |
495 |
-} |
496 |
- |
497 |
-pkg_postinst() { |
498 |
- if use xmlrpc; then |
499 |
- elog "If you would like to use the additional aria2mon and aria2rpc tools," |
500 |
- elog "you need to have \033[1mdev-lang/ruby\033[0m installed." |
501 |
- fi |
502 |
-} |