1 |
commit: b749efef7eb5228dd83c13c34c93ee12526a485b |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 20 19:18:22 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 20 19:26:29 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b749efef |
7 |
|
8 |
dev-db/mysql-connector-c++: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
dev-db/mysql-connector-c++/Manifest | 4 - |
14 |
...ysql-connector-c++-1.1.11-fix-cpp-linking.patch | 15 - |
15 |
.../mysql-connector-c++-1.1.8-fix-mariadb.patch | 45 --- |
16 |
.../mysql-connector-c++-8.0.15-fix-build.patch | 307 --------------------- |
17 |
.../mysql-connector-c++-8.0.18-fix-build.patch | 275 ------------------ |
18 |
.../mysql-connector-c++-1.1.11-r1.ebuild | 63 ----- |
19 |
.../mysql-connector-c++-1.1.9-r1.ebuild | 62 ----- |
20 |
.../mysql-connector-c++-8.0.15.ebuild | 41 --- |
21 |
.../mysql-connector-c++-8.0.18.ebuild | 43 --- |
22 |
9 files changed, 855 deletions(-) |
23 |
|
24 |
diff --git a/dev-db/mysql-connector-c++/Manifest b/dev-db/mysql-connector-c++/Manifest |
25 |
index 99ad91c7d61..33a459b80f0 100644 |
26 |
--- a/dev-db/mysql-connector-c++/Manifest |
27 |
+++ b/dev-db/mysql-connector-c++/Manifest |
28 |
@@ -1,6 +1,2 @@ |
29 |
-DIST mysql-connector-c++-1.1.11.tar.gz 504872 BLAKE2B 16a265ce291d18d3e76f6654b42271d8c6cc9329f047d9eb0c6cdfaea37e1c13f04932e595e4333882b26154f0940949bc9bdab9d8af8e25d2bfff43be0030fa SHA512 d6839ecda12d1f088f24b20c08f3e9a757e9907d3375dba39e0f247b6a11de59817739644201e74d782d4c900aa18bf60910fe60a9ee98a2c0138104fb55dc22 |
30 |
DIST mysql-connector-c++-1.1.12.tar.gz 518615 BLAKE2B 386a4753ca3f03999a49a89507da1b1172b3db89797c38403fee4eea86e7108a5e4f91f24a17de86d585c2a3d9e5742a117fa84d9b14aad649f938a597f3dae9 SHA512 d7e132dbc2efda4a77f8ae00c24006a1ade1d0a50f22d89ece453505e6d206427ee7988df29c0d6ef8b396ad6b8d326b6d263a1d4fa08ef5db0966fb4f1479f4 |
31 |
-DIST mysql-connector-c++-1.1.9.tar.gz 508255 BLAKE2B e2cd300946a873a94beab13d9d1cb64ecb5bd9a9a56ef2217b1f7aff1643adc9afc0aa22c2ff1e0f6b8318cd34d12a7fe95f0584c96c212307fa9bd0cb54a2a1 SHA512 ec4d6cb7f21d52e786de3bff951e65ea5ad7391ba097b599d0094d3e8356cf17f700dee618e38e79d7a9e562684a6c51cca95fb8e2e225942766d33f8d0a5646 |
32 |
-DIST mysql-connector-c++-8.0.15-src.tar.gz 2210243 BLAKE2B 45e0ffa2134c9df5a7e311963c7f2c58b5d7cfc0eefd80a5dc323bbe34ba60d40c79154f932e19c5f8e18ae45d0b61d304b7b7daba4955f92f830cf20c718931 SHA512 9a217b8f61babe5dac405be19b12d34b22673e779433d880a3aa31ea2e128f93434599a3fe0c1150b3f7b8c4d03f595d545d8cc33342a60561a2f60bff71ef14 |
33 |
-DIST mysql-connector-c++-8.0.18-src.tar.gz 3115736 BLAKE2B f28229593d20f4a401a3e9d0e636ee896a90fb7573f06d9b60340540d6c4d577b4f44daa287c7896a03a60d75dec343413cba981e63a22607ce60eb20f4de122 SHA512 f5b202677392bcf5c5bdd4c3433332e57aa20c1a140de81b57ce3ce69709661d572e2466ae022926fc220b20159c90f09f15b5e44f384529103a24fd592de60d |
34 |
DIST mysql-connector-c++-8.0.19-src.tar.gz 3137484 BLAKE2B 82a2900b0daa00bcfd72d562818ada25fe15901991a896a46ecdd9304e03066c4e7a3804287540559df1c74dbd1b3983b450ab783ee8cb7f0d7ec152f3cdc6b0 SHA512 5987ae31cda3a5db18ceded201ccbe66263b8ab7665ceacf70af6bb6b99130377b40514b96644b0768fd809b36ee02580520923c11c1edecccc75da15d7bb0bd |
35 |
|
36 |
diff --git a/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.11-fix-cpp-linking.patch b/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.11-fix-cpp-linking.patch |
37 |
deleted file mode 100644 |
38 |
index 4b8a4a98309..00000000000 |
39 |
--- a/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.11-fix-cpp-linking.patch |
40 |
+++ /dev/null |
41 |
@@ -1,15 +0,0 @@ |
42 |
-https://bugs.mysql.com/bug.php?id=90727 |
43 |
- |
44 |
---- a/FindMySQL.cmake |
45 |
-+++ b/FindMySQL.cmake |
46 |
-@@ -700,8 +700,10 @@ endif() |
47 |
- |
48 |
- # For dynamic linking use the built-in sys and strings |
49 |
- if(NOT MYSQLCLIENT_STATIC_LINKING) |
50 |
-+IF(CMAKE_SYSTEM_NAME MATCHES "SunOS") |
51 |
- list(APPEND SYS_LIBRARIES "mysql_sys") |
52 |
- list(APPEND SYS_LIBRARIES "mysql_strings") |
53 |
-+endif() |
54 |
- list(APPEND SYS_LIBRARIES ${MYSQL_LIBRARIES}) |
55 |
- SET(MYSQL_LIBRARIES ${SYS_LIBRARIES}) |
56 |
- |
57 |
|
58 |
diff --git a/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.8-fix-mariadb.patch b/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.8-fix-mariadb.patch |
59 |
deleted file mode 100644 |
60 |
index 35ed218e18d..00000000000 |
61 |
--- a/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.8-fix-mariadb.patch |
62 |
+++ /dev/null |
63 |
@@ -1,45 +0,0 @@ |
64 |
-diff -aurN a/driver/mysql_connection.cpp b/driver/mysql_connection.cpp |
65 |
---- a/driver/mysql_connection.cpp 2016-12-14 04:58:54.000000000 -0500 |
66 |
-+++ b/driver/mysql_connection.cpp 2017-01-26 16:33:58.086005627 -0500 |
67 |
-@@ -1023,6 +1023,7 @@ |
68 |
- proxy->get_character_set_info(&cs); |
69 |
- *(static_cast<int *>(optionValue)) = cs.mbmaxlen; |
70 |
- /* mysql_get_option() was added in mysql 5.7.3 version */ |
71 |
-+#if !defined( MARIADB_BASE_VERSION ) && !defined ( MARIADB_VERSION_ID ) |
72 |
- } else if ( proxy->get_server_version() >= 50703 ) { |
73 |
- try { |
74 |
- if (GET_CONN_OPTION(optionName, optionValue, intOptions)) { |
75 |
-@@ -1036,6 +1037,7 @@ |
76 |
- CPP_ERR_FMT("Unsupported option : %d:(%s) %s", proxy->errNo(), proxy->sqlstate().c_str(), proxy->error().c_str()); |
77 |
- throw e; |
78 |
- } |
79 |
-+#endif |
80 |
- } |
81 |
- } |
82 |
- /* }}} */ |
83 |
-@@ -1053,11 +1055,13 @@ |
84 |
- MY_CHARSET_INFO cs; |
85 |
- proxy->get_character_set_info(&cs); |
86 |
- return cs.dir ? sql::SQLString(cs.dir) : ""; |
87 |
-+#if !defined( MARIADB_BASE_VERSION ) && !defined ( MARIADB_VERSION_ID ) |
88 |
- } else if ( proxy->get_server_version() >= 50703 ) { |
89 |
- const char* optionValue= NULL; |
90 |
- if (GET_CONN_OPTION(optionName, &optionValue, stringOptions)) { |
91 |
- return optionValue ? sql::SQLString(optionValue) : ""; |
92 |
- } |
93 |
-+#endif |
94 |
- } |
95 |
- return ""; |
96 |
- } |
97 |
-diff -aurN a/driver/nativeapi/libmysql_static_proxy.cpp b/driver/nativeapi/libmysql_static_proxy.cpp |
98 |
---- a/driver/nativeapi/libmysql_static_proxy.cpp 2017-01-26 16:35:46.256038741 -0500 |
99 |
-+++ b/driver/nativeapi/libmysql_static_proxy.cpp 2017-01-26 16:28:34.114915809 -0500 |
100 |
-@@ -319,7 +319,7 @@ |
101 |
- int |
102 |
- LibmysqlStaticProxy::get_option(MYSQL * mysql, enum mysql_option option, const void *arg) |
103 |
- { |
104 |
--#if MYSQL_VERSION_ID >= 50703 |
105 |
-+#if MYSQL_VERSION_ID >= 50703 && !defined( MARIADB_BASE_VERSION ) && !defined ( MARIADB_VERSION_ID ) |
106 |
- if (::mysql_get_option(mysql, option, arg)) { |
107 |
- throw sql::InvalidArgumentException("Unsupported option provided to mysql_get_option()"); |
108 |
- } else { |
109 |
|
110 |
diff --git a/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.15-fix-build.patch b/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.15-fix-build.patch |
111 |
deleted file mode 100644 |
112 |
index 4e399691410..00000000000 |
113 |
--- a/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.15-fix-build.patch |
114 |
+++ /dev/null |
115 |
@@ -1,307 +0,0 @@ |
116 |
---- a/CMakeLists.txt |
117 |
-+++ b/CMakeLists.txt |
118 |
-@@ -666,7 +666,7 @@ set_target_properties(connector PROPERTIES |
119 |
- |
120 |
- |
121 |
- install(TARGETS connector |
122 |
-- CONFIGURATIONS Release RelWithDebInfo |
123 |
-+ CONFIGURATIONS Release RelWithDebInfo Gentoo |
124 |
- ARCHIVE DESTINATION "${INSTALL_LIB_DIR_STATIC}" COMPONENT XDevAPIDev |
125 |
- RUNTIME DESTINATION "${INSTALL_LIB_DIR}" COMPONENT XDevAPIDll |
126 |
- LIBRARY DESTINATION "${INSTALL_LIB_DIR}" COMPONENT XDevAPIDll |
127 |
-@@ -737,6 +737,12 @@ TARGET_LINK_LIBRARIES(try connector) |
128 |
- SET_INTERFACE_OPTIONS(try devapi) |
129 |
- # ADD_GCOV(try) |
130 |
- |
131 |
-+IF(WITH_SSL STREQUAL "system") |
132 |
-+ find_package(OpenSSL REQUIRED) |
133 |
-+ TARGET_LINK_LIBRARIES(try ${OPENSSL_LIBRARIES}) |
134 |
-+ENDIF() |
135 |
-+ |
136 |
-+ |
137 |
- if(WITH_JDBC) |
138 |
- |
139 |
- add_executable(try_jdbc EXCLUDE_FROM_ALL try_jdbc.cc) |
140 |
---- a/cdk/cmake/install_macros.cmake |
141 |
-+++ b/cdk/cmake/install_macros.cmake |
142 |
-@@ -327,7 +327,7 @@ FUNCTION(INSTALL_DEBUG_TARGET target) |
143 |
- DESTINATION ${ARG_DESTINATION} |
144 |
- ${RENAME_PARAM} |
145 |
- ${PERMISSIONS_${target_type}} |
146 |
-- CONFIGURATIONS Release RelWithDebInfo |
147 |
-+ CONFIGURATIONS Release RelWithDebInfo Gentoo |
148 |
- COMPONENT ${ARG_COMPONENT} |
149 |
- OPTIONAL) |
150 |
- |
151 |
-@@ -346,7 +346,7 @@ FUNCTION(INSTALL_DEBUG_TARGET target) |
152 |
- INSTALL(FILES ${debug_pdb_target_location} |
153 |
- DESTINATION ${ARG_PDB_DESTINATION} |
154 |
- ${PDB_RENAME_PARAM} |
155 |
-- CONFIGURATIONS Release RelWithDebInfo |
156 |
-+ CONFIGURATIONS Release RelWithDebInfo Gentoo |
157 |
- COMPONENT ${ARG_COMPONENT} |
158 |
- OPTIONAL) |
159 |
- ENDIF() |
160 |
---- a/cdk/cmake/libutils.cmake |
161 |
-+++ b/cdk/cmake/libutils.cmake |
162 |
-@@ -282,14 +282,7 @@ function(add_library_ex TARGET) |
163 |
- endforeach() |
164 |
- |
165 |
- if(libs) |
166 |
-- |
167 |
-- if(${type} STREQUAL "STATIC") |
168 |
-- merge_static_libraries(${TARGET} ${libs}) |
169 |
-- add_dependencies(${TARGET} ${libs}) |
170 |
-- else() |
171 |
- target_link_libraries(${TARGET} PRIVATE ${libs}) |
172 |
-- endif() |
173 |
-- |
174 |
- endif() |
175 |
- |
176 |
- # |
177 |
---- a/cdk/cmake/protobuf.cmake |
178 |
-+++ b/cdk/cmake/protobuf.cmake |
179 |
-@@ -26,201 +26,8 @@ |
180 |
- # along with this program; if not, write to the Free Software Foundation, Inc., |
181 |
- # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
182 |
- |
183 |
--# |
184 |
--# Usage: |
185 |
--# |
186 |
--# INCLUDE(protobuf) |
187 |
--# [USE_FULL_PROTOBUF()] |
188 |
--# |
189 |
--# MYSQLX_PROTOBUF_GENERATE_CPP(SRCS HDRS <protobuf definitions>) |
190 |
--# ADD_LIBRARY(target ... ${SRCS}) |
191 |
--# |
192 |
-- |
193 |
--if(DEFINED WITH_PROTOBUF) |
194 |
-- |
195 |
-- # |
196 |
-- # If WITH_PROTOBUF is defined, it should point at external location where |
197 |
-- # protobuf libraries were built using our CMakeLists.txt (so that |
198 |
-- # exports.cmake was produced). |
199 |
-- # |
200 |
-- |
201 |
-- if (NOT EXISTS "${WITH_PROTOBUF}/exports.cmake") |
202 |
-- message(FATAL_ERROR |
203 |
-- "Valid protobuf build not found at the given location" |
204 |
-- " (could not find exports.cmake): ${WITH_PROTOBUF}" |
205 |
-- ) |
206 |
-- endif() |
207 |
-- |
208 |
-- message("Using protobuf build at: ${WITH_PROTOBUF}") |
209 |
-- |
210 |
--else(DEFINED WITH_PROTOBUF) |
211 |
-- |
212 |
-- # |
213 |
-- # If external WITH_PROTOBUF location is not given, then we arrange for |
214 |
-- # building of protbuf from bundled sources in ${PROJECT_BINARY_DIR}/protobuf. |
215 |
-- # |
216 |
-- |
217 |
-- message("Configuring Protobuf build using cmake generator: ${CMAKE_GENERATOR}") |
218 |
-- file(REMOVE "${PROJECT_BINARY_DIR}/protobuf/CMakeCache.txt") |
219 |
-- file(MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/protobuf") |
220 |
-- |
221 |
-- # |
222 |
-- # Pick build configuration for the protobuf build. Normally we build using the |
223 |
-- # same build configuration that is used for building CDK (Release/Debug/etc.). |
224 |
-- # But we also support building CDK under non-standard build configuration |
225 |
-- # named 'Static' (this is a dirty trick we use to simplify building our MSIs). |
226 |
-- # Since protobuf does not know 'Static' build configuration, we build protobuf |
227 |
-- # under 'Release' configuration in that case. |
228 |
-- # |
229 |
-- # We need to handle two cases. For some build systems, like Makefiles, |
230 |
-- # the build configuration is specified at cmake time using CMAKE_BUILD_TYPE |
231 |
-- # variable. In that case we also set it during protobuf build configuration. |
232 |
-- # Another case is a multi-configuration build system like MSVC. In this case |
233 |
-- # we use generator expression to pick correct configuration when the build |
234 |
-- # command is invoked below. |
235 |
-- # |
236 |
-- |
237 |
-- if(CMAKE_BUILD_TYPE) |
238 |
-- if(CMAKE_BUILD_TYPE MATCHES "[Ss][Tt][Aa][Tt][Ii][Cc]") |
239 |
-- set(set_build_type -DCMAKE_BUILD_TYPE=Release) |
240 |
-- else() |
241 |
-- set(set_build_type -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}) |
242 |
-- endif() |
243 |
-- endif() |
244 |
-- |
245 |
-- set(CONFIG_EXPR |
246 |
-- $<$<CONFIG:Static>:Release>$<$<NOT:$<CONFIG:Static>>:$<CONFIG>> |
247 |
-- ) |
248 |
-- |
249 |
-- execute_process( |
250 |
-- COMMAND ${CMAKE_COMMAND} |
251 |
-- -G "${CMAKE_GENERATOR}" |
252 |
-- ${set_build_type} |
253 |
-- -DSTATIC_MSVCRT=${STATIC_MSVCRT} |
254 |
-- -DCMAKE_POSITION_INDEPENDENT_CODE=${CMAKE_POSITION_INDEPENDENT_CODE} |
255 |
-- -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} |
256 |
-- -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} |
257 |
-- -DCMAKE_CXX_FLAGS_DEBUG=${CMAKE_CXX_FLAGS_DEBUG} |
258 |
-- -DCMAKE_CXX_FLAGS_RELEASE=${CMAKE_CXX_FLAGS_RELEASE} |
259 |
-- -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=${CMAKE_CXX_FLAGS_RELWITHDEBINFO} |
260 |
-- -DCMAKE_CXX_FLAGS_MINSIZEREL=${CMAKE_CXX_FLAGS_MINSIZEREL} |
261 |
-- -DCMAKE_STATIC_LINKER_FLAGS=${CMAKE_STATIC_LINKER_FLAGS} |
262 |
-- ${PROJECT_SOURCE_DIR}/protobuf |
263 |
-- WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/protobuf |
264 |
-- RESULT_VARIABLE protobuf_config |
265 |
-- ) |
266 |
-- |
267 |
-- if(protobuf_config) |
268 |
-- message(FATAL_ERROR "Could not configure Protobuf build: ${protobuf_config}") |
269 |
-- endif() |
270 |
-- |
271 |
-- set(WITH_PROTOBUF "${PROJECT_BINARY_DIR}/protobuf") |
272 |
-- |
273 |
--endif(DEFINED WITH_PROTOBUF) |
274 |
-- |
275 |
--# Import targets exported by protobuf |
276 |
-- |
277 |
--include(${WITH_PROTOBUF}/exports.cmake) |
278 |
-- |
279 |
--# |
280 |
--# Protobuf library targets imported above (pb_protobuf |
281 |
--# and pb_protobuf-lite) are local to the directory from which |
282 |
--# they were imported. This is not good if cdk is used as |
283 |
--# a sub-project of a parent project, because the parent project |
284 |
--# must have access to these targets. |
285 |
--# |
286 |
--# For that reason below we create global protobuf/protobuf-lite targets |
287 |
--# and copy their locations from the imported targets. |
288 |
--# |
289 |
--# Note: we can't use ALIAS library because it does not work with imported |
290 |
--# targets |
291 |
--# |
292 |
-- |
293 |
--add_library(protobuf STATIC IMPORTED GLOBAL) |
294 |
--add_library(protobuf-lite STATIC IMPORTED GLOBAL) |
295 |
-- |
296 |
--foreach(lib protobuf protobuf-lite) |
297 |
-- #message("processing: ${lib}") |
298 |
-- |
299 |
-- foreach(CONF NOCONFIG DEBUG RELEASE MINSIZEREL RELWITHDEBINFO) |
300 |
-- #message("- CONF: ${CONF}") |
301 |
-- |
302 |
-- get_target_property(LOC pb_${lib} IMPORTED_LOCATION_${CONF}) |
303 |
-- if(LOC) |
304 |
-- #message("- setting imported location to: ${LOC}") |
305 |
-- set_target_properties(${lib} PROPERTIES |
306 |
-- IMPORTED_LOCATION_${CONF} "${LOC}" |
307 |
-- ) |
308 |
-- set_property(TARGET ${lib} APPEND PROPERTY |
309 |
-- IMPORTED_CONFIGURATIONS ${CONF} |
310 |
-- ) |
311 |
-- endif() |
312 |
-- |
313 |
-- endforeach(CONF) |
314 |
-- |
315 |
--endforeach(lib) |
316 |
-- |
317 |
--# |
318 |
--# To support 'Static' build configuration the targets imported from the |
319 |
--# Protobuf project need to have IMPORTED_LOCATION_STATIC defined. We use |
320 |
--# 'Release' locations as Protobuf is built using 'Release' configuration in |
321 |
--# that case. |
322 |
--# |
323 |
-- |
324 |
--foreach(tgt protobuf protobuf-lite pb_protoc) |
325 |
-- |
326 |
-- get_target_property(LOC ${tgt} IMPORTED_LOCATION_RELEASE) |
327 |
-- set_property(TARGET ${tgt} PROPERTY IMPORTED_LOCATION_STATIC ${LOC}) |
328 |
-- |
329 |
--endforeach(tgt) |
330 |
-- |
331 |
-- |
332 |
--# protobuf depends on protobuf-lite |
333 |
-- |
334 |
--set_target_properties(protobuf PROPERTIES |
335 |
-- INTERFACE_LINK_LIBRARIES "protobuf-lite" |
336 |
--) |
337 |
-- |
338 |
-- |
339 |
--message("Protobuf include path: ${PROTOBUF_INCLUDE_DIR}") |
340 |
-- |
341 |
--set(PROTOBUF_INCLUDE_DIRS ${PROTOBUF_INCLUDE_DIR} |
342 |
-- CACHE INTERNAL "Protobuf include path" FORCE) |
343 |
--set(PROTOBUF_PROTOC_EXECUTABLE pb_protoc |
344 |
-- CACHE INTERNAL "Protobuf compiler" FORCE) |
345 |
-- |
346 |
--# |
347 |
--# Custom target build_protobuf ensures that Protobuf project is built. |
348 |
--# |
349 |
--# Note: this depends on Protobuf project generating the stamp file |
350 |
--# |
351 |
-- |
352 |
--if(NOT DEFINED PROTOBUF_BUILD_STAMP) |
353 |
-- message(FATAL_ERROR "Protobuf build stamp file not defined") |
354 |
--endif() |
355 |
-- |
356 |
-- |
357 |
--if(CMAKE_VERSION VERSION_LESS 3.0) |
358 |
-- add_custom_command(OUTPUT ${PROTOBUF_BUILD_STAMP} |
359 |
-- COMMAND ${CMAKE_COMMAND} --build . --config $<CONFIGURATION> |
360 |
-- WORKING_DIRECTORY ${WITH_PROTOBUF} |
361 |
-- COMMENT "Building protobuf using configuration: $(Configuration)" |
362 |
-- ) |
363 |
--else() |
364 |
-- add_custom_command(OUTPUT ${PROTOBUF_BUILD_STAMP} |
365 |
-- COMMAND ${CMAKE_COMMAND} --build . --config ${CONFIG_EXPR} |
366 |
-- WORKING_DIRECTORY ${WITH_PROTOBUF} |
367 |
-- COMMENT "Building protobuf using configuration: $(Configuration)" |
368 |
-- ) |
369 |
--endif() |
370 |
-- |
371 |
--add_custom_target(build_protobuf |
372 |
-- DEPENDS ${PROTOBUF_BUILD_STAMP} |
373 |
--) |
374 |
-- |
375 |
--add_dependencies(protobuf build_protobuf) |
376 |
--add_dependencies(protobuf-lite build_protobuf) |
377 |
--add_dependencies(pb_protoc build_protobuf) |
378 |
-+#SET(Protobuf_USE_STATIC_LIBS ON) |
379 |
-+find_package(Protobuf REQUIRED) |
380 |
- |
381 |
- # |
382 |
- # Choice between full and lite version of the library. |
383 |
---- a/cdk/protocol/mysqlx/crud.cc |
384 |
-+++ b/cdk/protocol/mysqlx/crud.cc |
385 |
-@@ -295,7 +295,7 @@ public: |
386 |
- class Placeholder_conv_imp |
387 |
- : public Args_conv |
388 |
- { |
389 |
-- map<string, unsigned> m_map; |
390 |
-+ std::map<string, unsigned> m_map; |
391 |
- |
392 |
- public: |
393 |
- |
394 |
-@@ -303,7 +303,7 @@ public: |
395 |
- |
396 |
- unsigned conv_placeholder(const string &name) |
397 |
- { |
398 |
-- map<string, unsigned>::const_iterator it = m_map.find(name); |
399 |
-+ std::map<string, unsigned>::const_iterator it = m_map.find(name); |
400 |
- if (it == m_map.end()) |
401 |
- throw_error("Placeholder converter: Placeholder was not defined on args"); |
402 |
- //throw Generic_error((boost::format("Placeholder %s was not defined on args.") |
403 |
-@@ -314,7 +314,7 @@ public: |
404 |
- |
405 |
- void add_placeholder(const string &name) |
406 |
- { |
407 |
-- map<string, unsigned>::const_iterator it = m_map.find(name); |
408 |
-+ std::map<string, unsigned>::const_iterator it = m_map.find(name); |
409 |
- if (it != m_map.end()) |
410 |
- throw_error("Placeholder converter: Redefined placeholder"); |
411 |
- //throw Generic_error((boost::format("Redifined placeholder %s.") |
412 |
---- a/jdbc.cmake |
413 |
-+++ b/jdbc.cmake |
414 |
-@@ -66,7 +66,7 @@ if(MYSQL_CONFIG_EXECUTABLE) |
415 |
- list(APPEND jdbc_cmake_opts -DMYSQL_CONFIG_EXECUTABLE=${MYSQL_CONFIG_EXECUTABLE}) |
416 |
- endif() |
417 |
- |
418 |
--list(APPEND jdbc_cmake_opts -DMYSQLCLIENT_STATIC_LINKING=ON) |
419 |
-+list(APPEND jdbc_cmake_opts -DMYSQLCLIENT_STATIC_LINKING=OFF) |
420 |
- |
421 |
- if(CMAKE_BUILD_TYPE) |
422 |
- if(CMAKE_BUILD_TYPE MATCHES "[Ss][Tt][Aa][Tt][Ii][Cc]") |
423 |
|
424 |
diff --git a/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.18-fix-build.patch b/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.18-fix-build.patch |
425 |
deleted file mode 100644 |
426 |
index 484220442ab..00000000000 |
427 |
--- a/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.18-fix-build.patch |
428 |
+++ /dev/null |
429 |
@@ -1,275 +0,0 @@ |
430 |
---- a/CMakeLists.txt |
431 |
-+++ b/CMakeLists.txt |
432 |
-@@ -463,7 +463,7 @@ set_target_properties(connector PROPERTIES |
433 |
- |
434 |
- |
435 |
- install(TARGETS connector |
436 |
-- CONFIGURATIONS Release RelWithDebInfo |
437 |
-+ CONFIGURATIONS Release RelWithDebInfo Gentoo |
438 |
- ARCHIVE DESTINATION "${INSTALL_LIB_DIR_STATIC}" COMPONENT XDevAPIDev |
439 |
- RUNTIME DESTINATION "${INSTALL_LIB_DIR}" COMPONENT XDevAPIDll |
440 |
- LIBRARY DESTINATION "${INSTALL_LIB_DIR}" COMPONENT XDevAPIDll |
441 |
---- a/cdk/cmake/DepFindProtobuf.cmake |
442 |
-+++ b/cdk/cmake/DepFindProtobuf.cmake |
443 |
-@@ -48,197 +48,7 @@ if(TARGET Protobuf::pb) |
444 |
- return() |
445 |
- endif() |
446 |
- |
447 |
--message(STATUS "Setting up Protobuf.") |
448 |
-- |
449 |
--set(PB_SOURCE_DIR "${PROJECT_SOURCE_DIR}/protobuf") |
450 |
--set(PB_BINARY_DIR "${PROJECT_BINARY_DIR}/protobuf") |
451 |
--set(config_stamp "${PB_BINARY_DIR}/config.stamp") |
452 |
--set(build_stamp "${PB_BINARY_DIR}/build.stamp") |
453 |
-- |
454 |
-- |
455 |
--# |
456 |
--# Pick build configuration for the protobuf build. Normally we build using the |
457 |
--# same build configuration that is used for building CDK (Release/Debug/etc.). |
458 |
--# But we also support building CDK under non-standard build configuration |
459 |
--# named 'Static' (this is a dirty trick we use to simplify building our MSIs). |
460 |
--# Since protobuf does not know 'Static' build configuration, we build protobuf |
461 |
--# under 'Release' configuration in that case. |
462 |
--# |
463 |
--# We need to handle two cases. For some build systems, like Makefiles, |
464 |
--# the build configuration is specified at cmake time using CMAKE_BUILD_TYPE |
465 |
--# variable. In that case we also set it during protobuf build configuration. |
466 |
--# Another case is a multi-configuration build system like MSVC. In this case |
467 |
--# we use generator expression to pick correct configuration when the build |
468 |
--# command is invoked below. |
469 |
--# |
470 |
-- |
471 |
--set(build_type) |
472 |
--if(CMAKE_BUILD_TYPE) |
473 |
-- if(CMAKE_BUILD_TYPE MATCHES "[Ss][Tt][Aa][Tt][Ii][Cc]") |
474 |
-- set(set_build_type -DCMAKE_BUILD_TYPE=Release) |
475 |
-- else() |
476 |
-- set(set_build_type -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}) |
477 |
-- endif() |
478 |
--endif() |
479 |
-- |
480 |
--set(CONFIG_EXPR |
481 |
-- $<$<CONFIG:Static>:Release>$<$<NOT:$<CONFIG:Static>>:$<CONFIG>> |
482 |
--) |
483 |
-- |
484 |
-- |
485 |
--if(NOT EXISTS "${PB_BINARY_DIR}/exports.cmake") |
486 |
-- |
487 |
-- message("==== Configuring Protobuf build using cmake generator: ${CMAKE_GENERATOR}") |
488 |
-- |
489 |
-- file(REMOVE "${PB_BINARY_DIR}/CMakeCache.txt") |
490 |
-- file(MAKE_DIRECTORY "${PB_BINARY_DIR}") |
491 |
-- |
492 |
-- # Dirty trick to speed up cmake set up time. |
493 |
-- #file( |
494 |
-- # COPY "${CMAKE_BINARY_DIR}/CMakeFiles/${CMAKE_VERSION}" |
495 |
-- # DESTINATION "${PB_BINARY_DIR}/CMakeFiles" |
496 |
-- #) |
497 |
-- |
498 |
-- execute_process( |
499 |
-- COMMAND ${CMAKE_COMMAND} |
500 |
-- -G "${CMAKE_GENERATOR}" |
501 |
-- ${set_build_type} |
502 |
-- -DSTATIC_MSVCRT=${STATIC_MSVCRT} |
503 |
-- -DCMAKE_POSITION_INDEPENDENT_CODE=${CMAKE_POSITION_INDEPENDENT_CODE} |
504 |
-- -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} |
505 |
-- -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} |
506 |
-- -DCMAKE_CXX_FLAGS_DEBUG=${CMAKE_CXX_FLAGS_DEBUG} |
507 |
-- -DCMAKE_CXX_FLAGS_RELEASE=${CMAKE_CXX_FLAGS_RELEASE} |
508 |
-- -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=${CMAKE_CXX_FLAGS_RELWITHDEBINFO} |
509 |
-- -DCMAKE_CXX_FLAGS_MINSIZEREL=${CMAKE_CXX_FLAGS_MINSIZEREL} |
510 |
-- -DCMAKE_STATIC_LINKER_FLAGS=${CMAKE_STATIC_LINKER_FLAGS} |
511 |
-- ${PB_SOURCE_DIR} |
512 |
-- WORKING_DIRECTORY ${PB_BINARY_DIR} |
513 |
-- RESULT_VARIABLE protobuf_config |
514 |
-- ) |
515 |
-- |
516 |
-- if(protobuf_config) |
517 |
-- message(FATAL_ERROR "Could not configure Protobuf build: ${protobuf_config}") |
518 |
-- endif() |
519 |
-- |
520 |
-- message("==== Protobuf build configured.") |
521 |
-- |
522 |
--endif() |
523 |
-- |
524 |
-- |
525 |
--include(${PB_BINARY_DIR}/exports.cmake) |
526 |
-- |
527 |
--# |
528 |
--# Protobuf library targets imported above (pb_protobuf |
529 |
--# and pb_protobuf-lite) are local to the directory from which |
530 |
--# they were imported. This is not good if cdk is used as |
531 |
--# a sub-project of a parent project, because the parent project |
532 |
--# must have access to these targets. |
533 |
--# |
534 |
--# For that reason below we create global protobuf/protobuf-lite targets |
535 |
--# and copy their locations from the imported targets. |
536 |
--# |
537 |
--# Note: we can't use ALIAS library because it does not work with imported |
538 |
--# targets |
539 |
--# |
540 |
-- |
541 |
--add_library(Protobuf::pb-full STATIC IMPORTED GLOBAL) |
542 |
--add_library(Protobuf::pb-lite STATIC IMPORTED GLOBAL) |
543 |
--add_executable(Protobuf::protoc IMPORTED GLOBAL) |
544 |
-- |
545 |
--set(TGT_protobuf Protobuf::pb-full) |
546 |
--set(TGT_protobuf-lite Protobuf::pb-lite) |
547 |
--set(TGT_protoc Protobuf::protoc) |
548 |
-- |
549 |
--foreach(tgt protobuf protobuf-lite protoc) |
550 |
-- |
551 |
-- #message("processing: ${tgt}") |
552 |
-- |
553 |
-- set(loc_list) |
554 |
-- |
555 |
-- foreach(CONF NOCONFIG DEBUG RELEASE MINSIZEREL RELWITHDEBINFO) |
556 |
-- |
557 |
-- #message("- CONF: ${CONF}") |
558 |
-- |
559 |
-- get_target_property(LOC pb_${tgt} IMPORTED_LOCATION_${CONF}) |
560 |
-- |
561 |
-- if(LOC) |
562 |
-- |
563 |
-- #message("- setting imported location to: ${LOC}") |
564 |
-- list(APPEND loc_list "${LOC}") |
565 |
-- |
566 |
-- set_target_properties(${TGT_${tgt}} PROPERTIES |
567 |
-- IMPORTED_LOCATION_${CONF} "${LOC}" |
568 |
-- ) |
569 |
-- |
570 |
-- set_property(TARGET ${TGT_${tgt}} APPEND PROPERTY |
571 |
-- IMPORTED_CONFIGURATIONS ${CONF} |
572 |
-- ) |
573 |
-- |
574 |
-- endif() |
575 |
-- |
576 |
-- endforeach(CONF) |
577 |
-- |
578 |
-- # |
579 |
-- # To support 'Static' build configuration the targets imported from the |
580 |
-- # Protobuf project need to have IMPORTED_LOCATION_STATIC defined. We use |
581 |
-- # 'Release' locations as Protobuf is built using 'Release' configuration in |
582 |
-- # that case. |
583 |
-- # |
584 |
-- |
585 |
-- get_target_property(LOC ${TGT_${tgt}} IMPORTED_LOCATION_RELEASE) |
586 |
-- set_property(TARGET ${TGT_${tgt}} PROPERTY IMPORTED_LOCATION_STATIC ${LOC}) |
587 |
-- |
588 |
--endforeach(tgt) |
589 |
-- |
590 |
-- |
591 |
--#message("Protobuf include path: ${PROTOBUF_INCLUDE_DIR}") |
592 |
--set(PROTOBUF_INCLUDE_DIR ${PROTOBUF_INCLUDE_DIR} CACHE INTERNAL "") |
593 |
-- |
594 |
--set_target_properties(Protobuf::pb-lite PROPERTIES |
595 |
-- INTERFACE_INCLUDE_DIRECTORIES "${PROTOBUF_INCLUDE_DIR}" |
596 |
--) |
597 |
-- |
598 |
--set_target_properties(Protobuf::pb-full PROPERTIES |
599 |
-- INTERFACE_LINK_LIBRARIES Protobuf::pb-lite |
600 |
--) |
601 |
-- |
602 |
--# On UNIX Protobuf uses pthread library |
603 |
--if(UNIX) |
604 |
-- set_property(TARGET Protobuf::pb-lite APPEND PROPERTY |
605 |
-- INTERFACE_LINK_LIBRARIES pthread |
606 |
-- ) |
607 |
--endif() |
608 |
-- |
609 |
--# |
610 |
--# Note: This is needed to correctly compile headers generated by protobuf |
611 |
--# with sunpro compiler. |
612 |
--# |
613 |
-- |
614 |
--if(SUNPRO) |
615 |
-- set_property(TARGET Protobuf::pb-lite APPEND PROPERTY |
616 |
-- INTERFACE_COMPILE_DEFINITIONS SOLARIS_64BIT_ENABLED |
617 |
-- ) |
618 |
--endif() |
619 |
-- |
620 |
-- |
621 |
--add_custom_command(OUTPUT "${build_stamp}" |
622 |
-- COMMAND ${CMAKE_COMMAND} --build . --config ${CONFIG_EXPR} |
623 |
-- COMMAND ${CMAKE_COMMAND} -E touch "${build_stamp}" |
624 |
-- WORKING_DIRECTORY "${PB_BINARY_DIR}" |
625 |
-- COMMENT "Building protobuf" |
626 |
--) |
627 |
-- |
628 |
--add_custom_target(build_protobuf |
629 |
-- SOURCES "${build_stamp}" |
630 |
--) |
631 |
-- |
632 |
--add_dependencies(Protobuf::pb-full build_protobuf) |
633 |
--add_dependencies(Protobuf::pb-lite build_protobuf) |
634 |
--add_dependencies(Protobuf::protoc build_protobuf) |
635 |
-- |
636 |
--# TODO: Handle lite/full version |
637 |
-- |
638 |
-+find_package(Protobuf REQUIRED) |
639 |
- |
640 |
- |
641 |
- # Standard PROTOBUF_GENERATE_CPP modified to our usage |
642 |
-@@ -268,11 +78,11 @@ function(mysqlx_protobuf_generate_cpp SRCS HDRS) |
643 |
- "${CMAKE_CURRENT_BINARY_DIR}/protobuf/${FIL_WE}.pb.h" |
644 |
- COMMAND ${CMAKE_COMMAND} |
645 |
- -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/protobuf" |
646 |
-- COMMAND Protobuf::protoc |
647 |
-+ COMMAND ${Protobuf_PROTOC_EXECUTABLE} |
648 |
- ARGS --cpp_out "${CMAKE_CURRENT_BINARY_DIR}/protobuf" |
649 |
- -I ${ABS_PATH} ${ABS_FIL} |
650 |
-- --proto_path=${PROJECT_SOURCE_DIR}/protobuf/protobuf-3.6.1/src |
651 |
-- DEPENDS ${ABS_FIL} #${PROTOBUF_PROTOC_EXECUTABLE} |
652 |
-+ --proto_path=${Protobuf_INCLUDE_DIR} |
653 |
-+ DEPENDS ${ABS_FIL} #${Protobuf_PROTOC_EXECUTABLE} |
654 |
- COMMENT "Running C++ protocol buffer compiler on ${FIL}" |
655 |
- VERBATIM |
656 |
- ) |
657 |
---- a/cdk/core/CMakeLists.txt |
658 |
-+++ b/cdk/core/CMakeLists.txt |
659 |
-@@ -44,7 +44,7 @@ add_library(cdk STATIC ${cdk_sources} ${HEADERS}) |
660 |
- |
661 |
- target_link_libraries(cdk |
662 |
- PUBLIC cdk_mysqlx cdk_parser |
663 |
-- PRIVATE Protobuf::pb-lite # required by codecc.cc |
664 |
-+ PRIVATE protobuf # required by codecc.cc |
665 |
- ) |
666 |
- |
667 |
- add_coverage(cdk) |
668 |
---- a/cdk/protocol/mysqlx/CMakeLists.txt |
669 |
-+++ b/cdk/protocol/mysqlx/CMakeLists.txt |
670 |
-@@ -125,11 +125,7 @@ target_include_directories(cdk_proto_mysqlx PRIVATE |
671 |
- ${CMAKE_CURRENT_BINARY_DIR} |
672 |
- ) |
673 |
- |
674 |
--if(use_full_protobuf) |
675 |
-- target_link_libraries(cdk_proto_mysqlx PRIVATE Protobuf::pb-full) |
676 |
--else() |
677 |
-- target_link_libraries(cdk_proto_mysqlx PRIVATE Protobuf::pb-lite) |
678 |
--endif() |
679 |
-+target_link_libraries(cdk_proto_mysqlx PRIVATE protobuf) |
680 |
- |
681 |
- target_link_libraries(cdk_proto_mysqlx PRIVATE cdk_foundation) |
682 |
- |
683 |
---- a/jdbc.cmake |
684 |
-+++ b/jdbc.cmake |
685 |
-@@ -66,7 +66,7 @@ if(MYSQL_CONFIG_EXECUTABLE) |
686 |
- list(APPEND jdbc_cmake_opts -DMYSQL_CONFIG_EXECUTABLE=${MYSQL_CONFIG_EXECUTABLE}) |
687 |
- endif() |
688 |
- |
689 |
--list(APPEND jdbc_cmake_opts -DMYSQLCLIENT_STATIC_LINKING=ON) |
690 |
-+list(APPEND jdbc_cmake_opts -DMYSQLCLIENT_STATIC_LINKING=OFF) |
691 |
- |
692 |
- if(CMAKE_BUILD_TYPE) |
693 |
- if(CMAKE_BUILD_TYPE MATCHES "[Ss][Tt][Aa][Tt][Ii][Cc]") |
694 |
---- a/jdbc/CMakeLists.txt |
695 |
-+++ b/jdbc/CMakeLists.txt |
696 |
-@@ -272,7 +272,7 @@ set_target_properties(connector-jdbc |
697 |
- |
698 |
- |
699 |
- install(TARGETS connector-jdbc |
700 |
-- CONFIGURATIONS Release RelWithDebInfo |
701 |
-+ CONFIGURATIONS Release RelWithDebInfo Gentoo |
702 |
- ARCHIVE DESTINATION "${INSTALL_LIB_DIR_STATIC}" COMPONENT JDBCDev |
703 |
- RUNTIME DESTINATION "${INSTALL_LIB_DIR}" COMPONENT JDBCDll |
704 |
- LIBRARY DESTINATION "${INSTALL_LIB_DIR}" COMPONENT JDBCDll |
705 |
|
706 |
diff --git a/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.11-r1.ebuild b/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.11-r1.ebuild |
707 |
deleted file mode 100644 |
708 |
index 812af80237d..00000000000 |
709 |
--- a/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.11-r1.ebuild |
710 |
+++ /dev/null |
711 |
@@ -1,63 +0,0 @@ |
712 |
-# Copyright 1999-2019 Gentoo Authors |
713 |
-# Distributed under the terms of the GNU General Public License v2 |
714 |
- |
715 |
-EAPI="7" |
716 |
- |
717 |
-inherit cmake-utils flag-o-matic |
718 |
- |
719 |
-DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)" |
720 |
-HOMEPAGE="https://dev.mysql.com/downloads/connector/cpp/" |
721 |
-URI_DIR="Connector-C++" |
722 |
-SRC_URI="https://dev.mysql.com/get/Downloads/${URI_DIR}/${P}.tar.gz" |
723 |
- |
724 |
-LICENSE="GPL-2" |
725 |
-SLOT="0" |
726 |
-KEYWORDS="amd64 arm ~arm64 ppc ppc64 sparc x86" |
727 |
-IUSE="debug examples gcov static-libs" |
728 |
- |
729 |
-DEPEND="dev-db/mysql-connector-c:= |
730 |
- dev-libs/boost:= |
731 |
- dev-libs/openssl:0= |
732 |
- !<dev-db/mysql-connector-c-6.1.8" |
733 |
-RDEPEND="${DEPEND}" |
734 |
- |
735 |
-PATCHES=( |
736 |
- "${FILESDIR}/${PN}-1.1.6-fix-cmake.patch" |
737 |
- "${FILESDIR}/${PN}-1.1.11-fix-mariadb.patch" |
738 |
- "${FILESDIR}/${PN}-1.1.11-fix-cpp-linking.patch" |
739 |
-) |
740 |
- |
741 |
-src_configure() { |
742 |
- # native lib/wrapper needs this! |
743 |
- append-flags "-fno-strict-aliasing" |
744 |
- |
745 |
- local mycmakeargs=( |
746 |
- -DMYSQLCPPCONN_BUILD_EXAMPLES=OFF |
747 |
- -DMYSQLCPPCONN_ICU_ENABLE=OFF |
748 |
- -DMYSQLCPPCONN_TRACE_ENABLE=$(usex debug ON OFF) |
749 |
- -DMYSQLCPPCONN_GCOV_ENABLE=$(usex gcov ON OFF) |
750 |
- -DINSTALL_DOCS="/usr/share/doc/${PF}" |
751 |
- -DMYSQL_CXX_LINKAGE=0 |
752 |
- -DMYSQL_INCLUDE_DIR=$(mysql_config --variable=pkgincludedir) |
753 |
- ) |
754 |
- |
755 |
- cmake-utils_src_configure |
756 |
-} |
757 |
- |
758 |
-src_install() { |
759 |
- cmake-utils_src_install |
760 |
- |
761 |
- # static lib has wrong name so we need to rename it |
762 |
- if use static-libs; then |
763 |
- mv "${ED%/}"/usr/$(get_libdir)/libmysqlcppconn-static.a \ |
764 |
- "${ED%/}"/usr/$(get_libdir)/libmysqlcppconn.a || die |
765 |
- else |
766 |
- rm -f "${ED%/}"/usr/$(get_libdir)/libmysqlcppconn-static.a |
767 |
- fi |
768 |
- |
769 |
- # examples |
770 |
- if use examples; then |
771 |
- insinto /usr/share/doc/${PF}/examples |
772 |
- doins "${S}"/examples/* |
773 |
- fi |
774 |
-} |
775 |
|
776 |
diff --git a/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.9-r1.ebuild b/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.9-r1.ebuild |
777 |
deleted file mode 100644 |
778 |
index 3f908d77fd3..00000000000 |
779 |
--- a/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.9-r1.ebuild |
780 |
+++ /dev/null |
781 |
@@ -1,62 +0,0 @@ |
782 |
-# Copyright 1999-2019 Gentoo Authors |
783 |
-# Distributed under the terms of the GNU General Public License v2 |
784 |
- |
785 |
-EAPI=6 |
786 |
- |
787 |
-inherit cmake-utils flag-o-matic |
788 |
- |
789 |
-DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)" |
790 |
-HOMEPAGE="https://dev.mysql.com/downloads/connector/cpp/" |
791 |
-URI_DIR="Connector-C++" |
792 |
-SRC_URI="https://dev.mysql.com/get/Downloads/${URI_DIR}/${P}.tar.gz" |
793 |
- |
794 |
-LICENSE="GPL-2" |
795 |
-SLOT="0" |
796 |
-KEYWORDS="amd64 arm ~arm64 ppc ppc64 sparc x86" |
797 |
-IUSE="debug examples gcov static-libs" |
798 |
- |
799 |
-DEPEND="dev-db/mysql-connector-c:= |
800 |
- dev-libs/boost:= |
801 |
- dev-libs/openssl:0= |
802 |
- !<dev-db/mysql-connector-c-6.1.8" |
803 |
-RDEPEND="${DEPEND}" |
804 |
- |
805 |
-PATCHES=( |
806 |
- "${FILESDIR}/${PN}-1.1.6-fix-cmake.patch" |
807 |
- "${FILESDIR}/${PN}-1.1.8-fix-mariadb.patch" |
808 |
-) |
809 |
- |
810 |
-src_configure() { |
811 |
- # native lib/wrapper needs this! |
812 |
- append-flags "-fno-strict-aliasing" |
813 |
- |
814 |
- local mycmakeargs=( |
815 |
- -DMYSQLCPPCONN_BUILD_EXAMPLES=OFF |
816 |
- -DMYSQLCPPCONN_ICU_ENABLE=OFF |
817 |
- -DUSE_MYSQLCPPCONN_TRACE_ENABLE=$(usex debug ON OFF) |
818 |
- -DUSE_MYSQLCPPCONN_GCOV_ENABLE=$(usex gcov ON OFF) |
819 |
- -DINSTALL_DOCS="/usr/share/doc/${PF}" |
820 |
- -DMYSQL_CXX_LINKAGE=0 |
821 |
- -DMYSQL_INCLUDE_DIR=$(mysql_config --variable=pkgincludedir) |
822 |
- ) |
823 |
- |
824 |
- cmake-utils_src_configure |
825 |
-} |
826 |
- |
827 |
-src_install() { |
828 |
- cmake-utils_src_install |
829 |
- |
830 |
- # static lib has wrong name so we need to rename it |
831 |
- if use static-libs; then |
832 |
- mv "${ED}"/usr/$(get_libdir)/libmysqlcppconn-static.a \ |
833 |
- "${ED}"/usr/$(get_libdir)/libmysqlcppconn.a || die |
834 |
- else |
835 |
- rm -f "${ED}"/usr/$(get_libdir)/libmysqlcppconn-static.a |
836 |
- fi |
837 |
- |
838 |
- # examples |
839 |
- if use examples; then |
840 |
- insinto /usr/share/doc/${PF}/examples |
841 |
- doins "${S}"/examples/* |
842 |
- fi |
843 |
-} |
844 |
|
845 |
diff --git a/dev-db/mysql-connector-c++/mysql-connector-c++-8.0.15.ebuild b/dev-db/mysql-connector-c++/mysql-connector-c++-8.0.15.ebuild |
846 |
deleted file mode 100644 |
847 |
index 2b7374017ca..00000000000 |
848 |
--- a/dev-db/mysql-connector-c++/mysql-connector-c++-8.0.15.ebuild |
849 |
+++ /dev/null |
850 |
@@ -1,41 +0,0 @@ |
851 |
-# Copyright 1999-2019 Gentoo Authors |
852 |
-# Distributed under the terms of the GNU General Public License v2 |
853 |
- |
854 |
-EAPI="7" |
855 |
- |
856 |
-CMAKE_MAKEFILE_GENERATOR=emake |
857 |
-inherit cmake-utils |
858 |
- |
859 |
-DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)" |
860 |
-HOMEPAGE="https://dev.mysql.com/downloads/connector/cpp/" |
861 |
-URI_DIR="Connector-C++" |
862 |
-SRC_URI="https://dev.mysql.com/get/Downloads/${URI_DIR}/${P}-src.tar.gz" |
863 |
- |
864 |
-LICENSE="Artistic GPL-2" |
865 |
-SLOT="0" |
866 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" |
867 |
-IUSE="+legacy libressl" |
868 |
- |
869 |
-RDEPEND=" |
870 |
- dev-libs/protobuf:= |
871 |
- legacy? ( |
872 |
- dev-libs/boost:= |
873 |
- >=dev-db/mysql-connector-c-6.1.8:= |
874 |
- ) |
875 |
- !libressl? ( dev-libs/openssl:0= ) |
876 |
- libressl? ( dev-libs/libressl:0= )" |
877 |
-DEPEND="${RDEPEND}" |
878 |
-S="${WORKDIR}/${P}-src" |
879 |
- |
880 |
-PATCHES=( |
881 |
- "${FILESDIR}/${PN}-8.0.15-fix-build.patch" |
882 |
-) |
883 |
- |
884 |
-src_configure() { |
885 |
- local mycmakeargs=( |
886 |
- -DWITH_SSL=system |
887 |
- -DWITH_JDBC=$(usex legacy ON OFF) |
888 |
- ) |
889 |
- |
890 |
- cmake-utils_src_configure |
891 |
-} |
892 |
|
893 |
diff --git a/dev-db/mysql-connector-c++/mysql-connector-c++-8.0.18.ebuild b/dev-db/mysql-connector-c++/mysql-connector-c++-8.0.18.ebuild |
894 |
deleted file mode 100644 |
895 |
index bc937af3de4..00000000000 |
896 |
--- a/dev-db/mysql-connector-c++/mysql-connector-c++-8.0.18.ebuild |
897 |
+++ /dev/null |
898 |
@@ -1,43 +0,0 @@ |
899 |
-# Copyright 1999-2019 Gentoo Authors |
900 |
-# Distributed under the terms of the GNU General Public License v2 |
901 |
- |
902 |
-EAPI="7" |
903 |
- |
904 |
-CMAKE_MAKEFILE_GENERATOR=emake |
905 |
-inherit cmake-utils |
906 |
- |
907 |
-DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)" |
908 |
-HOMEPAGE="https://dev.mysql.com/downloads/connector/cpp/" |
909 |
-URI_DIR="Connector-C++" |
910 |
-SRC_URI="https://dev.mysql.com/get/Downloads/${URI_DIR}/${P}-src.tar.gz" |
911 |
- |
912 |
-LICENSE="Artistic GPL-2" |
913 |
-SLOT="0" |
914 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" |
915 |
-IUSE="+legacy libressl" |
916 |
- |
917 |
-RDEPEND=" |
918 |
- dev-libs/protobuf:= |
919 |
- legacy? ( |
920 |
- dev-libs/boost:= |
921 |
- >=dev-db/mysql-connector-c-6.1.8:= |
922 |
- ) |
923 |
- !libressl? ( dev-libs/openssl:0= ) |
924 |
- libressl? ( dev-libs/libressl:0= )" |
925 |
-DEPEND="${RDEPEND}" |
926 |
-S="${WORKDIR}/${P}-src" |
927 |
- |
928 |
-PATCHES=( |
929 |
- "${FILESDIR}/${PN}-8.0.18-fix-build.patch" |
930 |
-) |
931 |
- |
932 |
-src_configure() { |
933 |
- local mycmakeargs=( |
934 |
- -DWITH_SSL=system |
935 |
- -DWITH_JDBC=$(usex legacy ON OFF) |
936 |
- $(usex legacy '-DMYSQLCLIENT_STATIC_BINDING=0' '') |
937 |
- $(usex legacy '-DMYSQLCLIENT_STATIC_LINKING=0' '') |
938 |
- ) |
939 |
- |
940 |
- cmake-utils_src_configure |
941 |
-} |