1 |
commit: 04a1aade2834f9e3ccc9e1e94cb10072eeb11743 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 27 14:11:27 2022 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 27 14:11:51 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04a1aade |
7 |
|
8 |
net-misc/wget2: Bump to version 2.0.1 |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
net-misc/wget2/Manifest | 1 + |
13 |
net-misc/wget2/wget2-2.0.1.ebuild | 124 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 125 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/wget2/Manifest b/net-misc/wget2/Manifest |
17 |
index 6ea85dbe2ae0..69b5cbd09779 100644 |
18 |
--- a/net-misc/wget2/Manifest |
19 |
+++ b/net-misc/wget2/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST wget2-2.0.0.tar.gz 3565643 BLAKE2B 8792950942c88aceed41aa1d00b2c39d55e057795d0f68e8bfe9a1da548161aa49eaa82d13e8ea3e14cccee4423d41f9643baff1007361c26464b10683a8ef88 SHA512 59be98a43057220f4eb4314d0876990c21bbc2606a82444e03282ca55d6de18a382fb75b3fcbb1e7f5a5930cd9a81c6c73cdac2ffba3932b55816fb8140c00eb |
22 |
+DIST wget2-2.0.1.tar.gz 3780748 BLAKE2B cc28c58ab59c28540259545d60b19d6c513725e856fce02690e40ab0818d213bd656de704bd6310650af7190d7d3265fee859eebab326ad441f7351213fce6d3 SHA512 7a4afebf87ecda9e7e2d1fb2861c220875a96bab7c7ead6397c7ac11b6effae80d80f71b57a58d6b91a6c849b9a9fd974ce620d3050f677dd0fc4bc05358b27e |
23 |
|
24 |
diff --git a/net-misc/wget2/wget2-2.0.1.ebuild b/net-misc/wget2/wget2-2.0.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..57cdc0a2f977 |
27 |
--- /dev/null |
28 |
+++ b/net-misc/wget2/wget2-2.0.1.ebuild |
29 |
@@ -0,0 +1,124 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DESCRIPTION="GNU Wget2 is a file and recursive website downloader" |
36 |
+HOMEPAGE="https://gitlab.com/gnuwget/wget2" |
37 |
+if [[ "${PV}" == *9999 ]] ; then |
38 |
+ inherit autotools git-r3 |
39 |
+ EGIT_REPO_URI="https://gitlab.com/gnuwget/wget2.git" |
40 |
+else |
41 |
+ SRC_URI="mirror://gnu/wget/${P}.tar.gz" |
42 |
+ KEYWORDS="~amd64 ~x86" |
43 |
+fi |
44 |
+LICENSE="GPL-3" |
45 |
+SLOT="0/0" # subslot = libwget.so version |
46 |
+IUSE="brotli bzip2 doc +gnutls gpgme +http2 idn lzma openssl pcre psl +ssl test valgrind xattr zlib" |
47 |
+REQUIRED_USE="valgrind? ( test )" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ brotli? ( app-arch/brotli ) |
51 |
+ bzip2? ( app-arch/bzip2 ) |
52 |
+ !gnutls? ( dev-libs/libgcrypt:= ) |
53 |
+ ssl? ( |
54 |
+ gnutls? ( net-libs/gnutls:= ) |
55 |
+ !gnutls? ( |
56 |
+ dev-libs/openssl:0= |
57 |
+ ) |
58 |
+ ) |
59 |
+ gpgme? ( |
60 |
+ app-crypt/gpgme:= |
61 |
+ dev-libs/libassuan |
62 |
+ dev-libs/libgpg-error |
63 |
+ ) |
64 |
+ http2? ( net-libs/nghttp2 ) |
65 |
+ idn? ( net-dns/libidn2:= ) |
66 |
+ lzma? ( app-arch/xz-utils ) |
67 |
+ pcre? ( dev-libs/libpcre2 ) |
68 |
+ psl? ( net-libs/libpsl ) |
69 |
+ xattr? ( sys-apps/attr ) |
70 |
+ zlib? ( sys-libs/zlib ) |
71 |
+" |
72 |
+DEPEND="${RDEPEND}" |
73 |
+BDEPEND=" |
74 |
+ virtual/pkgconfig |
75 |
+ doc? ( app-doc/doxygen ) |
76 |
+ valgrind? ( dev-util/valgrind ) |
77 |
+" |
78 |
+ |
79 |
+RESTRICT="!test? ( test )" |
80 |
+ |
81 |
+src_unpack() { |
82 |
+ if [[ "${PV}" == *9999 ]] ; then |
83 |
+ git-r3_src_unpack |
84 |
+ |
85 |
+ # We need to mess with gnulib :-/ |
86 |
+ EGIT_REPO_URI="https://git.savannah.gnu.org/r/gnulib.git" \ |
87 |
+ EGIT_CHECKOUT_DIR="${WORKDIR}/gnulib" \ |
88 |
+ git-r3_src_unpack |
89 |
+ else |
90 |
+ default |
91 |
+ fi |
92 |
+} |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ default |
96 |
+ if [[ "${PV}" == *9999 ]] ; then |
97 |
+ local bootstrap_opts=( |
98 |
+ --gnulib-srcdir=../gnulib |
99 |
+ --no-bootstrap-sync |
100 |
+ --copy |
101 |
+ --no-git |
102 |
+ --skip-po |
103 |
+ ) |
104 |
+ AUTORECONF="/bin/true" \ |
105 |
+ LIBTOOLIZE="/bin/true" \ |
106 |
+ sh ./bootstrap "${bootstrap_opts[@]}" || die |
107 |
+ eautoreconf |
108 |
+ fi |
109 |
+} |
110 |
+ |
111 |
+src_configure() { |
112 |
+ local myeconfargs=( |
113 |
+ --disable-static |
114 |
+ --with-plugin-support |
115 |
+ --with-ssl="$(usex ssl $(usex gnutls gnutls openssl) none)" |
116 |
+ --without-libidn |
117 |
+ --without-libmicrohttpd |
118 |
+ $(use_enable doc) |
119 |
+ $(use_enable valgrind valgrind-tests) |
120 |
+ $(use_enable xattr) |
121 |
+ $(use_with brotli brotlidec) |
122 |
+ $(use_with bzip2) |
123 |
+ $(use_with gpgme) |
124 |
+ $(use_with http2 libnghttp2) |
125 |
+ $(use_with idn libidn2) |
126 |
+ $(use_with lzma) |
127 |
+ $(use_with pcre libpcre2) |
128 |
+ $(use_with psl libpsl) |
129 |
+ $(use_with zlib) |
130 |
+ |
131 |
+ # Avoid calling ldconfig |
132 |
+ LDCONFIG=: |
133 |
+ ) |
134 |
+ econf "${myeconfargs[@]}" |
135 |
+} |
136 |
+ |
137 |
+src_install() { |
138 |
+ default |
139 |
+ |
140 |
+ if [[ ${PV} == *9999 ]] ; then |
141 |
+ if use doc ; then |
142 |
+ local mpage |
143 |
+ for mpage in $(find docs/man -type f -regextype grep -regex ".*\.[[:digit:]]$") ; do |
144 |
+ doman ${mpage} |
145 |
+ done |
146 |
+ fi |
147 |
+ else |
148 |
+ doman docs/man/man{1/*.1,3/*.3} |
149 |
+ fi |
150 |
+ |
151 |
+ find "${D}" -type f -name '*.la' -delete || die |
152 |
+ rm "${ED}"/usr/bin/${PN}_noinstall || die |
153 |
+} |