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

Diff of /eclass/mysql.eclass

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

Revision 1.119 Revision 1.120
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.119 2009/12/09 18:45:46 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.120 2009/12/09 18:46:53 robbat2 Exp $
4 4
5# @ECLASS: mysql.eclass 5# @ECLASS: mysql.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Author: Francesco Riosa (Retired) <vivo@gentoo.org> 7# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
8# Maintainers: MySQL Team <mysql-bugs@gentoo.org> 8# Maintainers: MySQL Team <mysql-bugs@gentoo.org>
89 MYSQL_COMMUNITY_FEATURES=1 89 MYSQL_COMMUNITY_FEATURES=1
90else 90else
91 MYSQL_COMMUNITY_FEATURES=0 91 MYSQL_COMMUNITY_FEATURES=0
92fi 92fi
93 93
94# @ECLASS-VARIABLE: XTRADB_VER
95# @DESCRIPTION:
96# Version of the XTRADB storage engine
97XTRADB_VER="${XTRADB_VER}"
98
99# @ECLASS-VARIABLE: PERCONA_VER
100# @DESCRIPTION:
101# Designation by PERCONA for a MySQL version to apply an XTRADB release
102PERCONA_VER="${PERCONA_VER}"
103
94# Be warned, *DEPEND are version-dependant 104# Be warned, *DEPEND are version-dependant
95# These are used for both runtime and compiletime 105# These are used for both runtime and compiletime
96DEPEND="ssl? ( >=dev-libs/openssl-0.9.6d ) 106DEPEND="ssl? ( >=dev-libs/openssl-0.9.6d )
97 userland_GNU? ( sys-process/procps ) 107 userland_GNU? ( sys-process/procps )
98 >=sys-apps/sed-4 108 >=sys-apps/sed-4
139SRC_URI="${SERVER_URI}" 149SRC_URI="${SERVER_URI}"
140 150
141[[ ${MY_EXTRAS_VER} != live ]] && SRC_URI="${SRC_URI} 151[[ ${MY_EXTRAS_VER} != live ]] && SRC_URI="${SRC_URI}
142 mirror://gentoo/mysql-extras-${MY_EXTRAS_VER}.tar.bz2 152 mirror://gentoo/mysql-extras-${MY_EXTRAS_VER}.tar.bz2
143 http://g3nt8.org/patches/mysql-extras-${MY_EXTRAS_VER}.tar.bz2" 153 http://g3nt8.org/patches/mysql-extras-${MY_EXTRAS_VER}.tar.bz2"
154PBXT_SRC_URI="mirror://sourceforge/pbxt/pbxt-${PBXT_VERSION}.tar.gz"
144mysql_version_is_at_least "5.1.12" \ 155mysql_version_is_at_least "5.1.12" \
145&& [[ -n "${PBXT_VERSION}" ]] \ 156&& [[ -n "${PBXT_VERSION}" ]] \
146&& SRC_URI="${SRC_URI} pbxt? ( mirror://sourceforge/pbxt/pbxt-${PBXT_VERSION}.tar.gz )" 157&& SRC_URI="${SRC_URI} pbxt? ( ${PBXT_SRC_URIPBXT_SRC_URI} )"
158
159# Get the percona tarball if XTRADB_VER and PERCONA_VER are both set
160XTRADB_SRC_URI="http://www.percona.com/${PN}/xtradb/${PERCONA_VER}/source/percona-xtradb-${XTRADB_VER}.tar.gz"
161mysql_version_is_at_least "5.1.26" \
162&& [[ -n ${XTRADB_VER} && -n ${PERCONA_VER} ]] \
163&& SRC_URI="${SRC_URI} xtradb? ( ${XTRADB_SRC_URI} )"
147 164
148DESCRIPTION="A fast, multi-threaded, multi-user SQL database server." 165DESCRIPTION="A fast, multi-threaded, multi-user SQL database server."
149HOMEPAGE="http://www.mysql.com/" 166HOMEPAGE="http://www.mysql.com/"
150LICENSE="GPL-2" 167LICENSE="GPL-2"
151SLOT="0" 168SLOT="0"
167|| IUSE="${IUSE} berkdb" 184|| IUSE="${IUSE} berkdb"
168 185
169mysql_version_is_at_least "5.1.12" \ 186mysql_version_is_at_least "5.1.12" \
170&& IUSE="${IUSE} pbxt" 187&& IUSE="${IUSE} pbxt"
171 188
189mysql_version_is_at_least "5.1.26" \
190&& IUSE="${IUSE} xtradb"
191
172[ "${MYSQL_COMMUNITY_FEATURES}" == "1" ] \ 192[ "${MYSQL_COMMUNITY_FEATURES}" == "1" ] \
173&& IUSE="${IUSE} ${IUSE_DEFAULT_ON}community profiling" 193&& IUSE="${IUSE} ${IUSE_DEFAULT_ON}community profiling"
174
175 194
176# 195#
177# HELPER FUNCTIONS: 196# HELPER FUNCTIONS:
178# 197#
179 198

Legend:
Removed from v.1.119  
changed lines
  Added in v.1.120

  ViewVC Help
Powered by ViewVC 1.1.20