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: Tue, 02 Apr 2019 07:32:52
Message-Id: 1554190348.c872570bcbd3f5ced8dd703fda783a1120a06e49.polynomial-c@gentoo
1 commit: c872570bcbd3f5ced8dd703fda783a1120a06e49
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 2 07:32:28 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 2 07:32:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c872570b
7
8 net-misc/wget: Security bump to version 1.20.2
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-misc/wget/Manifest | 1 +
14 net-misc/wget/wget-1.20.2.ebuild | 118 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 119 insertions(+)
16
17 diff --git a/net-misc/wget/Manifest b/net-misc/wget/Manifest
18 index 8660cb751b2..97b3c5a4065 100644
19 --- a/net-misc/wget/Manifest
20 +++ b/net-misc/wget/Manifest
21 @@ -1 +1,2 @@
22 DIST wget-1.20.1.tar.gz 4392853 BLAKE2B 5740fa70064e24a699ba5fc0b6262b372fc877e86fc74bede07bcfe7dcdf6d4a15db7686fc900d8ec90ad3adce8c4af1c00460601c1845da7907f929d8d48447 SHA512 855c7e3c45f9020a9fdb30e286ee6a0bdcaa780be3d0dda9ffdae73b562ae1012d4550242f66240407a28076a7054328d4f08a469a0da227a9e3410b8d5f46dc
23 +DIST wget-1.20.2.tar.gz 4486237 BLAKE2B 7392e445cb801ac5fafee804e6b0459d0a001b91b5b413f1a5592da6bea690a2d6b864b64a1add1c4114085def7a73312a88cd1cf1c12434c6535f79de222d9a SHA512 42d59ddb3abec6ff30e2be890ceeec35fc144acd8e2def25f5280c2f8c21e6fd54dc71217e9ca7fb1d4f0470716bf288e90501e8e6e39b09938e3f5710a3016a
24
25 diff --git a/net-misc/wget/wget-1.20.2.ebuild b/net-misc/wget/wget-1.20.2.ebuild
26 new file mode 100644
27 index 00000000000..b9c1aa3290a
28 --- /dev/null
29 +++ b/net-misc/wget/wget-1.20.2.ebuild
30 @@ -0,0 +1,118 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python3_{5,6,7} )
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 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47 +IUSE="debug gnutls idn ipv6 libressl nls ntlm pcre +ssl static test uuid zlib"
48 +REQUIRED_USE=" ntlm? ( !gnutls ssl ) gnutls? ( ssl )"
49 +
50 +# Force a newer libidn2 to avoid libunistring deps. #612498
51 +LIB_DEPEND="
52 + idn? ( >=net-dns/libidn2-0.14:=[static-libs(+)] )
53 + pcre? ( dev-libs/libpcre2[static-libs(+)] )
54 + ssl? (
55 + gnutls? ( net-libs/gnutls:0=[static-libs(+)] )
56 + !gnutls? (
57 + !libressl? ( dev-libs/openssl:0=[static-libs(+)] )
58 + libressl? ( dev-libs/libressl:0=[static-libs(+)] )
59 + )
60 + )
61 + uuid? ( sys-apps/util-linux[static-libs(+)] )
62 + zlib? ( sys-libs/zlib[static-libs(+)] )
63 +"
64 +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
65 +DEPEND="
66 + ${RDEPEND}
67 + app-arch/xz-utils
68 + virtual/pkgconfig
69 + static? ( ${LIB_DEPEND} )
70 + test? (
71 + ${PYTHON_DEPS}
72 + dev-lang/perl
73 + dev-perl/HTTP-Daemon
74 + dev-perl/HTTP-Message
75 + dev-perl/IO-Socket-SSL
76 + )
77 + nls? ( sys-devel/gettext )
78 +"
79 +
80 +DOCS=( AUTHORS MAILING-LIST NEWS README doc/sample.wgetrc )
81 +
82 +pkg_setup() {
83 + use test && python-any-r1_pkg_setup
84 +}
85 +
86 +src_prepare() {
87 + default
88 +
89 + # revert some hack that breaks linking, bug #585924
90 + if [[ ${CHOST} == *-darwin* ]] \
91 + || [[ ${CHOST} == *-solaris* ]] \
92 + || [[ ${CHOST} == *-uclibc* ]] \
93 + || [[ ${CHOST} == *-cygwin* ]] \
94 + ; then
95 + sed -i \
96 + -e 's/^ LIBICONV=$/:/' \
97 + configure || die
98 + fi
99 +}
100 +
101 +src_configure() {
102 + # fix compilation on Solaris, we need filio.h for FIONBIO as used in
103 + # the included gnutls -- force ioctl.h to include this header
104 + [[ ${CHOST} == *-solaris* ]] && append-cppflags -DBSD_COMP=1
105 +
106 + if use static ; then
107 + append-ldflags -static
108 + tc-export PKG_CONFIG
109 + PKG_CONFIG+=" --static"
110 + fi
111 +
112 + # There is no flag that controls this. libunistring-prefix only
113 + # controls the search path (which is why we turn it off below).
114 + # Further, libunistring is only needed w/older libidn2 installs,
115 + # and since we force the latest, we can force off libunistring. #612498
116 + local myeconfargs=(
117 + --disable-assert
118 + --disable-pcre
119 + --disable-rpath
120 + --without-included-libunistring
121 + --without-libunistring-prefix
122 + $(use_enable debug)
123 + $(use_enable idn iri)
124 + $(use_enable ipv6)
125 + $(use_enable nls)
126 + $(use_enable ntlm)
127 + $(use_enable pcre pcre2)
128 + $(use_enable ssl digest)
129 + $(use_enable ssl opie)
130 + $(use_with idn libidn)
131 + $(use_with ssl ssl $(usex gnutls gnutls openssl))
132 + $(use_with uuid libuuid)
133 + $(use_with zlib)
134 + )
135 + ac_cv_libunistring=no \
136 + econf "${myeconfargs[@]}"
137 +}
138 +
139 +src_install() {
140 + default
141 +
142 + sed -i \
143 + -e "s:/usr/local/etc:${EPREFIX}/etc:g" \
144 + "${ED%/}"/etc/wgetrc \
145 + "${ED%/}"/usr/share/man/man1/wget.1 \
146 + "${ED%/}"/usr/share/info/wget.info \
147 + || die
148 +}