/[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.23 Revision 1.24
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.23 2012/05/21 18:10:33 nelchael Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/python-distutils-ng.eclass,v 1.24 2012/05/24 18:18:11 floppym 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:
57# @DEFAULT_UNSET 57# @DEFAULT_UNSET
58# @DESCRIPTION: 58# @DESCRIPTION:
59# Set to any value to disable automatic reinstallation of scripts in bin 59# Set to any value to disable automatic reinstallation of scripts in bin
60# directories. See python-distutils-ng_src_install function. 60# directories. See python-distutils-ng_src_install function.
61 61
62EXPORT_FUNCTIONS pkg_pretend src_prepare src_configure src_compile src_test src_install 62EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install
63 63
64case "${EAPI}" in 64case "${EAPI}" in
65 0|1|2|3) 65 0|1|2|3)
66 die "Unsupported EAPI=${EAPI} (too old) for python-distutils-ng.eclass" ;; 66 die "Unsupported EAPI=${EAPI} (too old) for python-distutils-ng.eclass" ;;
67 4) 67 4)
291 291
292 dosym "${destination_file}-${default_impl}" "${destination_directory}/${destination_file}" 292 dosym "${destination_file}-${default_impl}" "${destination_directory}/${destination_file}"
293 fi 293 fi
294} 294}
295 295
296# Phase function: pkg_pretend
297python-distutils-ng_pkg_pretend() {
298 if has "collision-protect" ${FEATURES}; then
299 ewarn "Due to previous eclass compiling Python files outside of src_install"
300 ewarn "(and not recording resulting .pyc and .pyo files as owned by any package)"
301 ewarn "merging this package with \"collision-protect\" in FEATURES may result"
302 ewarn "in an error, please switch to using \"protect-owned\" instead."
303 fi
304}
305
306# Phase function: src_prepare 296# Phase function: src_prepare
307python-distutils-ng_src_prepare() { 297python-distutils-ng_src_prepare() {
308 [[ "${PYTHON_OPTIONAL}" = "yes" ]] && { use python || return; } 298 [[ "${PYTHON_OPTIONAL}" = "yes" ]] && { use python || return; }
309 299
310 # Try to run binary for each implementation: 300 # Try to run binary for each implementation:

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.20