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