--- /usr/portage/net-libs/gnutls/gnutls-3.3.1.ebuild 2014-04-25 21:31:28.000000000 +0200 +++ gnutls-3.3.1.ebuild 2014-05-04 12:34:31.000000000 +0200 @@ -4,7 +4,7 @@ EAPI=5 -inherit autotools libtool eutils versionator +inherit autotools libtool eutils versionator multilib-minimal 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-3.2[${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 ) + dane? ( net-dns/unbound[${MULTILIB_USEDEP}] ) guile? ( >=dev-scheme/guile-1.8[networking] ) - nls? ( virtual/libintl ) - pkcs11? ( >=app-crypt/p11-kit-0.19.2 ) - zlib? ( >=sys-libs/zlib-1.2.3.1 )" + 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 @@ -38,8 +42,6 @@ nls? ( sys-devel/gettext ) test? ( app-misc/datefudge )" -DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) - S=${WORKDIR}/${PN}-$(get_version_component_range 1-3) src_prepare() { @@ -67,22 +69,23 @@ use cxx || epunt_cxx } -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_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) \ + $(multilib_native_use_enable doc gtk-doc) \ + $(multilib_native_use_enable doc gtk-doc-pdf) \ + $(multilib_native_use_enable guile) \ $(use_enable crywrap) \ $(use_enable nls) \ $(use_enable static-libs static) \ @@ -92,17 +95,15 @@ $([[ ${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 + dodoc AUTHORS ChangeLog NEWS README THANKS doc/TODO doc/certtool.cfg if use doc; then dodoc doc/gnutls.pdf