From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8A1CC1382C5 for ; Tue, 29 Dec 2020 15:49:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 78026E0CB7; Tue, 29 Dec 2020 15:49:13 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4E49BE0CB7 for ; Tue, 29 Dec 2020 15:49:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5CB9F340A51 for ; Tue, 29 Dec 2020 15:49:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F0A3F476 for ; Tue, 29 Dec 2020 15:49:10 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1609256948.79ecc9e2307096f2042c892d98f723bf455f6a9e.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/wget2/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/wget2/wget2-9999.ebuild X-VCS-Directories: net-misc/wget2/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 79ecc9e2307096f2042c892d98f723bf455f6a9e X-VCS-Branch: master Date: Tue, 29 Dec 2020 15:49:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0ad1f496-3d1b-4c9e-ade9-ca213ed92818 X-Archives-Hash: 296cebf969c60c669ff3424a5ec0d643 commit: 79ecc9e2307096f2042c892d98f723bf455f6a9e Author: Lars Wendler gentoo org> AuthorDate: Tue Dec 29 15:49:03 2020 +0000 Commit: Lars Wendler gentoo org> CommitDate: Tue Dec 29 15:49:08 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79ecc9e2 net-misc/wget2: Added live ebuild Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Lars Wendler gentoo.org> net-misc/wget2/wget2-9999.ebuild | 122 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/net-misc/wget2/wget2-9999.ebuild b/net-misc/wget2/wget2-9999.ebuild new file mode 100644 index 00000000000..acc640b5b9e --- /dev/null +++ b/net-misc/wget2/wget2-9999.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="GNU Wget2 is a file and recursive website downloader" +HOMEPAGE="https://gitlab.com/gnuwget/wget2" +if [[ "${PV}" == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/gnuwget/wget2.git" +else + SRC_URI="mirror://gnu/wget/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi +LICENSE="GPL-3" +SLOT="0/0" # subslot = libwget.so version +IUSE="brotli bzip2 doc +gnutls gpgme +http2 idn libressl lzma openssl pcre psl +ssl test valgrind xattr zlib" +REQUIRED_USE="valgrind? ( test )" + +RDEPEND=" + brotli? ( app-arch/brotli ) + bzip2? ( app-arch/bzip2 ) + !gnutls? ( dev-libs/libgcrypt:= ) + ssl? ( + gnutls? ( net-libs/gnutls:= ) + !gnutls? ( + libressl? ( dev-libs/libressl:0= ) + !libressl? ( dev-libs/openssl:0= ) + ) + ) + gpgme? ( + app-crypt/gpgme + dev-libs/libassuan + dev-libs/libgpg-error + ) + http2? ( net-libs/nghttp2 ) + idn? ( net-dns/libidn2:= ) + lzma? ( app-arch/xz-utils ) + pcre? ( dev-libs/libpcre2 ) + psl? ( net-libs/libpsl ) + xattr? ( sys-apps/attr ) + zlib? ( sys-libs/zlib ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen ) + valgrind? ( dev-util/valgrind ) +" + +RESTRICT="!test? ( test )" + +PATCHES=( + # Upstream attempts to be "smart" by calling ldconfig in + # install-exec-hook + "${FILESDIR}"/${PN}-1.99.2-remove_ldconfig_call.patch +) + +src_unpack() { + if [[ "${PV}" == *9999 ]] ; then + git-r3_src_unpack + + # We need to mess with gnulib :-/ + EGIT_REPO_URI="https://git.savannah.gnu.org/r/gnulib.git" \ + EGIT_CHECKOUT_DIR="${WORKDIR}/gnulib" \ + git-r3_src_unpack + else + default + fi +} + +src_prepare() { + if [[ "${PV}" == *9999 ]] ; then + #sed 's@\(gnulib-tool\)\.py@\1@' -i bootstrap || die + local bootstrap_opts=( + --gnulib-srcdir=../gnulib + --no-bootstrap-sync + --copy + --no-git + --skip-po + ) + AUTORECONF="/bin/true" \ + LIBTOOLIZE="/bin/true" \ + sh ./bootstrap "${bootstrap_opts[@]}" || die + fi + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-static + --with-plugin-support + --with-ssl="$(usex ssl $(usex gnutls gnutls openssl) none)" + --without-libidn + --without-libmicrohttpd + $(use_enable doc) + $(use_enable valgrind valgrind-tests) + $(use_enable xattr) + $(use_with brotli brotlidec) + $(use_with bzip2) + $(use_with gpgme) + $(use_with http2 libnghttp2) + $(use_with idn libidn2) + $(use_with lzma) + $(use_with pcre libpcre2) + $(use_with psl libpsl) + $(use_with zlib) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + doman docs/man/man{1/*.1,3/*.3} + + find "${D}" -type f -name '*.la' -delete || die + rm "${ED}"/usr/bin/${PN}_noinstall || die +}