/[gentoo-x86]/eclass/mysql-cmake.eclass
Gentoo

Diff of /eclass/mysql-cmake.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.25 Revision 1.26
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-cmake.eclass,v 1.25 2014/10/08 17:25:46 grknight Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-cmake.eclass,v 1.26 2014/11/26 00:34:41 grknight Exp $
4 4
5# @ECLASS: mysql-cmake.eclass 5# @ECLASS: mysql-cmake.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Maintainers: 7# Maintainers:
8# - MySQL Team <mysql-bugs@gentoo.org> 8# - MySQL Team <mysql-bugs@gentoo.org>
177 -DWITH_HEAP_STORAGE_ENGINE=1 177 -DWITH_HEAP_STORAGE_ENGINE=1
178 -DWITH_INNOBASE_STORAGE_ENGINE=1 178 -DWITH_INNOBASE_STORAGE_ENGINE=1
179 -DWITH_MYISAMMRG_STORAGE_ENGINE=1 179 -DWITH_MYISAMMRG_STORAGE_ENGINE=1
180 -DWITH_MYISAM_STORAGE_ENGINE=1 180 -DWITH_MYISAM_STORAGE_ENGINE=1
181 -DWITH_PARTITION_STORAGE_ENGINE=1 181 -DWITH_PARTITION_STORAGE_ENGINE=1
182 $(cmake-utils_use_with extraengine FEDERATED_STORAGE_ENGINE)
183 ) 182 )
184 183
185 if in_iuse pbxt ; then 184 if in_iuse pbxt ; then
186 mycmakeargs+=( $(cmake-utils_use_with pbxt PBXT_STORAGE_ENGINE) ) 185 mycmakeargs+=( $(cmake-utils_use_with pbxt PBXT_STORAGE_ENGINE) )
187 fi 186 fi
188 187
189 if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]]; then 188 if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]]; then
189
190 # Federated{,X} must be treated special otherwise they will not be built as plugins
191 if ! use extraengine ; then
192 mycmakeargs+=(
193 -DWITHOUT_FEDERATED_STORAGE_ENGINE=1
194 -DPLUGIN_FEDERATED=0
195 -DWITHOUT_FEDERATEDX_STORAGE_ENGINE=1
196 -DPLUGIN_FEDERATEDX=0 )
197 fi
198
190 mycmakeargs+=( 199 mycmakeargs+=(
191 $(mysql-cmake_use_plugin oqgraph OQGRAPH) 200 $(mysql-cmake_use_plugin oqgraph OQGRAPH)
192 $(mysql-cmake_use_plugin sphinx SPHINX) 201 $(mysql-cmake_use_plugin sphinx SPHINX)
193 $(mysql-cmake_use_plugin extraengine FEDERATEDX)
194 $(mysql-cmake_use_plugin tokudb TOKUDB) 202 $(mysql-cmake_use_plugin tokudb TOKUDB)
195 $(mysql-cmake_use_plugin pam AUTH_PAM) 203 $(mysql-cmake_use_plugin pam AUTH_PAM)
196 ) 204 )
197 205
198 if mysql_version_is_at_least 10.0.5 ; then 206 if mysql_version_is_at_least 10.0.5 ; then
207 -DPLUGIN_CONNECT_WITH_MYSQL=YES 215 -DPLUGIN_CONNECT_WITH_MYSQL=YES
208 $(cmake-utils_use xml CONNECT_WITH_LIBXML2) 216 $(cmake-utils_use xml CONNECT_WITH_LIBXML2)
209 $(cmake-utils_use odbc CONNECT_WITH_ODBC) 217 $(cmake-utils_use odbc CONNECT_WITH_ODBC)
210 ) 218 )
211 fi 219 fi
220
221 if in_iuse mroonga ; then
222 use mroonga || mycmakeargs+=( -DWITHOUT_MROONGA=1 )
223 else
224 mycmakeargs+=( -DWITHOUT_MROONGA=1 )
225 fi
226
227 if in_iuse galera ; then
228 mycmakeargs+=( $(cmake-utils_use_with galera WSREP) )
229 fi
230
231 if mysql_version_is_at_least "10.1.1" ; then
232 mycmakeargs+=( $(cmake-utils_use_with innodb-lz4 INNODB_LZ4)
233 $(cmake-utils_use_with innodb-lzo INNODB_LZO) )
234 fi
235 else
236 mycmakeargs+=( $(cmake-utils_use_with extraengine FEDERATED_STORAGE_ENGINE) )
212 fi 237 fi
213 238
214 if [[ ${PN} == "percona-server" ]]; then 239 if [[ ${PN} == "percona-server" ]]; then
215 mycmakeargs+=( 240 mycmakeargs+=(
216 $(cmake-utils_use_with pam) 241 $(cmake-utils_use_with pam)
271 if in_iuse tokudb ; then 296 if in_iuse tokudb ; then
272 # Don't build bundled xz-utils 297 # Don't build bundled xz-utils
273 rm -f "${S}/storage/tokudb/ft-index/cmake_modules/TokuThirdParty.cmake" 298 rm -f "${S}/storage/tokudb/ft-index/cmake_modules/TokuThirdParty.cmake"
274 touch "${S}/storage/tokudb/ft-index/cmake_modules/TokuThirdParty.cmake" 299 touch "${S}/storage/tokudb/ft-index/cmake_modules/TokuThirdParty.cmake"
275 sed -i 's/ build_lzma//' "${S}/storage/tokudb/ft-index/ft/CMakeLists.txt" || die 300 sed -i 's/ build_lzma//' "${S}/storage/tokudb/ft-index/ft/CMakeLists.txt" || die
301 fi
302
303 # Remove the bundled groonga if it exists
304 # There is no CMake flag, it simply checks for existance
305 if [[ -d "${S}"/storage/mroonga/vendor/groonga ]] ; then
306 rm -r "${S}"/storage/mroonga/vendor/groonga || die "could not remove packaged groonga"
276 fi 307 fi
277 308
278 epatch_user 309 epatch_user
279} 310}
280 311

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20