1 |
commit: ae0ceffc856fe9b039b5db5c464b2495b039a04f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 10 14:33:30 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 10 15:07:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae0ceffc |
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.ebuild | 153 ------------------------------------- |
13 |
1 file changed, 153 deletions(-) |
14 |
|
15 |
diff --git a/net-misc/aria2/aria2-1.34.0.ebuild b/net-misc/aria2/aria2-1.34.0.ebuild |
16 |
deleted file mode 100644 |
17 |
index 8da582d6b7b..00000000000 |
18 |
--- a/net-misc/aria2/aria2-1.34.0.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,153 +0,0 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
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" |
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 |
- default |
88 |
- sed -i -e "s|/tmp|${T}|" test/*.cc test/*.txt || die "sed failed" |
89 |
-} |
90 |
- |
91 |
-src_configure() { |
92 |
- local myconf=( |
93 |
- # threads, epoll: check for best portability |
94 |
- |
95 |
- # do not try to compile and run a test LIBXML program |
96 |
- --disable-xmltest |
97 |
- # enable the shared library |
98 |
- --enable-libaria2 |
99 |
- # zlib should always be available anyway |
100 |
- --with-libz |
101 |
- --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt" |
102 |
- |
103 |
- # optional features |
104 |
- $(use_enable bittorrent) |
105 |
- $(use_enable metalink) |
106 |
- $(use_enable nls) |
107 |
- $(use_with adns libcares) |
108 |
- $(use_with jemalloc) |
109 |
- $(use_with libuv) |
110 |
- $(use_with sqlite sqlite3) |
111 |
- $(use_with ssh libssh2) |
112 |
- $(use_with tcmalloc) |
113 |
- ) |
114 |
- |
115 |
- # SSL := gnutls / openssl |
116 |
- # USE=ssl |
117 |
- # + USE=gnutls -> gnutls |
118 |
- # + USE=-gnutls -> openssl |
119 |
- |
120 |
- if use ssl; then |
121 |
- myconf+=( $(use_with gnutls) $(use_with !gnutls openssl) ) |
122 |
- else |
123 |
- myconf+=( --without-gnutls --without-openssl ) |
124 |
- fi |
125 |
- |
126 |
- # message-digest := nettle / gcrypt / openssl |
127 |
- # bignum := nettle+gmp / gcrypt / openssl |
128 |
- # bittorrent := message-digest + bignum |
129 |
- # USE=bittorrent |
130 |
- # + USE=(ssl -gnutls) -> openssl |
131 |
- # + USE=nettle -> nettle+gmp |
132 |
- # + USE=-nettle -> gcrypt |
133 |
- |
134 |
- if use !bittorrent || use ssl && use !gnutls; then |
135 |
- myconf+=( --without-libgcrypt --without-libnettle --without-libgmp ) |
136 |
- else |
137 |
- myconf+=( $(use_with !nettle libgcrypt) |
138 |
- $(use_with nettle libnettle) $(use_with nettle libgmp) ) |
139 |
- fi |
140 |
- |
141 |
- # metalink+xmlrpc := libxml2 / expat |
142 |
- # USE=(metalink || xmlrpc) |
143 |
- # + USE=libxml2 -> libxml2 |
144 |
- # + USE=-libxml2 -> expat |
145 |
- |
146 |
- if use metalink || use xmlrpc; then |
147 |
- myconf+=( $(use_with !libxml2 libexpat) $(use_with libxml2) ) |
148 |
- else |
149 |
- myconf+=( --without-libexpat --without-libxml2 ) |
150 |
- fi |
151 |
- |
152 |
- # Note: |
153 |
- # - always enable gzip/http compression since zlib should always be available anyway |
154 |
- # - always enable epoll since we can assume kernel 2.6.x |
155 |
- # - other options for threads: solaris, pth, win32 |
156 |
- econf "${myconf[@]}" |
157 |
-} |
158 |
- |
159 |
-src_install() { |
160 |
- default |
161 |
- rm -rf "${D}"/usr/share/doc/aria2 \ |
162 |
- "${D}"/usr/share/doc/${PF}/README{,.html} |
163 |
- |
164 |
- dobashcomp doc/bash_completion/aria2c |
165 |
- use scripts && dobin doc/xmlrpc/aria2{mon,rpc} |
166 |
-} |
167 |
- |
168 |
-pkg_postinst() { |
169 |
- if use xmlrpc; then |
170 |
- elog "If you would like to use the additional aria2mon and aria2rpc tools," |
171 |
- elog "you need to have \033[1mdev-lang/ruby\033[0m installed." |
172 |
- fi |
173 |
-} |