commit:     de715cbe1562643b3a47a34b1e45e04638e8e089
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 18 16:24:26 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Mar 18 16:24:26 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de715cbe

net-libs/libpsl: Added multilib support.

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 net-libs/libpsl/libpsl-0.20.2.ebuild | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/net-libs/libpsl/libpsl-0.20.2.ebuild 
b/net-libs/libpsl/libpsl-0.20.2.ebuild
index 4873768c063..13d871a3273 100644
--- a/net-libs/libpsl/libpsl-0.20.2.ebuild
+++ b/net-libs/libpsl/libpsl-0.20.2.ebuild
@@ -3,6 +3,8 @@
 
 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";
@@ -15,10 +17,10 @@ IUSE="icu +idn +man"
 REQUIRED_USE="^^ ( icu idn )"
 
 RDEPEND="
-       icu? ( dev-libs/icu:= )
+       icu? ( dev-libs/icu:=[${MULTILIB_USEDEP}] )
        idn? (
-               dev-libs/libunistring
-               net-dns/libidn2:=
+               dev-libs/libunistring[${MULTILIB_USEDEP}]
+               net-dns/libidn2:=[${MULTILIB_USEDEP}]
        )
 "
 
@@ -32,7 +34,7 @@ BDEPEND="
        man? ( dev-libs/libxslt )
 "
 
-src_configure() {
+multilib_src_configure() {
        local myeconfargs=(
                --enable-ubsan
                --disable-asan
@@ -57,10 +59,10 @@ src_configure() {
                myeconfargs+=( --disable-runtime )
        fi
 
-       econf "${myeconfargs[@]}"
+       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
 }
 
-src_install() {
+multilib_src_install() {
        default
 
        find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die

Reply via email to