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

Diff of /eclass/mysql.eclass

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

Revision 1.58 Revision 1.59
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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.58 2007/01/04 20:38:16 vivo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/mysql.eclass,v 1.59 2007/01/05 00:07:23 vivo Exp $
4# kate: encoding utf-8; eol unix; 4# kate: encoding utf-8; eol unix;
5# kate: indent-width 4; mixedindent off; remove-trailing-space on; space-indent off; 5# kate: indent-width 4; mixedindent off; remove-trailing-space on; space-indent off;
6# kate: word-wrap-column 80; word-wrap off; 6# kate: word-wrap-column 80; word-wrap off;
7 7
8# Author: Francesco Riosa (Retired) <vivo@gentoo.org> 8# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
10 10
11# Note that MYSQL_VERSION_ID must be empty !!! 11# Note that MYSQL_VERSION_ID must be empty !!!
12 12
13ECLASS="mysql" 13ECLASS="mysql"
14INHERITED="$INHERITED $ECLASS" 14INHERITED="$INHERITED $ECLASS"
15WANT_AUTOCONF="latest"
16WANT_AUTOMAKE="latest"
15inherit eutils flag-o-matic gnuconfig autotools mysql_fx 17inherit eutils flag-o-matic gnuconfig autotools mysql_fx
18
19# Shorten the path because the socket path length must be shorter than 107 chars
20# and we will run a mysql server during test phase
21S="${WORKDIR}/mysql"
16 22
17# avoid running userspace code 8 times per ebuild :( 23# avoid running userspace code 8 times per ebuild :(
18if [[ "${_MYPVR}" != "${PVR}" ]] && [[ -n "${PVR}" ]] 24if [[ "${_MYPVR}" != "${PVR}" ]] && [[ -n "${PVR}" ]]
19then 25then
20 _MYPVR=${PVR} 26 _MYPVR=${PVR}
21 27
22 [[ "${MY_EXTRAS_VER}" == "latest" ]] && MY_EXTRAS_VER="20070104" 28 [[ "${MY_EXTRAS_VER}" == "latest" ]] && MY_EXTRAS_VER="20070105"
23 29
24 if [[ ${PR#r} -lt 60 ]] ; then 30 if [[ ${PR#r} -lt 60 ]] ; then
25 IS_BITKEEPER=0 31 IS_BITKEEPER=0
26 elif [[ ${PR#r} -lt 90 ]] ; then 32 elif [[ ${PR#r} -lt 90 ]] ; then
27 IS_BITKEEPER=60 33 IS_BITKEEPER=60
66 PDEPEND="perl? ( >=dev-perl/DBD-mysql-2.9004 )" 72 PDEPEND="perl? ( >=dev-perl/DBD-mysql-2.9004 )"
67 73
68 if mysql_version_is_at_least "5.1.12" ; then 74 if mysql_version_is_at_least "5.1.12" ; then
69 DEPEND="${DEPEND} innodb? ( >=dev-util/cmake-2.4.3 )" 75 DEPEND="${DEPEND} innodb? ( >=dev-util/cmake-2.4.3 )"
70 fi 76 fi
71
72 # Shorten the path because the socket path length must be shorter than 107 chars
73 # and we will run a mysql server during test phase
74 S="${WORKDIR}/mysql"
75 77
76 # BitKeeper dependency, compile-time only 78 # BitKeeper dependency, compile-time only
77 [[ ${IS_BITKEEPER} -eq 90 ]] && DEPEND="${DEPEND} dev-util/bk_client" 79 [[ ${IS_BITKEEPER} -eq 90 ]] && DEPEND="${DEPEND} dev-util/bk_client"
78 80
79 if [[ ${PN} == "mysql-slotted" ]] ; then 81 if [[ ${PN} == "mysql-slotted" ]] ; then

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

  ViewVC Help
Powered by ViewVC 1.1.20