/[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.24 Revision 1.25
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.24 2014/07/31 22:26:07 grknight Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-cmake.eclass,v 1.25 2014/10/08 17:25:46 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>
270 270
271 if in_iuse tokudb ; then 271 if in_iuse tokudb ; then
272 # Don't build bundled xz-utils 272 # Don't build bundled xz-utils
273 rm -f "${S}/storage/tokudb/ft-index/cmake_modules/TokuThirdParty.cmake" 273 rm -f "${S}/storage/tokudb/ft-index/cmake_modules/TokuThirdParty.cmake"
274 touch "${S}/storage/tokudb/ft-index/cmake_modules/TokuThirdParty.cmake" 274 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
275 fi 276 fi
276 277
277 epatch_user 278 epatch_user
278} 279}
279 280
412 fi 413 fi
413 414
414 # Configuration stuff 415 # Configuration stuff
415 case ${MYSQL_PV_MAJOR} in 416 case ${MYSQL_PV_MAJOR} in
416 5.[1-4]*) mysql_mycnf_version="5.1" ;; 417 5.[1-4]*) mysql_mycnf_version="5.1" ;;
418 5.5) mysql_mycnf_version="5.5" ;;
417 5.[5-9]|6*|7*|8*|9*|10*) mysql_mycnf_version="5.5" ;; 419 5.[6-9]|6*|7*|8*|9*|10*) mysql_mycnf_version="5.6" ;;
418 esac 420 esac
419 einfo "Building default my.cnf (${mysql_mycnf_version})" 421 einfo "Building default my.cnf (${mysql_mycnf_version})"
420 insinto "${MY_SYSCONFDIR#${EPREFIX}}" 422 insinto "${MY_SYSCONFDIR#${EPREFIX}}"
421 doins "${S}"/scripts/mysqlaccess.conf 423 [[ -f "${S}/scripts/mysqlaccess.conf" ]] && doins "${S}"/scripts/mysqlaccess.conf
422 mycnf_src="my.cnf-${mysql_mycnf_version}" 424 mycnf_src="my.cnf-${mysql_mycnf_version}"
423 sed -e "s!@DATADIR@!${MY_DATADIR}!g" \ 425 sed -e "s!@DATADIR@!${MY_DATADIR}!g" \
424 "${FILESDIR}/${mycnf_src}" \ 426 "${FILESDIR}/${mycnf_src}" \
425 > "${TMPDIR}/my.cnf.ok" || die 427 > "${TMPDIR}/my.cnf.ok" || die
426 use prefix && sed -i -r -e '/^user[[:space:]]*=[[:space:]]*mysql$/d' "${TMPDIR}/my.cnf.ok" 428 use prefix && sed -i -r -e '/^user[[:space:]]*=[[:space:]]*mysql$/d' "${TMPDIR}/my.cnf.ok"

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

  ViewVC Help
Powered by ViewVC 1.1.20