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