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

Diff of /eclass/mysql.eclass

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

Revision 1.179 Revision 1.180
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/Attic/mysql.eclass,v 1.179 2014/07/19 10:18:41 grobian Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/mysql.eclass,v 1.180 2014/07/29 17:59:21 robbat2 Exp $
4 4
5# @ECLASS: mysql.eclass 5# @ECLASS: mysql.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# MySQL Team <mysql-bugs@gentoo.org> 7# MySQL Team <mysql-bugs@gentoo.org>
8# Luca Longinotti <chtekk@gentoo.org> 8# Luca Longinotti <chtekk@gentoo.org>
17# phase hooks. 17# phase hooks.
18 18
19WANT_AUTOCONF="latest" 19WANT_AUTOCONF="latest"
20WANT_AUTOMAKE="latest" 20WANT_AUTOMAKE="latest"
21 21
22inherit eutils flag-o-matic gnuconfig autotools multilib mysql_fx versionator toolchain-funcs user 22inherit eutils flag-o-matic gnuconfig autotools multilib mysql_fx versionator toolchain-funcs
23 23
24# Shorten the path because the socket path length must be shorter than 107 chars 24# Shorten the path because the socket path length must be shorter than 107 chars
25# and we will run a mysql server during test phase 25# and we will run a mysql server during test phase
26S="${WORKDIR}/mysql" 26S="${WORKDIR}/mysql"
27 27
876 # Initialize the proper variables first 876 # Initialize the proper variables first
877 mysql_init_vars 877 mysql_init_vars
878 878
879 unpack ${A} 879 unpack ${A}
880 # Grab the patches 880 # Grab the patches
881 [[ "${MY_EXTRAS_VER}" == "live" ]] && S="${WORKDIR}/mysql-extras" git_src_unpack 881 [[ "${MY_EXTRAS_VER}" == "live" ]] && S="${WORKDIR}/mysql-extras" git-2_src_unpack
882 882
883 mv -f "${WORKDIR}/${MY_SOURCEDIR}" "${S}" 883 mv -f "${WORKDIR}/${MY_SOURCEDIR}" "${S}"
884 884
885 # Be backwards compatible for now 885 # Be backwards compatible for now
886 case ${EAPI:-0} in 886 case ${EAPI:-0} in
1151 -e "s!/tmp!${EPREFIX}/tmp!" \ 1151 -e "s!/tmp!${EPREFIX}/tmp!" \
1152 -e "s!/usr!${EPREFIX}/usr!" \ 1152 -e "s!/usr!${EPREFIX}/usr!" \
1153 -e "s!= /var!= ${EPREFIX}/var!" \ 1153 -e "s!= /var!= ${EPREFIX}/var!" \
1154 "${FILESDIR}/${mycnf_src}" \ 1154 "${FILESDIR}/${mycnf_src}" \
1155 > "${TMPDIR}/my.cnf.ok" 1155 > "${TMPDIR}/my.cnf.ok"
1156 use prefix && sed -i -e '/^user[ ]*= mysql$/d' "${TMPDIR}/my.cnf.ok" 1156 use prefix && sed -i -r -e '/^user[[:space:]]*=[[:space:]]*mysql$/d' "${TMPDIR}/my.cnf.ok"
1157 if use latin1 ; then 1157 if use latin1 ; then
1158 sed -i \ 1158 sed -i \
1159 -e "/character-set/s|utf8|latin1|g" \ 1159 -e "/character-set/s|utf8|latin1|g" \
1160 "${TMPDIR}/my.cnf.ok" 1160 "${TMPDIR}/my.cnf.ok"
1161 fi 1161 fi

Legend:
Removed from v.1.179  
changed lines
  Added in v.1.180

  ViewVC Help
Powered by ViewVC 1.1.20