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