app-arch/xar: Enable multilib support (needed for LLVM)
authorMichał Górny <mgorny@gentoo.org>
Fri, 19 Jan 2018 19:38:42 +0000 (20:38 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 19 Jan 2018 20:13:51 +0000 (21:13 +0100)
app-arch/xar/xar-1.8.ebuild

index d5fa86494a622c8f49535d01e71858b515594dd2..b9e8a69274a8d61c45005d81e664ba4a688f1c59 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit flag-o-matic ltprune
+inherit flag-o-matic multilib-minimal ltprune
 
 APPLE_PV=400
 DESCRIPTION="An easily extensible archive format"
@@ -16,12 +16,12 @@ IUSE="libressl kernel_Darwin"
 
 DEPEND="
        !kernel_Darwin? (
-               !libressl? ( dev-libs/openssl:0= )
-               libressl? ( dev-libs/libressl:0= )
+               !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
+               libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
        )
-       app-arch/bzip2
-       sys-libs/zlib
-       dev-libs/libxml2
+       app-arch/bzip2[${MULTILIB_USEDEP}]
+       sys-libs/zlib[${MULTILIB_USEDEP}]
+       dev-libs/libxml2[${MULTILIB_USEDEP}]
 "
 RDEPEND="${DEPEND}"
 
@@ -34,13 +34,14 @@ src_prepare() {
        sed -i -e 's/safe_dirname/xar_safe_dirname/' lib/linuxattr.c || die
 }
 
-src_configure() {
+multilib_src_configure() {
        use kernel_Darwin || append-libs $(pkg-config --libs openssl)
+       ECONF_SOURCE=${S} \
        econf \
                --disable-static
 }
 
-src_install() {
+multilib_src_install() {
        default
        prune_libtool_files
 }