Gentoo Archives: gentoo-commits

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