1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=(python{2_7,3_{6,7}})
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="~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
19 icu? ( !idn? ( dev-libs/icu:=[${MULTILIB_USEDEP}] ) )
21 dev-libs/libunistring[${MULTILIB_USEDEP}]
22 net-dns/libidn2:=[${MULTILIB_USEDEP}]
34 man? ( dev-libs/libxslt )
38 if use icu && use idn ; then
39 ewarn "\"icu\" and \"idn\" USE flags are enabled."
40 ewarn "Using \"idn\"."
44 multilib_src_configure() {
52 # Prefer idn even if icu is in USE as well
55 --enable-builtin=libidn2
56 --enable-runtime=libidn2
60 --enable-builtin=libicu
61 --enable-runtime=libicu
64 myeconfargs+=( --disable-runtime )
67 ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
70 multilib_src_install() {
73 find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die