net-libs/libnsl: add basic multilib support
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 16 Sep 2017 17:25:19 +0000 (18:25 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 16 Sep 2017 17:25:27 +0000 (18:25 +0100)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

net-libs/libnsl/libnsl-1.1.0.ebuild

index 77108d56898ab5ff3970ca89612fc11c8b807131..61647327556f68d91e0bf10ddf795c8d0323b2d7 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit autotools
+inherit autotools multilib-minimal
 
 DESCRIPTION="Public client interface for NIS(YP) and NIS+ in a IPv6 ready version"
 HOMEPAGE="https://github.com/thkukuk/libnsl"
@@ -16,7 +16,7 @@ IUSE=""
 
 DEPEND="
        !<sys-libs/glibc-2.26
-       net-libs/libtirpc
+       net-libs/libtirpc[${MULTILIB_USEDEP}]
 "
 RDEPEND=${DEPEND}
 
@@ -26,3 +26,8 @@ src_prepare(){
        default
        eautoreconf
 }
+
+multilib_src_configure() {
+       # Fool multilib-minimal to run ./configure in out-of-tree build
+       ECONF_SOURCE=${S} econf
+}