1 |
johu 12/05/02 21:02:53 |
2 |
|
3 |
Added: cmake-2.8.8-tests.patch |
4 |
cmake-2.8.8-more-no_host_paths.patch |
5 |
cmake-2.8.8-FindPkgConfig.patch |
6 |
Log: |
7 |
Version bump by me and Chris Reffett <geekboy72@×××××.com> wrt bug #412925. Adds patch for FindPkgConfig to respect PKG_CONFIG environment variable by DaboD <daiderek@×××××.com> bug #414037. |
8 |
|
9 |
(Portage version: 2.2.0_alpha101/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 dev-util/cmake/files/cmake-2.8.8-tests.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.8-tests.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.8-tests.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: cmake-2.8.8-tests.patch |
18 |
=================================================================== |
19 |
Remove DeployQt4 test, which tries to break sandbox and ignores prefix, and CTest.updatecvs, which fails to commit as root |
20 |
--- cmake-2.8.8/Tests/CMakeLists.txt |
21 |
+++ cmake-2.8.8/Tests/CMakeLists.txt |
22 |
@@ -273,23 +273,6 @@ |
23 |
) |
24 |
LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/BundleUtilities") |
25 |
|
26 |
- # run test for DeployQt4 on supported platforms/compilers (which depends on BundleUtilities) |
27 |
- # this test also depends on the existence of the standard qtiff plugin |
28 |
- if(QT4_WORKS AND QT_QTSQL_FOUND) |
29 |
- ADD_TEST(Qt4Deploy ${CMAKE_CTEST_COMMAND} |
30 |
- --build-and-test |
31 |
- "${CMake_SOURCE_DIR}/Tests/Qt4Deploy" |
32 |
- "${CMake_BINARY_DIR}/Tests/Qt4Deploy" |
33 |
- --build-generator ${CMAKE_TEST_GENERATOR} |
34 |
- --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM} |
35 |
- --build-project Qt4Deploy |
36 |
- --build-options |
37 |
- -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE} |
38 |
- -DQT_QMAKE_EXECUTABLE:FILEPATH=${QT_QMAKE_EXECUTABLE} |
39 |
- ) |
40 |
- LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/Qt4Deploy") |
41 |
- endif() |
42 |
- |
43 |
endif() |
44 |
endif() |
45 |
|
46 |
@@ -1548,30 +1531,6 @@ |
47 |
LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/${CTestUpdateSVN_DIR}") |
48 |
ENDIF(Subversion_FOUND) |
49 |
|
50 |
- # Test CTest Update with CVS |
51 |
- IF(EXISTS ${CMAKE_ROOT}/Modules/FindCVS.cmake) |
52 |
- FIND_PACKAGE(CVS QUIET) |
53 |
- ELSE(EXISTS ${CMAKE_ROOT}/Modules/FindCVS.cmake) |
54 |
- FIND_PROGRAM(CVS_EXECUTABLE NAMES cvs) |
55 |
- SET(CVS_FOUND ${CVS_EXECUTABLE}) |
56 |
- ENDIF(EXISTS ${CMAKE_ROOT}/Modules/FindCVS.cmake) |
57 |
- SET(CTEST_TEST_UPDATE_CVS ${CVS_FOUND}) |
58 |
- IF(CTEST_TEST_UPDATE_CVS AND NOT UNIX) |
59 |
- IF("${CVS_EXECUTABLE}" MATCHES "cygwin") |
60 |
- MESSAGE(STATUS "No CTest.UpdateCVS test with cygwin cvs.exe outside cygwin!") |
61 |
- SET(CTEST_TEST_UPDATE_CVS 0) |
62 |
- ENDIF("${CVS_EXECUTABLE}" MATCHES "cygwin") |
63 |
- ENDIF(CTEST_TEST_UPDATE_CVS AND NOT UNIX) |
64 |
- IF(CTEST_TEST_UPDATE_CVS) |
65 |
- SET(CTestUpdateCVS_DIR "CTest UpdateCVS") |
66 |
- CONFIGURE_FILE("${CMake_SOURCE_DIR}/Tests/CTestUpdateCVS.cmake.in" |
67 |
- "${CMake_BINARY_DIR}/Tests/CTestUpdateCVS.cmake" @ONLY) |
68 |
- ADD_TEST(CTest.UpdateCVS ${CMAKE_CMAKE_COMMAND} |
69 |
- -P "${CMake_BINARY_DIR}/Tests/CTestUpdateCVS.cmake" |
70 |
- ) |
71 |
- LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/${CTestUpdateCVS_DIR}") |
72 |
- ENDIF(CTEST_TEST_UPDATE_CVS) |
73 |
- |
74 |
# Test CTest Update with BZR |
75 |
FIND_PROGRAM(BZR_EXECUTABLE NAMES bzr) |
76 |
MARK_AS_ADVANCED(BZR_EXECUTABLE) |
77 |
|
78 |
|
79 |
|
80 |
1.1 dev-util/cmake/files/cmake-2.8.8-more-no_host_paths.patch |
81 |
|
82 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.8-more-no_host_paths.patch?rev=1.1&view=markup |
83 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.8-more-no_host_paths.patch?rev=1.1&content-type=text/plain |
84 |
|
85 |
Index: cmake-2.8.8-more-no_host_paths.patch |
86 |
=================================================================== |
87 |
Set some proper paths to make cmake find our tools. |
88 |
Original patch by Heiko Przybyl, updated for cmake-2.8.8 by Chris Reffett |
89 |
|
90 |
The ebuild now adds an extra / at the end of $EPREFIX so that it is |
91 |
never the empty string (so that CMAKE_SYSTEM_PREFIX_PATH remains |
92 |
correct) |
93 |
|
94 |
--- cmake-2.8.8/Modules/Platform/Darwin.cmake |
95 |
+++ cmake-2.8.8/Modules/Platform/Darwin.cmake |
96 |
@@ -229,20 +229,24 @@ |
97 |
|
98 |
|
99 |
|
100 |
-# default to searching for frameworks first |
101 |
-SET(CMAKE_FIND_FRAMEWORK FIRST) |
102 |
+# default to searching for frameworks last |
103 |
+SET(CMAKE_FIND_FRAMEWORK LAST) |
104 |
# set up the default search directories for frameworks |
105 |
SET(CMAKE_SYSTEM_FRAMEWORK_PATH |
106 |
+ @GENTOO_PORTAGE_EPREFIX@Frameworks |
107 |
+ @GENTOO_PORTAGE_EPREFIX@usr/lib |
108 |
~/Library/Frameworks |
109 |
/Library/Frameworks |
110 |
/Network/Library/Frameworks |
111 |
/System/Library/Frameworks) |
112 |
|
113 |
-# default to searching for application bundles first |
114 |
-SET(CMAKE_FIND_APPBUNDLE FIRST) |
115 |
+# default to searching for application bundles last |
116 |
+SET(CMAKE_FIND_APPBUNDLE LAST) |
117 |
# set up the default search directories for application bundles |
118 |
SET(_apps_paths) |
119 |
FOREACH(_path |
120 |
+ @GENTOO_PORTAGE_EPREFIX@Applications |
121 |
+ @GENTOO_PORTAGE_EPREFIX@usr/bin |
122 |
"~/Applications" |
123 |
"/Applications" |
124 |
"${OSX_DEVELOPER_ROOT}/../Applications" # Xcode 4.3+ |
125 |
diff -ruN cmake-2.8.8.orig/Modules/Platform/UnixPaths.cmake cmake-2.8.8/Modules/Platform/UnixPaths.cmake |
126 |
--- cmake-2.8.8/Modules/Platform/UnixPaths.cmake |
127 |
+++ cmake-2.8.8/Modules/Platform/UnixPaths.cmake |
128 |
@@ -33,6 +33,7 @@ |
129 |
# search types. |
130 |
LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH |
131 |
# Standard |
132 |
+ @GENTOO_PORTAGE_EPREFIX@usr/local @GENTOO_PORTAGE_EPREFIX@usr @GENTOO_PORTAGE_EPREFIX@ |
133 |
/usr/local /usr / |
134 |
|
135 |
# CMake install location |
136 |
@@ -44,43 +45,39 @@ |
137 |
|
138 |
# List common include file locations not under the common prefixes. |
139 |
LIST(APPEND CMAKE_SYSTEM_INCLUDE_PATH |
140 |
- # Windows API on Cygwin |
141 |
- /usr/include/w32api |
142 |
- |
143 |
- # X11 |
144 |
- /usr/X11R6/include /usr/include/X11 |
145 |
- |
146 |
- # Other |
147 |
- /usr/pkg/include |
148 |
- /opt/csw/include /opt/include |
149 |
- /usr/openwin/include |
150 |
+ @GENTOO_PORTAGE_EPREFIX@usr/include |
151 |
) |
152 |
|
153 |
LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH |
154 |
- # Windows API on Cygwin |
155 |
- /usr/lib/w32api |
156 |
- |
157 |
- # X11 |
158 |
- /usr/X11R6/lib /usr/lib/X11 |
159 |
- |
160 |
- # Other |
161 |
- /usr/pkg/lib |
162 |
- /opt/csw/lib /opt/lib |
163 |
- /usr/openwin/lib |
164 |
+ @GENTOO_PORTAGE_GCCLIBDIR@/gcc |
165 |
+ @GENTOO_PORTAGE_GCCLIBDIR@ |
166 |
+ @GENTOO_PORTAGE_EPREFIX@usr/lib64 |
167 |
+ @GENTOO_PORTAGE_EPREFIX@usr/lib32 |
168 |
+ @GENTOO_PORTAGE_EPREFIX@usr/lib |
169 |
+ @GENTOO_PORTAGE_EPREFIX@lib |
170 |
) |
171 |
|
172 |
LIST(APPEND CMAKE_SYSTEM_PROGRAM_PATH |
173 |
- /usr/pkg/bin |
174 |
+ @GENTOO_PORTAGE_EPREFIX@usr/bin |
175 |
+ @GENTOO_PORTAGE_EPREFIX@bin |
176 |
) |
177 |
|
178 |
LIST(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES |
179 |
+ @GENTOO_PORTAGE_GCCLIBDIR@/gcc |
180 |
+ @GENTOO_PORTAGE_GCCLIBDIR@ |
181 |
+ @GENTOO_PORTAGE_EPREFIX@usr/lib64 |
182 |
+ @GENTOO_PORTAGE_EPREFIX@usr/lib32 |
183 |
+ @GENTOO_PORTAGE_EPREFIX@usr/lib |
184 |
+ @GENTOO_PORTAGE_EPREFIX@lib |
185 |
/lib /usr/lib /usr/lib32 /usr/lib64 |
186 |
) |
187 |
|
188 |
LIST(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES |
189 |
+ @GENTOO_PORTAGE_EPREFIX@usr/include |
190 |
/usr/include |
191 |
) |
192 |
LIST(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES |
193 |
+ @GENTOO_PORTAGE_EPREFIX@usr/include |
194 |
/usr/include |
195 |
) |
196 |
|
197 |
|
198 |
|
199 |
|
200 |
1.1 dev-util/cmake/files/cmake-2.8.8-FindPkgConfig.patch |
201 |
|
202 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.8-FindPkgConfig.patch?rev=1.1&view=markup |
203 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.8-FindPkgConfig.patch?rev=1.1&content-type=text/plain |
204 |
|
205 |
Index: cmake-2.8.8-FindPkgConfig.patch |
206 |
=================================================================== |
207 |
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake |
208 |
index c47f583..5783d37 100644 |
209 |
--- a/Modules/FindPkgConfig.cmake |
210 |
+++ b/Modules/FindPkgConfig.cmake |
211 |
@@ -87,7 +87,12 @@ |
212 |
set(PKG_CONFIG_VERSION 1) |
213 |
set(PKG_CONFIG_FOUND 0) |
214 |
|
215 |
-find_program(PKG_CONFIG_EXECUTABLE NAMES pkg-config DOC "pkg-config executable") |
216 |
+if(NOT PKG_CONFIG_EXECUTABLE) |
217 |
+ set(PKG_CONFIG_EXECUTABLE $ENV{PKG_CONFIG}) |
218 |
+ if(NOT PKG_CONFIG_EXECUTABLE) |
219 |
+ find_program(PKG_CONFIG_EXECUTABLE NAMES pkg-config DOC "pkg-config executable") |
220 |
+ endif(NOT PKG_CONFIG_EXECUTABLE) |
221 |
+endif(NOT PKG_CONFIG_EXECUTABLE) |
222 |
mark_as_advanced(PKG_CONFIG_EXECUTABLE) |
223 |
|
224 |
if(PKG_CONFIG_EXECUTABLE) |