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

Diff of /eclass/distutils.eclass

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

Revision 1.61 Revision 1.62
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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/distutils.eclass,v 1.61 2009/09/07 02:34:10 arfrever Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.62 2009/09/09 19:26:00 arfrever Exp $
4 4
5# @ECLASS: distutils.eclass 5# @ECLASS: distutils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# <python@gentoo.org> 7# <python@gentoo.org>
8# 8#
22 *) 22 *)
23 EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install pkg_postinst pkg_postrm 23 EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install pkg_postinst pkg_postrm
24 ;; 24 ;;
25esac 25esac
26 26
27if [[ -z "${DISTUTILS_DISABLE_PYTHON_DEPENDENCY}" ]]; then
27DEPEND="virtual/python" 28 DEPEND="virtual/python"
28RDEPEND="${DEPEND}" 29 RDEPEND="${DEPEND}"
30fi
29python="python" 31python="python"
30 32
31# @ECLASS-VARIABLE: DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES 33# @ECLASS-VARIABLE: DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES
32# @DESCRIPTION: 34# @DESCRIPTION:
33# Set this to use separate source directories for each enabled version of Python. 35# Set this to use separate source directories for each enabled version of Python.
157 159
158 echo ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" 160 echo ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@"
159 ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" || die "Installation failed" 161 ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" || die "Installation failed"
160 fi 162 fi
161 163
162 DDOCS="CHANGELOG KNOWN_BUGS MAINTAINERS PKG-INFO CONTRIBUTORS TODO NEWS" 164 local default_docs
163 DDOCS="${DDOCS} Change* MANIFEST* README* AUTHORS" 165 default_docs="AUTHORS Change* CHANGELOG CONTRIBUTORS KNOWN_BUGS MAINTAINERS MANIFEST* NEWS PKG-INFO README* TODO"
164 166
165 local doc 167 local doc
166 for doc in ${DDOCS}; do 168 for doc in ${default_docs}; do
167 [[ -s "$doc" ]] && dodoc $doc 169 [[ -s "${doc}" ]] && dodoc "${doc}"
168 done 170 done
169 171
170 [[ -n "${DOCS}" ]] && dodoc ${DOCS} 172 if [[ -n "${DOCS}" ]]; then
173 dodoc ${DOCS} || die "dodoc failed"
174 fi
171} 175}
172 176
173# @FUNCTION: distutils_pkg_postrm 177# @FUNCTION: distutils_pkg_postrm
174# @DESCRIPTION: 178# @DESCRIPTION:
175# Generic pyc/pyo cleanup script. This function is exported. 179# Generic pyc/pyo cleanup script. This function is exported.

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62

  ViewVC Help
Powered by ViewVC 1.1.20