--- talloc-2.1.0.ebuild 2014-02-02 11:21:47.241986953 -0600 +++ /home/vostorga/Downloads/talloc-2.1.0.ebuild 2014-02-02 11:17:25.886009702 -0600 @@ -1,15 +1,15 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-libs/talloc/talloc-2.1.0.ebuild,v 1.2 2013/12/11 02:03:57 jmbsvicetto Exp $ EAPI=5 PYTHON_COMPAT=( python{2_6,2_7} ) PYTHON_REQ_USE="threads" -inherit waf-utils python-single-r1 multilib +inherit waf-utils python-single-r1 multilib multilib-minimal DESCRIPTION="Samba talloc library" HOMEPAGE="http://talloc.samba.org/" SRC_URI="http://samba.org/ftp/${PN}/${P}.tar.gz" @@ -26,20 +26,33 @@ dev-libs/libxslt || ( dev-lang/python:2.7[threads] dev-lang/python:2.6[threads] )" WAF_BINARY="${S}/buildtools/bin/waf" -src_configure() { +MULTILIB_WRAPPED_HEADERS=( +/usr/include/talloc.h +/usr/include/pytalloc.h +) + +src_prepare() { + multilib_copy_sources +} + +multilib_src_configure() { local extra_opts="" use compat && extra_opts+=" --enable-talloc-compat1" use python || extra_opts+=" --disable-python" waf-utils_src_configure \ ${extra_opts} } -src_install() { +multilib_src_compile() { + waf-utils_src_compile +} + +multilib_src_install() { waf-utils_src_install # waf is stupid, and no, we can't fix the build-system, since it's provided # as a brilliant binary blob thats decompressed on the fly if [[ ${CHOST} == *-darwin* ]] ; then