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