1 |
jmbsvicetto 08/09/28 16:19:06 |
2 |
|
3 |
Modified: cmake-utils.eclass |
4 |
Log: |
5 |
Applied fixes to the cmake-utils eclass to support EAPI-2. Thanks to Tomas Chvatal (scarabeus) for the patch. |
6 |
|
7 |
Revision Changes Path |
8 |
1.9 eclass/cmake-utils.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/cmake-utils.eclass?rev=1.9&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/cmake-utils.eclass?rev=1.9&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/cmake-utils.eclass?r1=1.8&r2=1.9 |
13 |
|
14 |
Index: cmake-utils.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v |
17 |
retrieving revision 1.8 |
18 |
retrieving revision 1.9 |
19 |
diff -u -r1.8 -r1.9 |
20 |
--- cmake-utils.eclass 23 Apr 2008 11:55:51 -0000 1.8 |
21 |
+++ cmake-utils.eclass 28 Sep 2008 16:19:06 -0000 1.9 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2007 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.8 2008/04/23 11:55:51 ingmar Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.9 2008/09/28 16:19:06 jmbsvicetto Exp $ |
27 |
|
28 |
# @ECLASS: cmake-utils.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -21,7 +21,7 @@ |
31 |
|
32 |
DEPEND=">=dev-util/cmake-2.4.6" |
33 |
|
34 |
-EXPORT_FUNCTIONS src_compile src_test src_install |
35 |
+EXPORT_FUNCTIONS src_configure src_compile src_test src_install |
36 |
|
37 |
# Internal function use by cmake-utils_use_with and cmake-utils_use_enable |
38 |
_use_me_now() { |
39 |
@@ -70,11 +70,11 @@ |
40 |
# and -DHAVE_FOO=OFF if it is disabled. |
41 |
cmake-utils_has() { _use_me_now HAVE "$@" ; } |
42 |
|
43 |
-# @FUNCTION: cmake-utils_src_compile |
44 |
+# @FUNCTION: cmake-utils_src_configure |
45 |
# @DESCRIPTION: |
46 |
-# General function for compiling with cmake. Default behaviour is to start an |
47 |
-# out-of-source build. All arguments are passed to cmake-utils_src_make. |
48 |
-cmake-utils_src_compile() { |
49 |
+# General function for configuring with cmake. Default behaviour is to start an |
50 |
+# out-of-source build. |
51 |
+cmake-utils_src_configure() { |
52 |
debug-print-function $FUNCNAME $* |
53 |
|
54 |
if [[ -n "${CMAKE_IN_SOURCE_BUILD}" ]]; then |
55 |
@@ -82,6 +82,21 @@ |
56 |
else |
57 |
cmake-utils_src_configureout |
58 |
fi |
59 |
+} |
60 |
+ |
61 |
+# @FUNCTION: cmake-utils_src_compile |
62 |
+# @DESCRIPTION: |
63 |
+# General function for compiling with cmake. Default behaviour is to check for |
64 |
+# eapi and based on it configure or only compile |
65 |
+cmake-utils_src_compile() { |
66 |
+ case ${EAPI} in |
67 |
+ 2 | 2_pre3 | 2_pre2 | 2_pre1) |
68 |
+ ;; |
69 |
+ *) |
70 |
+ cmake-utils_src_configure |
71 |
+ ;; |
72 |
+ esac |
73 |
+ |
74 |
cmake-utils_src_make "$@" |
75 |
} |