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

Diff of /eclass/distutils.eclass

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

Revision 1.50 Revision 1.51
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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.50 2008/06/24 13:40:50 hawking Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.51 2008/06/28 00:05:40 chtekk 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#
88 88
89# @FUNCTION: distutils_pkg_postrm 89# @FUNCTION: distutils_pkg_postrm
90# @DESCRIPTION: 90# @DESCRIPTION:
91# Generic pyc/pyo cleanup script. This function is exported. 91# Generic pyc/pyo cleanup script. This function is exported.
92distutils_pkg_postrm() { 92distutils_pkg_postrm() {
93 if [[ -z "${PYTHON_MODNAME}" &&\ 93 if [ -z "${PYTHON_MODNAME}" ] && \
94 -d ${ROOT}/usr/$(get_libdir)/python*/site-packages/${PN} ]]; then 94 [ -d ${ROOT}/usr/$(get_libdir)/python*/site-packages/${PN} ]; then
95 PYTHON_MODNAME=${PN} 95 PYTHON_MODNAME=${PN}
96 fi 96 fi
97 97
98 if has_version ">=dev-lang/python-2.3"; then 98 if has_version ">=dev-lang/python-2.3"; then
99 ebegin "Performing Python Module Cleanup .." 99 ebegin "Performing Python Module Cleanup .."
113# @FUNCTION: distutils_pkg_postinst 113# @FUNCTION: distutils_pkg_postinst
114# @DESCRIPTION: 114# @DESCRIPTION:
115# This is a generic optimization, you should override it if your package 115# This is a generic optimization, you should override it if your package
116# installs things in another directory. This function is exported 116# installs things in another directory. This function is exported
117distutils_pkg_postinst() { 117distutils_pkg_postinst() {
118 if [[ -z "${PYTHON_MODNAME}" &&\ 118 if [ -z "${PYTHON_MODNAME}" ] && \
119 -d ${ROOT}/usr/$(get_libdir)/python*/site-packages/${PN} ]]; then 119 [ -d ${ROOT}/usr/$(get_libdir)/python*/site-packages/${PN} ]; then
120 PYTHON_MODNAME=${PN} 120 PYTHON_MODNAME=${PN}
121 fi 121 fi
122 122
123 if has_version ">=dev-lang/python-2.3"; then 123 if has_version ">=dev-lang/python-2.3"; then
124 python_version 124 python_version

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

  ViewVC Help
Powered by ViewVC 1.1.20