Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: python@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 3/3] multilib-build: introduce multilib_copy_sources.
Date: Wed, 06 Mar 2013 14:26:29
Message-Id: 1362579955-31813-3-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/3] multibuild: introduce generic multibuild_copy_sources. by "Michał Górny"
1 ---
2 gx86/eclass/multilib-build.eclass | 14 ++++++++++++++
3 1 file changed, 14 insertions(+)
4
5 diff --git a/gx86/eclass/multilib-build.eclass b/gx86/eclass/multilib-build.eclass
6 index c29b5df..66fb5a6 100644
7 --- a/gx86/eclass/multilib-build.eclass
8 +++ b/gx86/eclass/multilib-build.eclass
9 @@ -190,5 +190,19 @@ multilib_check_headers() {
10 fi
11 }
12
13 +# @FUNCTION: multilib_copy_sources
14 +# @DESCRIPTION:
15 +# Create a single copy of the package sources for each enabled ABI.
16 +#
17 +# The sources are always copied from initial BUILD_DIR (or S if unset)
18 +# to ABI-specific build directory matching BUILD_DIR used by
19 +# multilib_foreach_abi().
20 +multilib_copy_sources() {
21 + debug-print-function ${FUNCNAME} "${@}"
22 +
23 + local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
24 + multibuild_copy_sources
25 +}
26 +
27 _MULTILIB_BUILD=1
28 fi
29 --
30 1.8.1.5