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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EB80A158020 for ; Sun, 6 Nov 2022 18:26:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 05A32E0954; Sun, 6 Nov 2022 18:26:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E3331E0955 for ; Sun, 6 Nov 2022 18:25:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E0AE833C1C1 for ; Sun, 6 Nov 2022 18:25:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 22C4F6FE for ; Sun, 6 Nov 2022 18:25:57 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1667759150.3efbb296a43137d0a3ffaadcc80801128bfca182.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libpsl/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libpsl/libpsl-0.21.1-r1.ebuild X-VCS-Directories: net-libs/libpsl/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 3efbb296a43137d0a3ffaadcc80801128bfca182 X-VCS-Branch: master Date: Sun, 6 Nov 2022 18:25:57 +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: 521a4cef-56a7-4773-88cb-1c2047b4b57c X-Archives-Hash: 9b54f8605be82ec2c37cf7440ed8edb0 commit: 3efbb296a43137d0a3ffaadcc80801128bfca182 Author: Matt Turner gentoo org> AuthorDate: Sun Nov 6 18:24:06 2022 +0000 Commit: Matt Turner gentoo org> CommitDate: Sun Nov 6 18:25:50 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3efbb296 net-libs/libpsl: Use append-lfs-flags Closes: https://bugs.gentoo.org/880077 Signed-off-by: Matt Turner gentoo.org> net-libs/libpsl/libpsl-0.21.1-r1.ebuild | 73 +++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/net-libs/libpsl/libpsl-0.21.1-r1.ebuild b/net-libs/libpsl/libpsl-0.21.1-r1.ebuild new file mode 100644 index 000000000000..84d2fc762666 --- /dev/null +++ b/net-libs/libpsl/libpsl-0.21.1-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit flag-o-matic multilib-minimal python-any-r1 + +DESCRIPTION="C library for the Public Suffix List" +HOMEPAGE="https://github.com/rockdaboot/libpsl" +SRC_URI="https://github.com/rockdaboot/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="icu +idn +man" + +RDEPEND=" + icu? ( !idn? ( dev-libs/icu:=[${MULTILIB_USEDEP}] ) ) + idn? ( + dev-libs/libunistring:=[${MULTILIB_USEDEP}] + net-dns/libidn2:=[${MULTILIB_USEDEP}] + ) +" +DEPEND="${RDEPEND}" +BDEPEND="${PYTHON_DEPS} + dev-util/gtk-doc-am + sys-devel/gettext + virtual/pkgconfig + man? ( dev-libs/libxslt ) +" + +pkg_pretend() { + if use icu && use idn ; then + ewarn "\"icu\" and \"idn\" USE flags are enabled." + ewarn "Using \"idn\"." + fi +} + +multilib_src_configure() { + append-lfs-flags # bug 880077 + + local myeconfargs=( + --disable-asan + --disable-cfi + --disable-ubsan + --disable-static + $(use_enable man) + ) + + # Prefer idn even if icu is in USE as well + if use idn ; then + myeconfargs+=( + --enable-builtin=libidn2 + --enable-runtime=libidn2 + ) + elif use icu ; then + myeconfargs+=( + --enable-builtin=libicu + --enable-runtime=libicu + ) + else + myeconfargs+=( --disable-runtime ) + fi + + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install() { + default + + find "${ED}" -type f -name "*.la" -delete || die +}