1 |
commit: 4ababe487221c85a2a786026126601a21e2829dd |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 9 12:07:21 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 9 12:07:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ababe48 |
7 |
|
8 |
net-misc/wget: Bump to version 1.21.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
net-misc/wget/Manifest | 1 + |
14 |
net-misc/wget/wget-1.21.1.ebuild | 125 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 126 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/wget/Manifest b/net-misc/wget/Manifest |
18 |
index 45212c9f20d..ff2b3735a29 100644 |
19 |
--- a/net-misc/wget/Manifest |
20 |
+++ b/net-misc/wget/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST wget-1.20.3.tar.gz 4489249 BLAKE2B 89fa7997a02be6fb1a869d1bf359ce4e43b41f8069d1520e6d0b48739b9b6030b1dec7b7e8cbe833ea1070b30f551b1a9d72c6f4a43bb58df20b680b42a68805 SHA512 e8b82b40e270296228094a78d47f81580bdbdea9e6b93fd61b37dccb39430aeb9bda5397dc53a31c952a61629383c7e2a8c8abf414c8a4dd369af6ecf2717e6c |
23 |
+DIST wget-1.21.1.tar.gz 4884887 BLAKE2B 28a3044f33df1d24e13900e8018a38cabae21fb41dd2e089bdbfd759b4adee3771ab558b84f5a8b6f546bc84a3387c973903f9fe06562093d3566e22d1528587 SHA512 784efbf9fe43a1671109e32a9c36237eb2d5c19cf756bf6f6e65517fb21464d3d94b1d6f491852d23b3ddff63e38fe6b60df9125c91b139993af59875e3a0712 |
24 |
DIST wget-1.21.tar.gz 4866788 BLAKE2B e019df0ba0eefb0d6de0e73a73e7dc0ecd46048831ef3b4719ab47ce6895de7da3163902ff19881eb60eb4f67568a7de70092f62a8f8397a5ac9583fb689ad3a SHA512 13313a98f91ef34ad90103f076285549eb4887d77953e9f192d3b0667642b5ceb9e2e30091f766cbf1d6ed423499c497ed85d826f3f3e92f0711aa06d8303c5a |
25 |
|
26 |
diff --git a/net-misc/wget/wget-1.21.1.ebuild b/net-misc/wget/wget-1.21.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..ffe8a73aa71 |
29 |
--- /dev/null |
30 |
+++ b/net-misc/wget/wget-1.21.1.ebuild |
31 |
@@ -0,0 +1,125 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{6..9} ) |
38 |
+ |
39 |
+inherit flag-o-matic python-any-r1 toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="Network utility to retrieve files from the WWW" |
42 |
+HOMEPAGE="https://www.gnu.org/software/wget/" |
43 |
+SRC_URI="mirror://gnu/wget/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-3" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
48 |
+IUSE="cookie_check debug gnutls idn ipv6 libressl metalink nls ntlm pcre +ssl static test uuid zlib" |
49 |
+REQUIRED_USE=" ntlm? ( !gnutls ssl ) gnutls? ( ssl )" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+# Force a newer libidn2 to avoid libunistring deps. #612498 |
53 |
+LIB_DEPEND=" |
54 |
+ cookie_check? ( net-libs/libpsl ) |
55 |
+ idn? ( >=net-dns/libidn2-0.14:=[static-libs(+)] ) |
56 |
+ metalink? ( media-libs/libmetalink ) |
57 |
+ pcre? ( dev-libs/libpcre2[static-libs(+)] ) |
58 |
+ ssl? ( |
59 |
+ gnutls? ( net-libs/gnutls:0=[static-libs(+)] ) |
60 |
+ !gnutls? ( |
61 |
+ !libressl? ( dev-libs/openssl:0=[static-libs(+)] ) |
62 |
+ libressl? ( dev-libs/libressl:0=[static-libs(+)] ) |
63 |
+ ) |
64 |
+ ) |
65 |
+ uuid? ( sys-apps/util-linux[static-libs(+)] ) |
66 |
+ zlib? ( sys-libs/zlib[static-libs(+)] ) |
67 |
+" |
68 |
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" |
69 |
+DEPEND=" |
70 |
+ ${RDEPEND} |
71 |
+ static? ( ${LIB_DEPEND} ) |
72 |
+ test? ( |
73 |
+ ${PYTHON_DEPS} |
74 |
+ dev-lang/perl |
75 |
+ dev-perl/HTTP-Daemon |
76 |
+ dev-perl/HTTP-Message |
77 |
+ dev-perl/IO-Socket-SSL |
78 |
+ ) |
79 |
+" |
80 |
+BDEPEND=" |
81 |
+ app-arch/xz-utils |
82 |
+ virtual/pkgconfig |
83 |
+ nls? ( sys-devel/gettext ) |
84 |
+" |
85 |
+ |
86 |
+DOCS=( AUTHORS MAILING-LIST NEWS README doc/sample.wgetrc ) |
87 |
+ |
88 |
+pkg_setup() { |
89 |
+ use test && python-any-r1_pkg_setup |
90 |
+} |
91 |
+ |
92 |
+src_prepare() { |
93 |
+ default |
94 |
+ |
95 |
+ # revert some hack that breaks linking, bug #585924 |
96 |
+ if [[ ${CHOST} == *-darwin* ]] \ |
97 |
+ || [[ ${CHOST} == *-solaris* ]] \ |
98 |
+ || [[ ${CHOST} == *-uclibc* ]] \ |
99 |
+ || [[ ${CHOST} == *-cygwin* ]] \ |
100 |
+ ; then |
101 |
+ sed -i \ |
102 |
+ -e 's/^ LIBICONV=$/:/' \ |
103 |
+ configure || die |
104 |
+ fi |
105 |
+} |
106 |
+ |
107 |
+src_configure() { |
108 |
+ # fix compilation on Solaris, we need filio.h for FIONBIO as used in |
109 |
+ # the included gnutls -- force ioctl.h to include this header |
110 |
+ [[ ${CHOST} == *-solaris* ]] && append-cppflags -DBSD_COMP=1 |
111 |
+ |
112 |
+ if use static ; then |
113 |
+ append-ldflags -static |
114 |
+ tc-export PKG_CONFIG |
115 |
+ PKG_CONFIG+=" --static" |
116 |
+ fi |
117 |
+ |
118 |
+ # There is no flag that controls this. libunistring-prefix only |
119 |
+ # controls the search path (which is why we turn it off below). |
120 |
+ # Further, libunistring is only needed w/older libidn2 installs, |
121 |
+ # and since we force the latest, we can force off libunistring. #612498 |
122 |
+ local myeconfargs=( |
123 |
+ --disable-assert |
124 |
+ --disable-pcre |
125 |
+ --disable-rpath |
126 |
+ --without-included-libunistring |
127 |
+ --without-libunistring-prefix |
128 |
+ $(use_enable debug) |
129 |
+ $(use_enable idn iri) |
130 |
+ $(use_enable ipv6) |
131 |
+ $(use_enable nls) |
132 |
+ $(use_enable ntlm) |
133 |
+ $(use_enable pcre pcre2) |
134 |
+ $(use_enable ssl digest) |
135 |
+ $(use_enable ssl opie) |
136 |
+ $(use_with cookie_check libpsl) |
137 |
+ $(use_with idn libidn) |
138 |
+ $(use_with metalink) |
139 |
+ $(use_with ssl ssl $(usex gnutls gnutls openssl)) |
140 |
+ $(use_with uuid libuuid) |
141 |
+ $(use_with zlib) |
142 |
+ ) |
143 |
+ ac_cv_libunistring=no \ |
144 |
+ econf "${myeconfargs[@]}" |
145 |
+} |
146 |
+ |
147 |
+src_install() { |
148 |
+ default |
149 |
+ |
150 |
+ sed -i \ |
151 |
+ -e "s:/usr/local/etc:${EPREFIX}/etc:g" \ |
152 |
+ "${ED}"/etc/wgetrc \ |
153 |
+ "${ED}"/usr/share/man/man1/wget.1 \ |
154 |
+ "${ED}"/usr/share/info/wget.info \ |
155 |
+ || die |
156 |
+} |