Gentoo Archives: gentoo-commits

From: "Krzysztof Pawlik (nelchael)" <nelchael@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog python-distutils-ng.eclass
Date: Tue, 03 Apr 2012 19:21:56
Message-Id: 20120403192145.322722004B@flycatcher.gentoo.org
1 nelchael 12/04/03 19:21:45
2
3 Modified: ChangeLog python-distutils-ng.eclass
4 Log:
5 Add function that makes it easier to properly install Python scripts that get installed automatically by distutils.
6
7 Revision Changes Path
8 1.202 eclass/ChangeLog
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.202&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.202&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.201&r2=1.202
13
14 Index: ChangeLog
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
17 retrieving revision 1.201
18 retrieving revision 1.202
19 diff -u -r1.201 -r1.202
20 --- ChangeLog 3 Apr 2012 19:16:29 -0000 1.201
21 +++ ChangeLog 3 Apr 2012 19:21:45 -0000 1.202
22 @@ -1,6 +1,11 @@
23 # ChangeLog for eclass directory
24 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.201 2012/04/03 19:16:29 nelchael Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.202 2012/04/03 19:21:45 nelchael Exp $
27 +
28 + 03 Apr 2012; Krzysztof Pawlik <nelchael@g.o>
29 + python-distutils-ng.eclass:
30 + Add function that makes it easier to properly install Python scripts that get
31 + installed automatically by distutils.
32
33 03 Apr 2012; Krzysztof Pawlik <nelchael@g.o> mercurial.eclass:
34 Rename ESCM_OFFLINE to EVCS_OFFLINE, see bug #410469.
35
36
37
38 1.11 eclass/python-distutils-ng.eclass
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python-distutils-ng.eclass?rev=1.11&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python-distutils-ng.eclass?rev=1.11&content-type=text/plain
42 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python-distutils-ng.eclass?r1=1.10&r2=1.11
43
44 Index: python-distutils-ng.eclass
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/eclass/python-distutils-ng.eclass,v
47 retrieving revision 1.10
48 retrieving revision 1.11
49 diff -u -r1.10 -r1.11
50 --- python-distutils-ng.eclass 3 Apr 2012 19:12:46 -0000 1.10
51 +++ python-distutils-ng.eclass 3 Apr 2012 19:21:45 -0000 1.11
52 @@ -1,6 +1,6 @@
53 # Copyright 1999-2012 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 -# $Header: /var/cvsroot/gentoo-x86/eclass/python-distutils-ng.eclass,v 1.10 2012/04/03 19:12:46 nelchael Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/eclass/python-distutils-ng.eclass,v 1.11 2012/04/03 19:21:45 nelchael Exp $
57
58 # @ECLASS: python-distutils-ng
59 # @MAINTAINER:
60 @@ -204,6 +204,19 @@
61 esac
62 }
63
64 +# @FUNCTION: python-distutils-ng_redoscript
65 +# @USAGE: script_file_path [destination_directory]
66 +# @DESCRIPTION:
67 +# Reinstall script installed already by setup.py. This works by first moving the
68 +# script to ${T} directory and later running python-distutils-ng_doscript on it.
69 +# script_file_path has to be a full path relative to ${D}.
70 +python-distutils-ng_redoscript() {
71 + local sbn="$(basename "${1}")"
72 + mkdir -p "${T}/_${sbn}/" || die "failed to create directory"
73 + mv "${D}/${1}" "${T}/_${sbn}/${sbn}" || die "failed to move file"
74 + python-distutils-ng_doscript "${T}/_${sbn}/${sbn}" "${2}"
75 +}
76 +
77 # @FUNCTION: python-distutils-ng_doscript
78 # @USAGE: script_file_name [destination_directory]
79 # @DESCRIPTION: