commit:     1d78812a6d6bc3f4fa849b0134560afe09d1dfe1
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  6 10:32:40 2026 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Tue Jan  6 21:07:40 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d78812a

net-misc/wget2: add 2.2.1

Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 net-misc/wget2/Manifest           |  1 +
 net-misc/wget2/wget2-2.2.1.ebuild | 91 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)

diff --git a/net-misc/wget2/Manifest b/net-misc/wget2/Manifest
index 571229e27db9..e8035099f5ca 100644
--- a/net-misc/wget2/Manifest
+++ b/net-misc/wget2/Manifest
@@ -1 +1,2 @@
 DIST wget2-2.2.0.tar.gz 4094789 BLAKE2B 
20175a91cbddf5f7506d79ba481d7d983df27849fe5e3247f5981873795fbddc786326bd51646366e2bc1ebe64ea4535f19bcd558074c35aac7ee12e6c9996d5
 SHA512 
b39fb6f65b3be39c0f8f33a337c0417c8b31bf993cddbab1ef5e3dba66c6651ff8ec25d3a01ab5aa632072b14adab06adc4941bdb8e9cbf3b60bdd6f3f059cf1
+DIST wget2-2.2.1.tar.gz 4077812 BLAKE2B 
dccd9db63a237055377fb78e36ba36f357f5ec47b999e74aeffc170e3918a9d16df9a775b8836139e0640682eefe1d96d8bf6c7278b556ae9182039fa5dd90c0
 SHA512 
ce458c31eda12b12120dd39d43751d7ac3c9b46ea994ae383cc5a68be2ee776840126e5251a9479b8e3b350f093c6b3dc1dc8fca48a159e4117a73b328a91021

diff --git a/net-misc/wget2/wget2-2.2.1.ebuild 
b/net-misc/wget2/wget2-2.2.1.ebuild
new file mode 100644
index 000000000000..bb4a38ef67f6
--- /dev/null
+++ b/net-misc/wget2/wget2-2.2.1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="GNU Wget2 is a file and recursive website downloader"
+HOMEPAGE="https://gitlab.com/gnuwget/wget2";
+SRC_URI="mirror://gnu/wget/${P}.tar.gz"
+
+# LGPL for libwget
+LICENSE="GPL-3+ LGPL-3+"
+SLOT="0/0" # subslot = libwget.so version
+KEYWORDS="~amd64 ~arm64 ~loong ~x86"
+IUSE="brotli bzip2 doc +gnutls gpgme +http2 idn lzip lzma pcre psl +ssl test 
xattr zlib"
+
+RDEPEND="
+       brotli? ( app-arch/brotli )
+       bzip2? ( app-arch/bzip2 )
+       !gnutls? ( dev-libs/libgcrypt:= )
+       ssl? (
+               gnutls? ( net-libs/gnutls:= )
+               !gnutls? (
+                       dev-libs/openssl:0=
+               )
+       )
+       gpgme? (
+               app-crypt/gpgme:=
+               dev-libs/libassuan:=
+               dev-libs/libgpg-error
+       )
+       http2? ( net-libs/nghttp2 )
+       idn? ( net-dns/libidn2:= )
+       lzip? ( app-arch/lzlib )
+       lzma? ( app-arch/xz-utils )
+       pcre? ( dev-libs/libpcre2 )
+       psl? ( net-libs/libpsl )
+       xattr? ( sys-apps/attr )
+       zlib? ( virtual/zlib:= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       virtual/pkgconfig
+       doc? ( >=app-text/doxygen-1.13.2[dot] )
+"
+
+RESTRICT="!test? ( test )"
+
+src_configure() {
+       local myeconfargs=(
+               --disable-static
+               --disable-valgrind-tests
+               --with-plugin-support
+               --with-ssl="$(usex ssl $(usex gnutls gnutls openssl) none)"
+               --without-libidn
+               --without-libmicrohttpd
+               $(use_enable doc)
+               $(use_enable xattr)
+               $(use_with brotli brotlidec)
+               $(use_with bzip2)
+               $(use_with gpgme)
+               $(use_with http2 libnghttp2)
+               $(use_with idn libidn2)
+               $(use_with lzip)
+               $(use_with lzma)
+               $(use_with pcre libpcre2)
+               $(use_with psl libpsl)
+               $(use_with zlib)
+
+               # Avoid calling ldconfig
+               LDCONFIG=:
+       )
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+
+       if [[ ${PV} == *9999 ]] ; then
+               if use doc ; then
+                       local mpage
+                       for mpage in $(find docs/man -type f -regextype grep 
-regex ".*\.[[:digit:]]$") ; do
+                               doman ${mpage}
+                       done
+               fi
+       else
+               doman docs/man/man{1/*.1,3/*.3}
+       fi
+
+       find "${D}" -type f -name '*.la' -delete || die
+       rm "${ED}"/usr/bin/${PN}_noinstall || die
+}

Reply via email to