Gentoo Archives: gentoo-commits

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