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