1 |
commit: 325cfb897de8315abb606c6e723755b3a8bed963 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 5 15:12:44 2014 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 5 15:12:44 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=325cfb89 |
7 |
|
8 |
[eclass] Move all eclass variables together and sort them. |
9 |
|
10 |
--- |
11 |
eclass/cmake-utils.eclass | 124 +++++++++++++++++++++++----------------------- |
12 |
1 file changed, 63 insertions(+), 61 deletions(-) |
13 |
|
14 |
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass |
15 |
index 14eca2b..1348539 100644 |
16 |
--- a/eclass/cmake-utils.eclass |
17 |
+++ b/eclass/cmake-utils.eclass |
18 |
@@ -20,36 +20,69 @@ |
19 |
if [[ ${___ECLASS_ONCE_CMAKE_UTILS} != "recur -_+^+_- spank" ]] ; then |
20 |
___ECLASS_ONCE_CMAKE_UTILS="recur -_+^+_- spank" |
21 |
|
22 |
-# @ECLASS-VARIABLE: WANT_CMAKE |
23 |
+ |
24 |
+# @ECLASS-VARIABLE: BUILD_DIR |
25 |
# @DESCRIPTION: |
26 |
-# Specify if cmake-utils eclass should depend on cmake optionally or not. |
27 |
-# This is useful when only part of application is using cmake build system. |
28 |
-# Valid values are: always [default], optional (where the value is the useflag |
29 |
-# used for optionality) |
30 |
-: ${WANT_CMAKE:=always} |
31 |
+# Build directory where all cmake processed files should be generated. |
32 |
+# For in-source build it's fixed to ${CMAKE_USE_DIR}. |
33 |
+# For out-of-source build it can be overridden, by default it uses |
34 |
+# ${WORKDIR}/${P}_build. |
35 |
+# |
36 |
+# This variable has been called CMAKE_BUILD_DIR formerly. |
37 |
+# It is set under that name for compatibility. |
38 |
+ |
39 |
+# @ECLASS-VARIABLE: CMAKE_BINARY |
40 |
+# @DESCRIPTION: |
41 |
+# Eclass can use different cmake binary than the one provided in by system. |
42 |
+: ${CMAKE_BINARY:=cmake} |
43 |
+ |
44 |
+# @ECLASS-VARIABLE: CMAKE_BUILD_TYPE |
45 |
+# @DESCRIPTION: |
46 |
+# Set to override default CMAKE_BUILD_TYPE. Only useful for packages |
47 |
+# known to make use of "if (CMAKE_BUILD_TYPE MATCHES xxx)". |
48 |
+# If about to be set - needs to be set before invoking cmake-utils_src_configure. |
49 |
+# You usualy do *NOT* want nor need to set it as it pulls CMake default build-type |
50 |
+# specific compiler flags overriding make.conf. |
51 |
+: ${CMAKE_BUILD_TYPE:=Gentoo} |
52 |
+ |
53 |
+# @ECLASS-VARIABLE: CMAKE_IN_SOURCE_BUILD |
54 |
+# @DESCRIPTION: |
55 |
+# Set to enable in-source build. |
56 |
+ |
57 |
+# @ECLASS-VARIABLE: CMAKE_MAKEFILE_GENERATOR |
58 |
+# @DESCRIPTION: |
59 |
+# Specify a makefile generator to be used by cmake. |
60 |
+# At this point only "emake" and "ninja" are supported. |
61 |
+: ${CMAKE_MAKEFILE_GENERATOR:=emake} |
62 |
|
63 |
# @ECLASS-VARIABLE: CMAKE_MIN_VERSION |
64 |
# @DESCRIPTION: |
65 |
# Specify the minimum required CMake version. |
66 |
: ${CMAKE_MIN_VERSION:=2.8.9} |
67 |
|
68 |
+# @ECLASS-VARIABLE: CMAKE_REMOVE_MODULES |
69 |
+# @DESCRIPTION: |
70 |
+# Do we want to remove anything? yes or whatever else for no |
71 |
+: ${CMAKE_REMOVE_MODULES:=yes} |
72 |
+CMAKE_REMOVE_MODULES="${CMAKE_REMOVE_MODULES:-yes}" |
73 |
+ |
74 |
# @ECLASS-VARIABLE: CMAKE_REMOVE_MODULES_LIST |
75 |
# @DESCRIPTION: |
76 |
# Space-separated list of CMake modules that will be removed in $S during src_prepare, |
77 |
# in order to force packages to use the system version. |
78 |
: ${CMAKE_REMOVE_MODULES_LIST:=FindBLAS FindLAPACK} |
79 |
|
80 |
-# @ECLASS-VARIABLE: CMAKE_REMOVE_MODULES |
81 |
+# @ECLASS-VARIABLE: CMAKE_USE_DIR |
82 |
# @DESCRIPTION: |
83 |
-# Do we want to remove anything? yes or whatever else for no |
84 |
-: ${CMAKE_REMOVE_MODULES:=yes} |
85 |
-CMAKE_REMOVE_MODULES="${CMAKE_REMOVE_MODULES:-yes}" |
86 |
+# Sets the directory where we are working with cmake. |
87 |
+# For example when application uses autotools and only one |
88 |
+# plugin needs to be done by cmake. |
89 |
+# By default it uses ${S}. |
90 |
|
91 |
-# @ECLASS-VARIABLE: CMAKE_MAKEFILE_GENERATOR |
92 |
+# @ECLASS-VARIABLE: CMAKE_VERBOSE |
93 |
# @DESCRIPTION: |
94 |
-# Specify a makefile generator to be used by cmake. |
95 |
-# At this point only "emake" and "ninja" are supported. |
96 |
-: ${CMAKE_MAKEFILE_GENERATOR:=emake} |
97 |
+# Set to OFF to disable verbose messages during compilation |
98 |
+: ${CMAKE_VERBOSE:=ON} |
99 |
|
100 |
# @ECLASS-VARIABLE: CMAKE_WARN_UNUSED_CLI |
101 |
# @DESCRIPTION: |
102 |
@@ -58,6 +91,22 @@ CMAKE_REMOVE_MODULES="${CMAKE_REMOVE_MODULES:-yes}" |
103 |
# "no" to disable (default) or anything else to enable. |
104 |
: ${CMAKE_WARN_UNUSED_CLI:=no} |
105 |
|
106 |
+# @ECLASS-VARIABLE: PREFIX |
107 |
+# @DESCRIPTION: |
108 |
+# Eclass respects PREFIX variable, though it's not recommended way to set |
109 |
+# install/lib/bin prefixes. |
110 |
+# Use -DCMAKE_INSTALL_PREFIX=... CMake variable instead. |
111 |
+: ${PREFIX:=/usr} |
112 |
+ |
113 |
+# @ECLASS-VARIABLE: WANT_CMAKE |
114 |
+# @DESCRIPTION: |
115 |
+# Specify if cmake-utils eclass should depend on cmake optionally or not. |
116 |
+# This is useful when only part of application is using cmake build system. |
117 |
+# Valid values are: always [default], optional (where the value is the useflag |
118 |
+# used for optionality) |
119 |
+: ${WANT_CMAKE:=always} |
120 |
+ |
121 |
+ |
122 |
CMAKEDEPEND="" |
123 |
case ${WANT_CMAKE} in |
124 |
always) |
125 |
@@ -137,53 +186,6 @@ _use_me_now_inverted() { |
126 |
fi |
127 |
} |
128 |
|
129 |
-# @ECLASS-VARIABLE: BUILD_DIR |
130 |
-# @DESCRIPTION: |
131 |
-# Build directory where all cmake processed files should be generated. |
132 |
-# For in-source build it's fixed to ${CMAKE_USE_DIR}. |
133 |
-# For out-of-source build it can be overridden, by default it uses |
134 |
-# ${WORKDIR}/${P}_build. |
135 |
-# |
136 |
-# This variable has been called CMAKE_BUILD_DIR formerly. |
137 |
-# It is set under that name for compatibility. |
138 |
- |
139 |
-# @ECLASS-VARIABLE: CMAKE_BUILD_TYPE |
140 |
-# @DESCRIPTION: |
141 |
-# Set to override default CMAKE_BUILD_TYPE. Only useful for packages |
142 |
-# known to make use of "if (CMAKE_BUILD_TYPE MATCHES xxx)". |
143 |
-# If about to be set - needs to be set before invoking cmake-utils_src_configure. |
144 |
-# You usualy do *NOT* want nor need to set it as it pulls CMake default build-type |
145 |
-# specific compiler flags overriding make.conf. |
146 |
-: ${CMAKE_BUILD_TYPE:=Gentoo} |
147 |
- |
148 |
-# @ECLASS-VARIABLE: CMAKE_IN_SOURCE_BUILD |
149 |
-# @DESCRIPTION: |
150 |
-# Set to enable in-source build. |
151 |
- |
152 |
-# @ECLASS-VARIABLE: CMAKE_USE_DIR |
153 |
-# @DESCRIPTION: |
154 |
-# Sets the directory where we are working with cmake. |
155 |
-# For example when application uses autotools and only one |
156 |
-# plugin needs to be done by cmake. |
157 |
-# By default it uses ${S}. |
158 |
- |
159 |
-# @ECLASS-VARIABLE: CMAKE_VERBOSE |
160 |
-# @DESCRIPTION: |
161 |
-# Set to OFF to disable verbose messages during compilation |
162 |
-: ${CMAKE_VERBOSE:=ON} |
163 |
- |
164 |
-# @ECLASS-VARIABLE: PREFIX |
165 |
-# @DESCRIPTION: |
166 |
-# Eclass respects PREFIX variable, though it's not recommended way to set |
167 |
-# install/lib/bin prefixes. |
168 |
-# Use -DCMAKE_INSTALL_PREFIX=... CMake variable instead. |
169 |
-: ${PREFIX:=/usr} |
170 |
- |
171 |
-# @ECLASS-VARIABLE: CMAKE_BINARY |
172 |
-# @DESCRIPTION: |
173 |
-# Eclass can use different cmake binary than the one provided in by system. |
174 |
-: ${CMAKE_BINARY:=cmake} |
175 |
- |
176 |
# Determine using IN or OUT source build |
177 |
_check_build_dir() { |
178 |
: ${CMAKE_USE_DIR:=${S}} |