Gentoo Archives: gentoo-commits

From: Julian Ospald <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/wget/
Date: Sun, 20 Sep 2015 13:44:32
Message-Id: 1442756658.311516b5b875c60eda5579eae21a3b9adc5bbcff.hasufell@gentoo
1 commit: 311516b5b875c60eda5579eae21a3b9adc5bbcff
2 Author: Julian Ospald <hasufell <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 20 13:43:42 2015 +0000
4 Commit: Julian Ospald <hasufell <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 20 13:44:18 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=311516b5
7
8 net-misc/wget: add libressl support
9
10 net-misc/wget/wget-1.16.3-r2.ebuild | 93 +++++++++++++++++++++++++++++++++++++
11 1 file changed, 93 insertions(+)
12
13 diff --git a/net-misc/wget/wget-1.16.3-r2.ebuild b/net-misc/wget/wget-1.16.3-r2.ebuild
14 new file mode 100644
15 index 0000000..8d81704
16 --- /dev/null
17 +++ b/net-misc/wget/wget-1.16.3-r2.ebuild
18 @@ -0,0 +1,93 @@
19 +# Copyright 1999-2015 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +# $Id$
22 +
23 +EAPI="4"
24 +PYTHON_COMPAT=( python{3_3,3_4} )
25 +
26 +inherit flag-o-matic python-any-r1 toolchain-funcs autotools
27 +
28 +DESCRIPTION="Network utility to retrieve files from the WWW"
29 +HOMEPAGE="https://www.gnu.org/software/wget/"
30 +SRC_URI="mirror://gnu/wget/${P}.tar.xz"
31 +
32 +LICENSE="GPL-3"
33 +SLOT="0"
34 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
35 +IUSE="debug gnutls idn ipv6 libressl nls ntlm pcre +ssl static test uuid zlib"
36 +REQUIRED_USE="?? ( gnutls libressl )"
37 +
38 +LIB_DEPEND="idn? ( net-dns/libidn[static-libs(+)] )
39 + pcre? ( dev-libs/libpcre[static-libs(+)] )
40 + ssl? (
41 + gnutls? ( net-libs/gnutls[static-libs(+)] )
42 + libressl? ( dev-libs/libressl[static-libs(+)] )
43 + !gnutls? ( !libressl? ( dev-libs/openssl:0[static-libs(+)] ) )
44 + )
45 + uuid? ( sys-apps/util-linux[static-libs(+)] )
46 + zlib? ( sys-libs/zlib[static-libs(+)] )"
47 +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
48 +DEPEND="${RDEPEND}
49 + app-arch/xz-utils
50 + virtual/pkgconfig
51 + static? ( ${LIB_DEPEND} )
52 + test? (
53 + ${PYTHON_DEPS}
54 + dev-lang/perl
55 + dev-perl/HTTP-Daemon
56 + dev-perl/HTTP-Message
57 + dev-perl/IO-Socket-SSL
58 + )
59 + nls? ( sys-devel/gettext )"
60 +
61 +REQUIRED_USE="ntlm? ( !gnutls ssl ) gnutls? ( ssl )"
62 +
63 +DOCS=( AUTHORS MAILING-LIST NEWS README doc/sample.wgetrc )
64 +
65 +pkg_setup() {
66 + use test && python-any-r1_pkg_setup
67 +}
68 +
69 +src_prepare() {
70 + epatch "${FILESDIR}"/${P}-ftp-pasv-ip.patch #560418
71 +}
72 +
73 +src_configure() {
74 + # fix compilation on Solaris, we need filio.h for FIONBIO as used in
75 + # the included gnutls -- force ioctl.h to include this header
76 + [[ ${CHOST} == *-solaris* ]] && append-cppflags -DBSD_COMP=1
77 +
78 + if use static ; then
79 + append-ldflags -static
80 + tc-export PKG_CONFIG
81 + PKG_CONFIG+=" --static"
82 + fi
83 + econf \
84 + --disable-assert \
85 + --disable-rpath \
86 + $(use_with ssl ssl $(usex gnutls gnutls openssl)) \
87 + $(use_enable ssl opie) \
88 + $(use_enable ssl digest) \
89 + $(use_enable idn iri) \
90 + $(use_enable ipv6) \
91 + $(use_enable nls) \
92 + $(use_enable ntlm) \
93 + $(use_enable pcre) \
94 + $(use_enable debug) \
95 + $(use_with uuid libuuid) \
96 + $(use_with zlib)
97 +}
98 +
99 +src_test() {
100 + emake check
101 +}
102 +
103 +src_install() {
104 + default
105 +
106 + sed -i \
107 + -e "s:/usr/local/etc:${EPREFIX}/etc:g" \
108 + "${ED}"/etc/wgetrc \
109 + "${ED}"/usr/share/man/man1/wget.1 \
110 + "${ED}"/usr/share/info/wget.info
111 +}