--- gnutls-3.2.11.ebuild 2014-02-15 05:59:34.000000000 +0200 +++ gnutls-3.2.11-r1.ebuild 2014-02-15 23:31:19.732729922 +0200 @@ -4,7 +4,7 @@ EAPI=5 -inherit autotools libtool eutils versionator +inherit autotools-multilib libtool eutils versionator DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" HOMEPAGE="http://www.gnutls.org/" @@ -21,16 +21,20 @@ IUSE="+cxx +crywrap dane doc examples gu # NOTICE: sys-devel/autogen is required at runtime as we # use system libopts -RDEPEND=">=dev-libs/libtasn1-2.14 - >=dev-libs/nettle-2.7[gmp] - dev-libs/gmp - sys-devel/autogen +RDEPEND=">=dev-libs/libtasn1-2.14[${MULTILIB_USEDEP}] + >=dev-libs/nettle-2.7[gmp,${MULTILIB_USEDEP}] + dev-libs/gmp[${MULTILIB_USEDEP}] + sys-devel/autogen[${MULTILIB_USEDEP}] crywrap? ( net-dns/libidn ) - dane? ( net-dns/unbound ) - guile? ( >=dev-scheme/guile-1.8[networking] ) - nls? ( virtual/libintl ) - pkcs11? ( >=app-crypt/p11-kit-0.11 ) - zlib? ( >=sys-libs/zlib-1.2.3.1 )" + dane? ( net-dns/unbound[${MULTILIB_USEDEP}] ) + guile? ( >=dev-scheme/guile-1.8[networking,${MULTILIB_USEDEP}] ) + nls? ( virtual/libintl[${MULTILIB_USEDEP}] ) + pkcs11? ( >=app-crypt/p11-kit-0.11[${MULTILIB_USEDEP}] ) + zlib? ( >=sys-libs/zlib-1.2.3.1[${MULTILIB_USEDEP}] ) + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20131008-r9 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + )" DEPEND="${RDEPEND} >=sys-devel/automake-1.11.6 virtual/pkgconfig @@ -40,6 +44,16 @@ DEPEND="${RDEPEND} DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) +use_enable_binaries() { + if false && multilib_build_binaries; then + use_enable "$@" + else + local flag="$1" + local name="${2:-${flag}}" + echo "--disable-${name}" + fi +} + src_prepare() { # tests/suite directory is not distributed sed -i \ @@ -70,24 +84,26 @@ src_prepare() { # bug 497472 use cxx || epunt_cxx + + multilib_copy_sources } -src_configure() { +multilib_src_configure() { LINGUAS="${LINGUAS//en/en@boldquot en@quot}" # TPM needs to be tested before being enabled # hardware-accell is disabled on OSX because the asm files force # GNU-stack (as doesn't support that) and when that's removed ld # complains about duplicate symbols - econf \ + ECONF_SOURCE="${S}" econf \ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ --disable-valgrind-tests \ --enable-heartbeat-support \ $(use_enable cxx) \ $(use_enable dane libdane) \ - $(use_enable doc gtk-doc) \ - $(use_enable doc gtk-doc-pdf) \ - $(use_enable guile) \ + $(use_enable_binaries doc gtk-doc) \ + $(use_enable_binaries doc gtk-doc-pdf) \ + $(use_enable guile guile "${EPREFIX}/usr/$(get_libdir)" ) \ $(use_enable crywrap) \ $(use_enable nls) \ $(use_enable static-libs static) \ @@ -97,15 +113,13 @@ src_configure() { $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) } -src_test() { +multilib_src_test() { # parallel testing often fails emake -j1 check } -src_install() { - default - - find "${ED}" -name '*.la' -delete +multilib_src_install_all() { + prune_libtool_files dodoc doc/certtool.cfg