--- /usr/portage/dev-libs/libgcrypt/libgcrypt-1.6.1.ebuild 2014-02-04 03:38:53.000000000 +0100 +++ /var/lib/layman/ixit/dev-libs/libgcrypt/libgcrypt-1.6.1-r1.ebuild 2014-02-06 02:06:43.256354447 +0100 @@ -1,11 +1,11 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgcrypt/libgcrypt-1.6.1.ebuild,v 1.1 2014/02/04 02:38:53 radhermit Exp $ +# $Header: $ EAPI=5 AUTOTOOLS_AUTORECONF=1 -inherit autotools-utils flag-o-matic +inherit autotools-multilib flag-o-matic DESCRIPTION="General purpose crypto library based on the code used in GnuPG" HOMEPAGE="http://www.gnupg.org/" @@ -17,7 +17,11 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="static-libs" -RDEPEND=">=dev-libs/libgpg-error-1.11" +RDEPEND=">=dev-libs/libgpg-error-1.12-r1[${MULTILIB_USEDEP}] + abi_x86_32? ( + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + !<=app-emulation/emul-linux-x86-baselibs-20131008-r8 + )" DEPEND="${RDEPEND}" DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) @@ -51,5 +55,15 @@ $([[ ${CHOST} == *86*-darwin* ]] && echo "--disable-asm") $([[ ${CHOST} == sparcv9-*-solaris* ]] && echo "--disable-asm") ) - autotools-utils_src_configure + + autotools-multilib_src_configure +} + +multilib_src_install() { + emake DESTDIR="${D}" install + + mv "${ED}"/usr/bin/{,"${CHOST}"-}libgcrypt-config || die + if multilib_build_binaries; then + dosym "${CHOST}"-libgcrypt-config /usr/bin/libgcrypt-config + fi }