diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-03-09 13:52:05 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-03-09 13:52:05 +0000 |
commit | b3c64752b1fa67a8d99c6c69f3291383144b929f (patch) | |
tree | 91374883845c9f51b6cb8349fb881d4e7b406f3e /eclass/multilib-build.eclass | |
parent | Use multibuild_copy_sources for python_copy_sources. (diff) | |
download | gentoo-2-b3c64752b1fa67a8d99c6c69f3291383144b929f.tar.gz gentoo-2-b3c64752b1fa67a8d99c6c69f3291383144b929f.tar.bz2 gentoo-2-b3c64752b1fa67a8d99c6c69f3291383144b929f.zip |
Introduce multilib_copy_sources.
Diffstat (limited to 'eclass/multilib-build.eclass')
-rw-r--r-- | eclass/multilib-build.eclass | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/eclass/multilib-build.eclass b/eclass/multilib-build.eclass index c29b5df066ca..dbaed70ad773 100644 --- a/eclass/multilib-build.eclass +++ b/eclass/multilib-build.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.9 2013/03/04 19:31:01 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.10 2013/03/09 13:52:05 mgorny Exp $ # @ECLASS: multilib-build.eclass # @MAINTAINER: @@ -190,5 +190,19 @@ multilib_check_headers() { fi } +# @FUNCTION: multilib_copy_sources +# @DESCRIPTION: +# Create a single copy of the package sources for each enabled ABI. +# +# The sources are always copied from initial BUILD_DIR (or S if unset) +# to ABI-specific build directory matching BUILD_DIR used by +# multilib_foreach_abi(). +multilib_copy_sources() { + debug-print-function ${FUNCNAME} "${@}" + + local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) ) + multibuild_copy_sources +} + _MULTILIB_BUILD=1 fi |