1 |
commit: 0ab2cc38f42df609a9b4d6bec412f373b49a42fb |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 29 16:22:22 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 29 22:22:00 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ab2cc38 |
7 |
|
8 |
net-misc/aria2: Bump to 1.32.0 |
9 |
|
10 |
net-misc/aria2/Manifest | 1 + |
11 |
net-misc/aria2/aria2-1.32.0.ebuild | 152 +++++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 153 insertions(+) |
13 |
|
14 |
diff --git a/net-misc/aria2/Manifest b/net-misc/aria2/Manifest |
15 |
index 34af613fe10..9bf92af126d 100644 |
16 |
--- a/net-misc/aria2/Manifest |
17 |
+++ b/net-misc/aria2/Manifest |
18 |
@@ -1,2 +1,3 @@ |
19 |
DIST aria2-1.30.0.tar.xz 1497124 SHA256 bf6c5366d11d2a6038c8e19f01f9b874041793aaf317e0206120e3e8c9c431f6 SHA512 8c3deb4b58b9db9e8de52f48f6e863e07743ae4af14e2b2d64ddcac94b6aec16ff8d4f27e7d6076426d597af9e6e0988289f3a1c156796c9d79ee7f60f5edc38 WHIRLPOOL c3613212226c1fe6db20b45dce021441fceaf26970e8773064ef254e3a1272550c9c8e69d2fa677d249a70c853d6ba65c91fa1a42c33009127177b496fcbda0a |
20 |
DIST aria2-1.31.0.tar.xz 1501388 SHA256 7b85619048b23406f241e38a5b1b8b0bc2cae9e80fd117810c2a71ecca813f8c SHA512 a0a1312522324dc0bc24cf1a5cceaef49d40445668ed0bd98dc3cdd5e2edb428552e97504c8c072f5d1180d6bbd252de01d290ef5c94d1803b8ade330bc2710f WHIRLPOOL 0b5af6d2f9f7e62a2620003a0aa44e842517cb33be00a7e1b0f7ac2720823c5d32deafd91ae096d8ef028f89885c08f459a03955ee349fd6d21dade190895596 |
21 |
+DIST aria2-1.32.0.tar.xz 1502192 SHA256 546e9194a9135d665fce572cb93c88f30fb5601d113bfa19951107ced682dc50 SHA512 7c14c395fab3024191145b5c965c6c89211cd36ce405cafeef350aa6df9850bee9de65e756eab7d0bdeccb9409b829ea21552b9aac0166f50dcc17501b3dca8b WHIRLPOOL 763188033573b5928c7935229505cd82f39009952aa78b7871c1c1579dde54b46185a0d378e3d7241230d0611ba1b7d96c04ed4c09049d38d89b6b550391a0aa |
22 |
|
23 |
diff --git a/net-misc/aria2/aria2-1.32.0.ebuild b/net-misc/aria2/aria2-1.32.0.ebuild |
24 |
new file mode 100644 |
25 |
index 00000000000..b0c010ec863 |
26 |
--- /dev/null |
27 |
+++ b/net-misc/aria2/aria2-1.32.0.ebuild |
28 |
@@ -0,0 +1,152 @@ |
29 |
+# Copyright 1999-2017 Gentoo Foundation |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+ |
32 |
+EAPI="6" |
33 |
+ |
34 |
+inherit bash-completion-r1 |
35 |
+ |
36 |
+DESCRIPTION="A download utility with segmented downloading with BitTorrent support" |
37 |
+HOMEPAGE="https://aria2.github.io/" |
38 |
+SRC_URI="https://github.com/aria2/${PN}/releases/download/release-${PV}/${P}.tar.xz" |
39 |
+ |
40 |
+LICENSE="GPL-2" |
41 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
42 |
+SLOT="0" |
43 |
+IUSE="adns bittorrent +gnutls jemalloc libuv +libxml2 metalink +nettle nls sqlite scripts ssh ssl tcmalloc test xmlrpc" |
44 |
+ |
45 |
+CDEPEND="sys-libs/zlib:0= |
46 |
+ ssl? ( |
47 |
+ app-misc/ca-certificates |
48 |
+ gnutls? ( >=net-libs/gnutls-1.2.9:0= ) |
49 |
+ !gnutls? ( dev-libs/openssl:0= ) ) |
50 |
+ adns? ( >=net-dns/c-ares-1.5.0:0= ) |
51 |
+ bittorrent? ( |
52 |
+ ssl? ( |
53 |
+ gnutls? ( |
54 |
+ nettle? ( >=dev-libs/nettle-2.4:0=[gmp] >=dev-libs/gmp-5:0= ) |
55 |
+ !nettle? ( >=dev-libs/libgcrypt-1.2.2:0= ) ) ) |
56 |
+ !ssl? ( |
57 |
+ nettle? ( >=dev-libs/nettle-2.4:0=[gmp] >=dev-libs/gmp-5:0= ) |
58 |
+ !nettle? ( >=dev-libs/libgcrypt-1.2.2:0= ) ) ) |
59 |
+ jemalloc? ( dev-libs/jemalloc ) |
60 |
+ libuv? ( dev-libs/libuv:0= ) |
61 |
+ metalink? ( |
62 |
+ libxml2? ( >=dev-libs/libxml2-2.6.26:2= ) |
63 |
+ !libxml2? ( dev-libs/expat:0= ) ) |
64 |
+ sqlite? ( dev-db/sqlite:3= ) |
65 |
+ ssh? ( net-libs/libssh2:= ) |
66 |
+ tcmalloc? ( dev-util/google-perftools ) |
67 |
+ xmlrpc? ( |
68 |
+ libxml2? ( >=dev-libs/libxml2-2.6.26:2= ) |
69 |
+ !libxml2? ( dev-libs/expat:0= ) )" |
70 |
+ |
71 |
+DEPEND="${CDEPEND} |
72 |
+ app-arch/xz-utils |
73 |
+ virtual/pkgconfig |
74 |
+ nls? ( sys-devel/gettext ) |
75 |
+ test? ( >=dev-util/cppunit-1.12.0:0 )" |
76 |
+RDEPEND="${CDEPEND} |
77 |
+ nls? ( virtual/libiconv virtual/libintl ) |
78 |
+ scripts? ( dev-lang/ruby )" |
79 |
+ |
80 |
+# xmlrpc has no explicit switch, it's turned out by any XML library |
81 |
+# so metalink implicitly forces it on |
82 |
+REQUIRED_USE="?? ( jemalloc tcmalloc ) |
83 |
+ metalink? ( xmlrpc )" |
84 |
+RESTRICT="!test? ( test )" |
85 |
+ |
86 |
+pkg_setup() { |
87 |
+ if use scripts && ! use xmlrpc; then |
88 |
+ ewarn "Please note that you may need to enable USE=xmlrpc to run the aria2rpc" |
89 |
+ ewarn "and aria2mon scripts against the local aria2." |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ default |
95 |
+ sed -i -e "s|/tmp|${T}|" test/*.cc test/*.txt || die "sed failed" |
96 |
+} |
97 |
+ |
98 |
+src_configure() { |
99 |
+ local myconf=( |
100 |
+ # threads, epoll: check for best portability |
101 |
+ |
102 |
+ # do not try to compile and run a test LIBXML program |
103 |
+ --disable-xmltest |
104 |
+ # enable the shared library |
105 |
+ --enable-libaria2 |
106 |
+ # zlib should always be available anyway |
107 |
+ --with-libz |
108 |
+ --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt" |
109 |
+ |
110 |
+ # optional features |
111 |
+ $(use_enable bittorrent) |
112 |
+ $(use_enable metalink) |
113 |
+ $(use_enable nls) |
114 |
+ $(use_with adns libcares) |
115 |
+ $(use_with jemalloc) |
116 |
+ $(use_with libuv) |
117 |
+ $(use_with sqlite sqlite3) |
118 |
+ $(use_with ssh libssh2) |
119 |
+ $(use_with tcmalloc) |
120 |
+ ) |
121 |
+ |
122 |
+ # SSL := gnutls / openssl |
123 |
+ # USE=ssl |
124 |
+ # + USE=gnutls -> gnutls |
125 |
+ # + USE=-gnutls -> openssl |
126 |
+ |
127 |
+ if use ssl; then |
128 |
+ myconf+=( $(use_with gnutls) $(use_with !gnutls openssl) ) |
129 |
+ else |
130 |
+ myconf+=( --without-gnutls --without-openssl ) |
131 |
+ fi |
132 |
+ |
133 |
+ # message-digest := nettle / gcrypt / openssl |
134 |
+ # bignum := nettle+gmp / gcrypt / openssl |
135 |
+ # bittorrent := message-digest + bignum |
136 |
+ # USE=bittorrent |
137 |
+ # + USE=(ssl -gnutls) -> openssl |
138 |
+ # + USE=nettle -> nettle+gmp |
139 |
+ # + USE=-nettle -> gcrypt |
140 |
+ |
141 |
+ if use !bittorrent || use ssl && use !gnutls; then |
142 |
+ myconf+=( --without-libgcrypt --without-libnettle --without-libgmp ) |
143 |
+ else |
144 |
+ myconf+=( $(use_with !nettle libgcrypt) |
145 |
+ $(use_with nettle libnettle) $(use_with nettle libgmp) ) |
146 |
+ fi |
147 |
+ |
148 |
+ # metalink+xmlrpc := libxml2 / expat |
149 |
+ # USE=(metalink || xmlrpc) |
150 |
+ # + USE=libxml2 -> libxml2 |
151 |
+ # + USE=-libxml2 -> expat |
152 |
+ |
153 |
+ if use metalink || use xmlrpc; then |
154 |
+ myconf+=( $(use_with !libxml2 libexpat) $(use_with libxml2) ) |
155 |
+ else |
156 |
+ myconf+=( --without-libexpat --without-libxml2 ) |
157 |
+ fi |
158 |
+ |
159 |
+ # Note: |
160 |
+ # - always enable gzip/http compression since zlib should always be available anyway |
161 |
+ # - always enable epoll since we can assume kernel 2.6.x |
162 |
+ # - other options for threads: solaris, pth, win32 |
163 |
+ econf "${myconf[@]}" |
164 |
+} |
165 |
+ |
166 |
+src_install() { |
167 |
+ default |
168 |
+ rm -rf "${D}"/usr/share/doc/aria2 \ |
169 |
+ "${D}"/usr/share/doc/${PF}/README{,.html} |
170 |
+ |
171 |
+ dobashcomp doc/bash_completion/aria2c |
172 |
+ use scripts && dobin doc/xmlrpc/aria2{mon,rpc} |
173 |
+} |
174 |
+ |
175 |
+pkg_postinst() { |
176 |
+ if use xmlrpc; then |
177 |
+ elog "If you would like to use the additional aria2mon and aria2rpc tools," |
178 |
+ elog "you need to have \033[1mdev-lang/ruby\033[0m installed." |
179 |
+ fi |
180 |
+} |