1 |
mgorny 12/10/29 09:47:41 |
2 |
|
3 |
Modified: distutils-r1.eclass ChangeLog |
4 |
Log: |
5 |
Use new python-r1 functions. |
6 |
|
7 |
Revision Changes Path |
8 |
1.9 eclass/distutils-r1.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?rev=1.9&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?rev=1.9&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?r1=1.8&r2=1.9 |
13 |
|
14 |
Index: distutils-r1.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v |
17 |
retrieving revision 1.8 |
18 |
retrieving revision 1.9 |
19 |
diff -u -r1.8 -r1.9 |
20 |
--- distutils-r1.eclass 26 Oct 2012 21:38:47 -0000 1.8 |
21 |
+++ distutils-r1.eclass 29 Oct 2012 09:47:41 -0000 1.9 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2012 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.8 2012/10/26 21:38:47 mgorny Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.9 2012/10/29 09:47:41 mgorny Exp $ |
27 |
|
28 |
# @ECLASS: distutils-r1 |
29 |
# @MAINTAINER: |
30 |
@@ -253,35 +253,16 @@ |
31 |
|
32 |
# note: keep in sync with ...rename_scripts() |
33 |
# also, we assume that each script is installed for all impls |
34 |
- local impl EPYTHON PYTHON |
35 |
- for impl in "${PYTHON_COMPAT[@]}"; do |
36 |
- if use "python_targets_${impl}"; then |
37 |
- python_export "${impl}" EPYTHON |
38 |
- break |
39 |
- fi |
40 |
- done |
41 |
+ local EPYTHON |
42 |
+ python_export_best EPYTHON |
43 |
|
44 |
for f in "${D}"/{bin,sbin,usr/bin,usr/sbin,games/bin}/*-"${EPYTHON}"; do |
45 |
if [[ -x ${f} ]]; then |
46 |
debug-print "${FUNCNAME}: found executable at ${f#${D}/}" |
47 |
|
48 |
local wrapf=${f%-${EPYTHON}} |
49 |
- debug-print "${FUNCNAME}: will link wrapper to ${wrapf#${D}/}" |
50 |
- local wrapfrom |
51 |
- case "${f#${D}/}" in |
52 |
- usr/bin*) |
53 |
- wrapfrom= |
54 |
- ;; |
55 |
- usr/sbin*) |
56 |
- wrapfrom=../bin/ |
57 |
- ;; |
58 |
- *) |
59 |
- wrapfrom=../usr/bin/ |
60 |
- ;; |
61 |
- esac |
62 |
- debug-print "${FUNCNAME}: (from ${wrapfrom}python-exec)" |
63 |
|
64 |
- ln -s ${wrapfrom}python-exec "${wrapf}" || die |
65 |
+ _python_ln_rel "${ED}"/usr/bin/python-exec "${wrapf}" || die |
66 |
fi |
67 |
done |
68 |
} |
69 |
|
70 |
|
71 |
|
72 |
1.478 eclass/ChangeLog |
73 |
|
74 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.478&view=markup |
75 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.478&content-type=text/plain |
76 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.477&r2=1.478 |
77 |
|
78 |
Index: ChangeLog |
79 |
=================================================================== |
80 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
81 |
retrieving revision 1.477 |
82 |
retrieving revision 1.478 |
83 |
diff -u -r1.477 -r1.478 |
84 |
--- ChangeLog 29 Oct 2012 09:46:03 -0000 1.477 |
85 |
+++ ChangeLog 29 Oct 2012 09:47:41 -0000 1.478 |
86 |
@@ -1,6 +1,9 @@ |
87 |
# ChangeLog for eclass directory |
88 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
89 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.477 2012/10/29 09:46:03 mgorny Exp $ |
90 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.478 2012/10/29 09:47:41 mgorny Exp $ |
91 |
+ |
92 |
+ 29 Oct 2012; Michał Górny <mgorny@g.o> distutils-r1.eclass: |
93 |
+ Use new python-r1 functions. |
94 |
|
95 |
29 Oct 2012; Michał Górny <mgorny@g.o> python-r1.eclass: |
96 |
Introduce python_replicate_script(), to create copies of a Python script for |