From 607a8ec2844c0a2b92edcbca68567fc2795c1635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20F=C3=B6rster?= Date: Fri, 30 May 2014 10:04:52 +0200 Subject: [PATCH] [sys-process/audit] fix messed up merge which broke USE=python --- sys-process/audit/audit-2.3.6.ebuild | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/sys-process/audit/audit-2.3.6.ebuild b/sys-process/audit/audit-2.3.6.ebuild index 4999240..79c32ed 100644 --- a/sys-process/audit/audit-2.3.6.ebuild +++ b/sys-process/audit/audit-2.3.6.ebuild @@ -21,7 +21,7 @@ IUSE="apparmor ldap python tcpd" RESTRICT="test" RDEPEND="apparmor? ( sys-apps/apparmor ) - ldap? ( net-nds/openldap ) + ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) tcpd? ( sys-apps/tcp-wrappers ) sys-libs/libcap-ng" DEPEND="${RDEPEND} @@ -90,6 +90,27 @@ multilib_src_configure() { fi } +multilib_src_compile() { + if multilib_is_native_abi; then + default + + python_compile() { + emake -C "${BUILD_DIR}"/swig \ + VPATH="${native_build}/lib" \ + LIBS="${native_build}/lib/libaudit.la" + emake -C "${BUILD_DIR}"/bindings/python \ + VPATH="${S}/bindings/python:${native_build}/bindings/python" \ + auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" + } + + local native_build=${BUILD_DIR} + use python && python_foreach_impl python_compile + else + emake -C lib + emake -C auparse + fi +} + multilib_src_install() { if multilib_is_native_abi; then emake DESTDIR="${D}" initdir="$(systemd_get_unitdir)" install