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

Diff of /eclass/mysql.eclass

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

Revision 1.32 Revision 1.35
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/mysql.eclass,v 1.32 2006/05/31 20:45:49 chtekk Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.35 2006/10/13 22:13:34 chtekk Exp $
4 4
5# Author: Francesco Riosa <vivo@gentoo.org> 5# Author: Francesco Riosa <vivo@gentoo.org>
6# Maintainer: Luca Longinotti <chtekk@gentoo.org> 6# Maintainer: Luca Longinotti <chtekk@gentoo.org>
7 7
8# Both MYSQL_VERSION_ID and MYSQL_PATCHSET_REV must be set in the ebuild too 8# Both MYSQL_VERSION_ID and MYSQL_PATCHSET_REV must be set in the ebuild too
49MY_FIXED_PV="${PV/_alpha/}" 49MY_FIXED_PV="${PV/_alpha/}"
50MY_FIXED_PV="${MY_FIXED_PV/_beta/}" 50MY_FIXED_PV="${MY_FIXED_PV/_beta/}"
51MY_FIXED_PV="${MY_FIXED_PV/_rc/}" 51MY_FIXED_PV="${MY_FIXED_PV/_rc/}"
52 52
53# Define correct SRC_URIs 53# Define correct SRC_URIs
54SRC_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/${P/_/-}.tar.gz" 54SRC_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/${P/_/-}${MYSQL_RERELEASE}.tar.gz"
55if [[ -n "${MYSQL_PATCHSET_REV}" ]] ; then 55if [[ -n "${MYSQL_PATCHSET_REV}" ]] ; then
56 MYSQL_PATCHSET_FILENAME="${PN}-patchset-${MY_FIXED_PV}-r${MYSQL_PATCHSET_REV}.tar.bz2" 56 MYSQL_PATCHSET_FILENAME="${PN}-patchset-${MY_FIXED_PV}-r${MYSQL_PATCHSET_REV}.tar.bz2"
57 # We add the Gentoo mirror here, as we only use primaryuri for the MySQL tarball 57 # We add the Gentoo mirror here, as we only use primaryuri for the MySQL tarball
58 SRC_URI="${SRC_URI} mirror://gentoo/${MYSQL_PATCHSET_FILENAME} http://gentoo.longitekk.com/${MYSQL_PATCHSET_FILENAME}" 58 SRC_URI="${SRC_URI} http://gentoo.longitekk.com/${MYSQL_PATCHSET_FILENAME}"
59fi 59fi
60 60
61DESCRIPTION="A fast, multi-threaded, multi-user SQL database server." 61DESCRIPTION="A fast, multi-threaded, multi-user SQL database server."
62HOMEPAGE="http://www.mysql.com/" 62HOMEPAGE="http://www.mysql.com/"
63SLOT="0" 63SLOT="0"
64LICENSE="GPL-2" 64LICENSE="GPL-2"
65IUSE="big-tables berkdb debug embedded minimal perl selinux srvdir ssl static" 65IUSE="big-tables berkdb debug embedded minimal perl selinux srvdir ssl static"
66RESTRICT="primaryuri confcache" 66RESTRICT="confcache"
67 67
68mysql_version_is_at_least "4.01.00.00" \ 68mysql_version_is_at_least "4.01.00.00" \
69&& IUSE="${IUSE} latin1" 69&& IUSE="${IUSE} latin1"
70 70
71mysql_version_is_at_least "4.01.03.00" \ 71mysql_version_is_at_least "4.01.03.00" \
169 # Initialize the proper variables first 169 # Initialize the proper variables first
170 mysql_init_vars 170 mysql_init_vars
171 171
172 unpack ${A} 172 unpack ${A}
173 173
174 mv -f "${WORKDIR}/${P/_/-}" "${S}" 174 mv -f "${WORKDIR}/${P/_/-}${MYSQL_RERELEASE}" "${S}"
175 cd "${S}" 175 cd "${S}"
176 176
177 # Apply the patches for this MySQL version 177 # Apply the patches for this MySQL version
178 if [[ -d "${WORKDIR}/${MY_FIXED_PV}" ]] ; then 178 if [[ -d "${WORKDIR}/${MY_FIXED_PV}" ]] ; then
179 EPATCH_SOURCE="${WORKDIR}/${MY_FIXED_PV}" EPATCH_SUFFIX="patch" epatch 179 EPATCH_SOURCE="${WORKDIR}/${MY_FIXED_PV}" EPATCH_SUFFIX="patch" epatch
408 408
409 # glib-2.3.2_pre fix, bug #16496 409 # glib-2.3.2_pre fix, bug #16496
410 append-flags "-DHAVE_ERRNO_AS_DEFINE=1" 410 append-flags "-DHAVE_ERRNO_AS_DEFINE=1"
411 411
412 # The compiler flags are as their "official" spec says ;) 412 # The compiler flags are as their "official" spec says ;)
413 # CFLAGS="${CFLAGS/-O?/} -O3" 413 append-flags "-fno-exceptions -fno-strict-aliasing"
414 export CXXFLAGS="${CXXFLAGS} -felide-constructors -fno-exceptions -fno-rtti" 414 CXXFLAGS="${CXXFLAGS} -felide-constructors -fno-rtti"
415 mysql_version_is_at_least "5.00.00.00" \ 415 mysql_version_is_at_least "5.00.00.00" \
416 && export CXXFLAGS="${CXXFLAGS} -fno-implicit-templates" 416 && CXXFLAGS="${CXXFLAGS} -fno-implicit-templates"
417 export CXXFLAGS="${CXXFLAGS}"
417 418
418 econf \ 419 econf \
419 --libexecdir="/usr/sbin" \ 420 --libexecdir="/usr/sbin" \
420 --sysconfdir="${MY_SYSCONFDIR}" \ 421 --sysconfdir="${MY_SYSCONFDIR}" \
421 --localstatedir="${MY_LOCALSTATEDIR}" \ 422 --localstatedir="${MY_LOCALSTATEDIR}" \

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.35

  ViewVC Help
Powered by ViewVC 1.1.20