1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=(python3_{6,7,8})
7 inherit multilib-minimal python-any-r1
9 DESCRIPTION="C library for the Public Suffix List"
10 HOMEPAGE="https://github.com/rockdaboot/libpsl"
11 SRC_URI="https://github.com/rockdaboot/${PN}/releases/download/${P}/${P}.tar.gz"
15 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv s390 sparc x86"
19 icu? ( !idn? ( dev-libs/icu:=[${MULTILIB_USEDEP}] ) )
21 dev-libs/libunistring[${MULTILIB_USEDEP}]
22 net-dns/libidn2:=[${MULTILIB_USEDEP}]
26 BDEPEND="${PYTHON_DEPS}
30 man? ( dev-libs/libxslt )
34 if use icu && use idn ; then
35 ewarn "\"icu\" and \"idn\" USE flags are enabled."
36 ewarn "Using \"idn\"."
40 multilib_src_configure() {
48 # Prefer idn even if icu is in USE as well
51 --enable-builtin=libidn2
52 --enable-runtime=libidn2
56 --enable-builtin=libicu
57 --enable-runtime=libicu
60 myeconfargs+=( --disable-runtime )
63 ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
66 multilib_src_install() {
69 find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die