diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-06 21:20:35 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-06 21:20:35 +0000 |
commit | b6ed1e2a15cd8b0ad5c573cbfee3576fa5ee29a4 (patch) | |
tree | 1ec8ec6766a5f19885797eec219ed98b78be4b7d /net-libs/libpsl/libpsl-0.21.1-r1.ebuild | |
parent | 3d013ccac70a281416dccbb6757f76818222cbba (diff) |
gentoo auto-resync : 06:11:2022 - 21:20:35
Diffstat (limited to 'net-libs/libpsl/libpsl-0.21.1-r1.ebuild')
-rw-r--r-- | net-libs/libpsl/libpsl-0.21.1-r1.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
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..59acf63ddf81 --- /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=8 + +PYTHON_COMPAT=( python3_{8..11} ) +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 +} |