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, 27 Dec 2018 15:07:27
Message-Id: 1545923234.1fba5ed62c3886f7a58fc4cc0cc9cbc9a662d700.polynomial-c@gentoo
1 commit: 1fba5ed62c3886f7a58fc4cc0cc9cbc9a662d700
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 27 15:03:40 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 27 15:07:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fba5ed6
7
8 net-misc/wget: Bump to version 1.20.1
9
10 Package-Manager: Portage-2.3.52, 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.1.ebuild | 118 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 119 insertions(+)
16
17 diff --git a/net-misc/wget/Manifest b/net-misc/wget/Manifest
18 index 689914076bd..7b8ec72207b 100644
19 --- a/net-misc/wget/Manifest
20 +++ b/net-misc/wget/Manifest
21 @@ -1,2 +1,3 @@
22 DIST wget-1.19.5.tar.gz 4455797 BLAKE2B 988b80090ff1f62cb527afb33c03b7c6a68bbc1649d42f62061e05e416bebf5b2e9546ebafad3c9cdbf1199a8d2b84f4427c921f23338b02631da357da9b3d61 SHA512 0d4964e0f5adb0c023edc831bde9c9f13f3222f6efc1ce93250d234ab937e92b53921624532fb0e6586151ddfdee6df9a7ca91a2a99b3d16e2e68401c625301b
23 +DIST wget-1.20.1.tar.gz 4392853 BLAKE2B 5740fa70064e24a699ba5fc0b6262b372fc877e86fc74bede07bcfe7dcdf6d4a15db7686fc900d8ec90ad3adce8c4af1c00460601c1845da7907f929d8d48447 SHA512 855c7e3c45f9020a9fdb30e286ee6a0bdcaa780be3d0dda9ffdae73b562ae1012d4550242f66240407a28076a7054328d4f08a469a0da227a9e3410b8d5f46dc
24 DIST wget-1.20.tar.gz 4474641 BLAKE2B f9a1fdb1299dcee36467e6a78fc90fb8b17b71d14079b5ce6d60a19a27a2bd4c53fdbd3660cbd2d94a3523d4c5ea517e52f46e4af1be60db885fe79a376b3720 SHA512 2e50b9e83c22cb342d85981f89253d9c72bb1a48152c17c4c0b6315683890075f60ad2783e4fa8c2a6d15c53820d9ecb8d0c4b81cfcef4fcc66126ed1cb7ff54
25
26 diff --git a/net-misc/wget/wget-1.20.1.ebuild b/net-misc/wget/wget-1.20.1.ebuild
27 new file mode 100644
28 index 00000000000..912dcc73141
29 --- /dev/null
30 +++ b/net-misc/wget/wget-1.20.1.ebuild
31 @@ -0,0 +1,118 @@
32 +# Copyright 1999-2018 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python3_{4,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 +}