--- /usr/portage/net-libs/gnutls/gnutls-3.2.9.ebuild 2014-01-24 20:56:54.000000000 +0100 +++ net-libs/gnutls/gnutls-3.2.9.ebuild 2014-01-26 20:16:05.069904884 +0100 @@ -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,15 +21,19 @@ # 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 - 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 )" +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}] + 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 @@ -66,23 +70,23 @@ # Use sane .so versioning on FreeBSD. elibtoolize + + 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 cxx) \ $(use_enable dane libdane) \ - $(use_enable doc gtk-doc) \ - $(use_enable doc gtk-doc-pdf) \ $(use_enable guile) \ $(use_enable nls) \ $(use_enable static-libs static) \ @@ -90,17 +94,32 @@ $(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-gkt-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