/[gentoo-x86]/eclass/python-distutils-ng.eclass
Gentoo

Diff of /eclass/python-distutils-ng.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.10
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/python-distutils-ng.eclass,v 1.9 2012/03/30 16:41:40 nelchael Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/python-distutils-ng.eclass,v 1.10 2012/04/03 19:12:46 nelchael Exp $
4 4
5# @ECLASS: python-distutils-ng 5# @ECLASS: python-distutils-ng
6# @MAINTAINER: 6# @MAINTAINER:
7# Python herd <python@gentoo.org> 7# Python herd <python@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
49# @ECLASS-VARIABLE: PYTHON_DISABLE_COMPILATION 49# @ECLASS-VARIABLE: PYTHON_DISABLE_COMPILATION
50# @DESCRIPTION: 50# @DESCRIPTION:
51# Set the value to "yes" to skip compilation and/or optimization of Python 51# Set the value to "yes" to skip compilation and/or optimization of Python
52# modules. 52# modules.
53 53
54EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install 54EXPORT_FUNCTIONS pkg_pretend src_prepare src_configure src_compile src_test src_install
55 55
56case "${EAPI}" in 56case "${EAPI}" in
57 0|1|2|3) 57 0|1|2|3)
58 die "Unsupported EAPI=${EAPI} (too old) for python-distutils-ng.eclass" ;; 58 die "Unsupported EAPI=${EAPI} (too old) for python-distutils-ng.eclass" ;;
59 4) 59 4)
286 286
287 dosym "${destination_file}-${default_impl}" "${destination_directory}/${destination_file}" 287 dosym "${destination_file}-${default_impl}" "${destination_directory}/${destination_file}"
288 fi 288 fi
289} 289}
290 290
291# Phase function: pkg_pretend
292python-distutils-ng_pkg_pretend() {
293 if has "collision-protect" ${FEATURES}; then
294 eerror "Due to previous eclass compiling Python files outside of src_install"
295 eerror "(and not recording resulting .pyc and .pyo files as owned by any package)"
296 eerror "merging this package with \"collision-protect\" in FEATURES will result"
297 eerror "in an error, please switch to using \"protect-owned\" instead."
298 die "\"collision-protect\" in FEATURES detected"
299 fi
300}
301
291# Phase function: src_prepare 302# Phase function: src_prepare
292python-distutils-ng_src_prepare() { 303python-distutils-ng_src_prepare() {
293 [[ "${PYTHON_OPTIONAL}" = "yes" ]] && { use python || return; } 304 [[ "${PYTHON_OPTIONAL}" = "yes" ]] && { use python || return; }
294 305
295 # Try to run binary for each implementation: 306 # Try to run binary for each implementation:

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20