--- /usr/portage/dev-libs/libgcrypt/libgcrypt-1.6.0.ebuild 2013-12-27 22:01:10.000000000 +0100 +++ /var/lib/layman/ixit/dev-libs/libgcrypt/libgcrypt-1.6.0-r1.ebuild 2014-01-04 02:24:11.080165943 +0100 @@ -1,12 +1,12 @@ -# Copyright 1999-2013 Gentoo Foundation +# 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.0.ebuild,v 1.2 2013/12/27 20:35:32 grobian Exp $ +# $Header: $ EAPI=5 AUTOTOOLS_AUTORECONF=1 WANT_AUTOMAKE=1.12 -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/" @@ -18,7 +18,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~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 ~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}]" DEPEND="${RDEPEND}" DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) @@ -51,5 +51,13 @@ $([[ ${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}" "${_at_args[@]}" install + if ! multilib_build_binaries; then + newbin "${D}"/usr/bin/libgcrypt-config "${ABI}"-libgcrypt-config || die + fi }