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/wget2/
Date: Tue, 29 Dec 2020 15:49:14
Message-Id: 1609256948.79ecc9e2307096f2042c892d98f723bf455f6a9e.polynomial-c@gentoo
1 commit: 79ecc9e2307096f2042c892d98f723bf455f6a9e
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 29 15:49:03 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 15:49:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79ecc9e2
7
8 net-misc/wget2: Added live ebuild
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-misc/wget2/wget2-9999.ebuild | 122 +++++++++++++++++++++++++++++++++++++++
14 1 file changed, 122 insertions(+)
15
16 diff --git a/net-misc/wget2/wget2-9999.ebuild b/net-misc/wget2/wget2-9999.ebuild
17 new file mode 100644
18 index 00000000000..acc640b5b9e
19 --- /dev/null
20 +++ b/net-misc/wget2/wget2-9999.ebuild
21 @@ -0,0 +1,122 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit autotools
28 +
29 +DESCRIPTION="GNU Wget2 is a file and recursive website downloader"
30 +HOMEPAGE="https://gitlab.com/gnuwget/wget2"
31 +if [[ "${PV}" == *9999 ]] ; then
32 + inherit git-r3
33 + EGIT_REPO_URI="https://gitlab.com/gnuwget/wget2.git"
34 +else
35 + SRC_URI="mirror://gnu/wget/${P}.tar.gz"
36 + KEYWORDS="~amd64 ~x86"
37 +fi
38 +LICENSE="GPL-3"
39 +SLOT="0/0" # subslot = libwget.so version
40 +IUSE="brotli bzip2 doc +gnutls gpgme +http2 idn libressl lzma openssl pcre psl +ssl test valgrind xattr zlib"
41 +REQUIRED_USE="valgrind? ( test )"
42 +
43 +RDEPEND="
44 + brotli? ( app-arch/brotli )
45 + bzip2? ( app-arch/bzip2 )
46 + !gnutls? ( dev-libs/libgcrypt:= )
47 + ssl? (
48 + gnutls? ( net-libs/gnutls:= )
49 + !gnutls? (
50 + libressl? ( dev-libs/libressl:0= )
51 + !libressl? ( dev-libs/openssl:0= )
52 + )
53 + )
54 + gpgme? (
55 + app-crypt/gpgme
56 + dev-libs/libassuan
57 + dev-libs/libgpg-error
58 + )
59 + http2? ( net-libs/nghttp2 )
60 + idn? ( net-dns/libidn2:= )
61 + lzma? ( app-arch/xz-utils )
62 + pcre? ( dev-libs/libpcre2 )
63 + psl? ( net-libs/libpsl )
64 + xattr? ( sys-apps/attr )
65 + zlib? ( sys-libs/zlib )
66 +"
67 +DEPEND="${RDEPEND}"
68 +BDEPEND="
69 + virtual/pkgconfig
70 + doc? ( app-doc/doxygen )
71 + valgrind? ( dev-util/valgrind )
72 +"
73 +
74 +RESTRICT="!test? ( test )"
75 +
76 +PATCHES=(
77 + # Upstream attempts to be "smart" by calling ldconfig in
78 + # install-exec-hook
79 + "${FILESDIR}"/${PN}-1.99.2-remove_ldconfig_call.patch
80 +)
81 +
82 +src_unpack() {
83 + if [[ "${PV}" == *9999 ]] ; then
84 + git-r3_src_unpack
85 +
86 + # We need to mess with gnulib :-/
87 + EGIT_REPO_URI="https://git.savannah.gnu.org/r/gnulib.git" \
88 + EGIT_CHECKOUT_DIR="${WORKDIR}/gnulib" \
89 + git-r3_src_unpack
90 + else
91 + default
92 + fi
93 +}
94 +
95 +src_prepare() {
96 + if [[ "${PV}" == *9999 ]] ; then
97 + #sed 's@\(gnulib-tool\)\.py@\1@' -i bootstrap || die
98 + local bootstrap_opts=(
99 + --gnulib-srcdir=../gnulib
100 + --no-bootstrap-sync
101 + --copy
102 + --no-git
103 + --skip-po
104 + )
105 + AUTORECONF="/bin/true" \
106 + LIBTOOLIZE="/bin/true" \
107 + sh ./bootstrap "${bootstrap_opts[@]}" || die
108 + fi
109 + default
110 + eautoreconf
111 +}
112 +
113 +src_configure() {
114 + local myeconfargs=(
115 + --disable-static
116 + --with-plugin-support
117 + --with-ssl="$(usex ssl $(usex gnutls gnutls openssl) none)"
118 + --without-libidn
119 + --without-libmicrohttpd
120 + $(use_enable doc)
121 + $(use_enable valgrind valgrind-tests)
122 + $(use_enable xattr)
123 + $(use_with brotli brotlidec)
124 + $(use_with bzip2)
125 + $(use_with gpgme)
126 + $(use_with http2 libnghttp2)
127 + $(use_with idn libidn2)
128 + $(use_with lzma)
129 + $(use_with pcre libpcre2)
130 + $(use_with psl libpsl)
131 + $(use_with zlib)
132 + )
133 + econf "${myeconfargs[@]}"
134 +}
135 +
136 +src_install() {
137 + default
138 +
139 + doman docs/man/man{1/*.1,3/*.3}
140 +
141 + find "${D}" -type f -name '*.la' -delete || die
142 + rm "${ED}"/usr/bin/${PN}_noinstall || die
143 +}