diff options
Diffstat (limited to 'net-libs/libpsl/libpsl-0.20.2.ebuild')
-rw-r--r-- | net-libs/libpsl/libpsl-0.20.2.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/net-libs/libpsl/libpsl-0.20.2.ebuild b/net-libs/libpsl/libpsl-0.20.2.ebuild new file mode 100644 index 000000000000..58adc0c67916 --- /dev/null +++ b/net-libs/libpsl/libpsl-0.20.2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal + +DESCRIPTION="C library for the Public Suffix List" +HOMEPAGE="https://github.com/rockdaboot/libpsl" +SRC_URI="https://github.com/rockdaboot/${PN}/releases/download/${P}/${P}.tar.gz" +LICENSE="MIT" +SLOT="0" + +KEYWORDS="~amd64 ~x86" +IUSE="icu +idn +man" + +REQUIRED_USE="^^ ( icu idn )" + +RDEPEND=" + icu? ( dev-libs/icu:=[${MULTILIB_USEDEP}] ) + idn? ( + dev-libs/libunistring[${MULTILIB_USEDEP}] + net-dns/libidn2:=[${MULTILIB_USEDEP}] + ) +" + +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-util/gtk-doc-am + sys-devel/gettext + virtual/pkgconfig + man? ( dev-libs/libxslt ) +" + +multilib_src_configure() { + local myeconfargs=( + --disable-asan + --disable-cfi + --didable-ubsan + $(use_enable man) + ) + + if use icu || use idn ; then + if use icu ; then + myeconfargs+=( + --enable-builtin=libicu + --enable-runtime=libicu + ) + fi + if use idn ; then + myeconfargs+=( + --enable-builtin=libidn2 + --enable-runtime=libidn2 + ) + fi + else + myeconfargs+=( --disable-runtime ) + fi + + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install() { + default + + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die +} |