diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-03-09 13:51:39 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-03-09 13:51:39 +0000 |
commit | 99d82e50bdb7916bd6a384a46f3f1cc32314590b (patch) | |
tree | 933a8f73aa4d47bd474906348800d7e3c2436ba7 /eclass/python-r1.eclass | |
parent | Version bump (using autotools-utils); remove old. (diff) | |
download | gentoo-2-99d82e50bdb7916bd6a384a46f3f1cc32314590b.tar.gz gentoo-2-99d82e50bdb7916bd6a384a46f3f1cc32314590b.tar.bz2 gentoo-2-99d82e50bdb7916bd6a384a46f3f1cc32314590b.zip |
Use multibuild_copy_sources for python_copy_sources.
Diffstat (limited to 'eclass/python-r1.eclass')
-rw-r--r-- | eclass/python-r1.eclass | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index 934f32d5a543..634042da0fd4 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.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/python-r1.eclass,v 1.47 2013/03/04 19:28:47 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.48 2013/03/09 13:51:39 mgorny Exp $ # @ECLASS: python-r1 # @MAINTAINER: @@ -348,34 +348,22 @@ python_gen_cond_dep() { # @FUNCTION: python_copy_sources # @DESCRIPTION: -# Create a single copy of the package sources (${S}) for each enabled -# Python implementation. +# Create a single copy of the package sources for each enabled Python +# implementation. # -# The sources are always copied from S to implementation-specific build -# directories respecting BUILD_DIR. +# The sources are always copied from initial BUILD_DIR (or S if unset) +# to implementation-specific build directory matching BUILD_DIR used by +# python_foreach_abi(). python_copy_sources() { debug-print-function ${FUNCNAME} "${@}" _python_validate_useflags + _python_check_USE_PYTHON - local impl - local bdir=${BUILD_DIR:-${S}} - - debug-print "${FUNCNAME}: bdir = ${bdir}" - einfo "Will copy sources from ${S}" - # the order is irrelevant here - for impl in "${PYTHON_COMPAT[@]}"; do - _python_impl_supported "${impl}" || continue - - if use "python_targets_${impl}" - then - local BUILD_DIR=${bdir%%/}-${impl} + local MULTIBUILD_VARIANTS + _python_obtain_impls - einfo "${impl}: copying to ${BUILD_DIR}" - debug-print "${FUNCNAME}: [${impl}] cp ${S} => ${BUILD_DIR}" - cp -pr "${S}" "${BUILD_DIR}" || die - fi - done + multibuild_copy_sources } # @FUNCTION: _python_check_USE_PYTHON |