--- gnutls-3.2.10.ebuild 2014-02-12 15:20:38.865846377 -0800 +++ gnutls-3.2.10.ebuild 2014-02-12 15:43:43.794679876 -0800 @@ -1,10 +1,10 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/gnutls-3.2.10.ebuild,v 1.1 2014/02/03 20:20:36 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/gnutls-3.2.10.ebuild,v 1.1 2014/01/24 19:56:54 radhermit Exp $ 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 @@ # 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 @@ -70,42 +74,57 @@ # 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 \ + myconf=( --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ --disable-valgrind-tests \ --enable-heartbeat-support \ + $(use_enable crywrap) \ $(use_enable cxx) \ $(use_enable dane libdane) \ - $(use_enable doc gtk-doc) \ - $(use_enable doc gtk-doc-pdf) \ - $(use_enable guile) \ - $(use_enable crywrap) \ + $(use_enable guile guile "${EPREFIX}/usr/$(get_libdir)" ) \ $(use_enable nls) \ $(use_enable static-libs static) \ $(use_with pkcs11 p11-kit) \ $(use_with zlib) \ --without-tpm \ $([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) + ) + + if multilib_build_binaries; then + myconf+=( + $(use_enable doc gtk-doc) \ + $(use_enable doc gtk-doc-pdf) + ) + else + myconf+=( + --disable-gtk-doc + --disable-gtk-doc-pdf + ) + fi + + ECONF_SOURCE="${S}" \ + econf \ + ${myconf[@]} } -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