[sys-process/audit] fix messed up merge which broke USE=python

This commit is contained in:
Robert Förster 2014-05-30 10:04:52 +02:00
parent 569c9cb8c5
commit 607a8ec284

View File

@ -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