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

Diff of /eclass/mysql.eclass

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

Revision 1.106 Revision 1.107
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.eclass,v 1.106 2009/02/11 11:29:48 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.107 2009/02/28 10:49:50 robbat2 Exp $
4 4
5# Author: Francesco Riosa (Retired) <vivo@gentoo.org> 5# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
6# Maintainer: MySQL Team <mysql-bugs@gentoo.org> 6# Maintainer: MySQL Team <mysql-bugs@gentoo.org>
7# - Luca Longinotti <chtekk@gentoo.org> 7# - Luca Longinotti <chtekk@gentoo.org>
8# - Robin H. Johnson <robbat2@gentoo.org> 8# - Robin H. Johnson <robbat2@gentoo.org>
72mysql_version_is_at_least "5.1" \ 72mysql_version_is_at_least "5.1" \
73|| DEPEND="${DEPEND} berkdb? ( sys-apps/ed )" 73|| DEPEND="${DEPEND} berkdb? ( sys-apps/ed )"
74 74
75# compile-time-only 75# compile-time-only
76mysql_version_is_at_least "5.1.12" \ 76mysql_version_is_at_least "5.1.12" \
77&& DEPEND="${DEPEND} innodb? ( >=dev-util/cmake-2.4.3 )" 77&& DEPEND="${DEPEND} >=dev-util/cmake-2.4.3"
78 78
79# BitKeeper dependency, compile-time only 79# BitKeeper dependency, compile-time only
80[[ ${IS_BITKEEPER} -eq 90 ]] && DEPEND="${DEPEND} dev-util/bk_client" 80[[ ${IS_BITKEEPER} -eq 90 ]] && DEPEND="${DEPEND} dev-util/bk_client"
81 81
82 82
122mysql_version_is_at_least "5.0" \ 122mysql_version_is_at_least "5.0" \
123|| IUSE="${IUSE} raid" 123|| IUSE="${IUSE} raid"
124 124
125mysql_version_is_at_least "5.0.18" \ 125mysql_version_is_at_least "5.0.18" \
126&& IUSE="${IUSE} max-idx-128" 126&& IUSE="${IUSE} max-idx-128"
127
128mysql_version_is_at_least "5.1" \
129&& IUSE="${IUSE} innodb"
130 127
131mysql_version_is_at_least "5.1" \ 128mysql_version_is_at_least "5.1" \
132|| IUSE="${IUSE} berkdb" 129|| IUSE="${IUSE} berkdb"
133 130
134mysql_version_is_at_least "5.1.12" \ 131mysql_version_is_at_least "5.1.12" \
439 436
440 elog "Before using the Federated storage engine, please be sure to read" 437 elog "Before using the Federated storage engine, please be sure to read"
441 elog "http://dev.mysql.com/doc/refman/5.1/en/federated-limitations.html" 438 elog "http://dev.mysql.com/doc/refman/5.1/en/federated-limitations.html"
442 fi 439 fi
443 440
444 if use innodb ; then 441 # Upstream specifically requests that InnoDB always be built.
445 plugins="${plugins},innobase" 442 plugins="${plugins},innobase"
446 fi
447 443
448 # like configuration=max-no-ndb 444 # like configuration=max-no-ndb
449 if use cluster ; then 445 if use cluster ; then
450 plugins="${plugins},ndbcluster" 446 plugins="${plugins},ndbcluster"
451 myconf="${myconf} --with-ndb-binlog" 447 myconf="${myconf} --with-ndb-binlog"
582 local rebuilddirlist d 578 local rebuilddirlist d
583 579
584 if mysql_version_is_at_least "5.1.12" ; then 580 if mysql_version_is_at_least "5.1.12" ; then
585 rebuilddirlist="." 581 rebuilddirlist="."
586 # TODO: check this with a cmake expert 582 # TODO: check this with a cmake expert
587 use innodb \
588 && cmake \ 583 cmake \
589 -DCMAKE_C_COMPILER=$(type -P $(tc-getCC)) \ 584 -DCMAKE_C_COMPILER=$(type -P $(tc-getCC)) \
590 -DCMAKE_CXX_COMPILER=$(type -P $(tc-getCXX)) \ 585 -DCMAKE_CXX_COMPILER=$(type -P $(tc-getCXX)) \
591 "storage/innobase" 586 "storage/innobase"
592 else 587 else
593 rebuilddirlist=". innobase" 588 rebuilddirlist=". innobase"

Legend:
Removed from v.1.106  
changed lines
  Added in v.1.107

  ViewVC Help
Powered by ViewVC 1.1.20