1 |
mgorny 12/11/04 15:16:34 |
2 |
|
3 |
Modified: ChangeLog python-r1.eclass |
4 |
Log: |
5 |
Always require PYTHON_COMPAT. Add an exception for python-exec which is a special case. |
6 |
|
7 |
Revision Changes Path |
8 |
1.499 eclass/ChangeLog |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.499&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.499&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.498&r2=1.499 |
13 |
|
14 |
Index: ChangeLog |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
17 |
retrieving revision 1.498 |
18 |
retrieving revision 1.499 |
19 |
diff -u -r1.498 -r1.499 |
20 |
--- ChangeLog 1 Nov 2012 23:57:50 -0000 1.498 |
21 |
+++ ChangeLog 4 Nov 2012 15:16:34 -0000 1.499 |
22 |
@@ -1,6 +1,10 @@ |
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.498 2012/11/01 23:57:50 robbat2 Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.499 2012/11/04 15:16:34 mgorny Exp $ |
27 |
+ |
28 |
+ 04 Nov 2012; Michał Górny <mgorny@g.o> python-r1.eclass: |
29 |
+ Always require PYTHON_COMPAT. Add an exception for python-exec which is a |
30 |
+ special case. |
31 |
|
32 |
01 Nov 2012; Robin H. Johnson <robbat2@g.o> mysql-autotools.eclass, |
33 |
mysql-cmake.eclass, mysql-v2.eclass: |
34 |
|
35 |
|
36 |
|
37 |
1.17 eclass/python-r1.eclass |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python-r1.eclass?rev=1.17&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python-r1.eclass?rev=1.17&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python-r1.eclass?r1=1.16&r2=1.17 |
42 |
|
43 |
Index: python-r1.eclass |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v |
46 |
retrieving revision 1.16 |
47 |
retrieving revision 1.17 |
48 |
diff -u -r1.16 -r1.17 |
49 |
--- python-r1.eclass 1 Nov 2012 21:49:34 -0000 1.16 |
50 |
+++ python-r1.eclass 4 Nov 2012 15:16:34 -0000 1.17 |
51 |
@@ -1,6 +1,6 @@ |
52 |
# Copyright 1999-2012 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.16 2012/11/01 21:49:34 mgorny Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.17 2012/11/04 15:16:34 mgorny Exp $ |
56 |
|
57 |
# @ECLASS: python-r1 |
58 |
# @MAINTAINER: |
59 |
@@ -50,15 +50,12 @@ |
60 |
) |
61 |
|
62 |
# @ECLASS-VARIABLE: PYTHON_COMPAT |
63 |
+# @REQUIRED |
64 |
# @DESCRIPTION: |
65 |
# This variable contains a list of Python implementations the package |
66 |
# supports. It must be set before the `inherit' call. It has to be |
67 |
# an array. |
68 |
# |
69 |
-# The default is to enable all supported implementations. However, it is |
70 |
-# discouraged to use that default unless in very special cases and test |
71 |
-# the package with each added implementation instead. |
72 |
-# |
73 |
# Example: |
74 |
# @CODE |
75 |
# PYTHON_COMPAT=( python2_5 python2_6 python2_7 ) |
76 |
@@ -69,7 +66,11 @@ |
77 |
# PYTHON_COMPAT=( python{2_5,2_6,2_7} ) |
78 |
# @CODE |
79 |
if ! declare -p PYTHON_COMPAT &>/dev/null; then |
80 |
- PYTHON_COMPAT=( "${_PYTHON_ALL_IMPLS[@]}" ) |
81 |
+ if [[ ${CATEGORY}/${PN} == dev-python/python-exec ]]; then |
82 |
+ PYTHON_COMPAT=( "${_PYTHON_ALL_IMPLS[@]}" ) |
83 |
+ else |
84 |
+ die 'PYTHON_COMPAT not declared.' |
85 |
+ fi |
86 |
fi |
87 |
|
88 |
# @ECLASS-VARIABLE: PYTHON_REQ_USE |