/[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.22 Revision 1.23
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.22 2012/05/21 17:33:09 nelchael Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/python-distutils-ng.eclass,v 1.23 2012/05/21 18:10:33 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:
198# @USAGE: script_file_path [destination_directory] 198# @USAGE: script_file_path [destination_directory]
199# @DESCRIPTION: 199# @DESCRIPTION:
200# Reinstall script installed already by setup.py. This works by first moving the 200# Reinstall script installed already by setup.py. This works by first moving the
201# script to ${T} directory and later running python-distutils-ng_doscript on it. 201# script to ${T} directory and later running python-distutils-ng_doscript on it.
202# script_file_path has to be a full path relative to ${D}. 202# script_file_path has to be a full path relative to ${D}.
203# Warning: this function can be run automatically by the eclass in src_install,
204# see python-distutils-ng_src_install and PYTHON_DISABLE_SCRIPT_REDOS variable.
203python-distutils-ng_redoscript() { 205python-distutils-ng_redoscript() {
204 local sbn="$(basename "${1}")" 206 local sbn="$(basename "${1}")"
205 mkdir -p "${T}/_${sbn}/" || die "failed to create directory" 207 mkdir -p "${T}/_${sbn}/" || die "failed to create directory"
206 mv "${D}${1}" "${T}/_${sbn}/${sbn}" || die "failed to move file" 208 mv "${D}${1}" "${T}/_${sbn}/${sbn}" || die "failed to move file"
207 python-distutils-ng_doscript "${T}/_${sbn}/${sbn}" "${2}" 209 python-distutils-ng_doscript "${T}/_${sbn}/${sbn}" "${2}"

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

  ViewVC Help
Powered by ViewVC 1.1.20