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

Diff of /eclass/mysql.eclass

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

Revision 1.22 Revision 1.23
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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.22 2006/03/03 09:28:58 vivo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.23 2006/03/09 12:37:01 vivo Exp $
4 4
5# Author: Francesco Riosa <vivo at gentoo.org> 5# Author: Francesco Riosa <vivo at gentoo.org>
6# Maintainer: Francesco Riosa <vivo at gentoo.org> 6# Maintainer: Francesco Riosa <vivo at gentoo.org>
7 7
8inherit eutils flag-o-matic gnuconfig autotools mysql_fx 8inherit eutils flag-o-matic gnuconfig autotools mysql_fx
20SRC_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/${NEWP}.tar.gz 20SRC_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/${NEWP}.tar.gz
21 mirror://gentoo/mysql-extras-${MY_EXTRAS_VER}.tar.bz2" 21 mirror://gentoo/mysql-extras-${MY_EXTRAS_VER}.tar.bz2"
22LICENSE="GPL-2" 22LICENSE="GPL-2"
23IUSE="big-tables berkdb debug embedded minimal perl selinux srvdir ssl static" 23IUSE="big-tables berkdb debug embedded minimal perl selinux srvdir ssl static"
24RESTRICT="primaryuri confcache" 24RESTRICT="primaryuri confcache"
25DEPEND="app-admin/eselect-mysql"
26 25
27mysql_version_is_at_least "4.01.03.00" \ 26mysql_version_is_at_least "4.01.03.00" \
28&& IUSE="${IUSE} cluster extraengine" 27&& IUSE="${IUSE} cluster extraengine"
29 28
30mysql_version_is_at_least "5.00.00.00" \ 29mysql_version_is_at_least "5.00.00.00" \
337 336
338 if mysql_version_is_at_least "5.01.05.00" ; then 337 if mysql_version_is_at_least "5.01.05.00" ; then
339 myconf="${myconf} --with-row-based-replication" 338 myconf="${myconf} --with-row-based-replication"
340 fi 339 fi
341 340
341 #TODO rechek again later, had problem with assembler enabled
342 # and some combination of use-flags with 5.1
343 if mysql_check_version_range "5.01.00.00 to 5.01.08.99" ; then
344 myconf="${myconf} --disable-assembler"
345 else
346 myconf="${myconf} --enable-assembler"
347 fi
348
342 #Bug #114895,Bug #110149 349 #Bug #114895,Bug #110149
343 filter-flags "-O" "-O[01]" 350 filter-flags "-O" "-O[01]"
344 #glibc-2.3.2_pre fix; bug #16496 351 #glibc-2.3.2_pre fix; bug #16496
345 append-flags "-DHAVE_ERRNO_AS_DEFINE=1" 352 append-flags "-DHAVE_ERRNO_AS_DEFINE=1"
346 353
357 --localstatedir="${MY_LOCALSTATEDIR}" \ 364 --localstatedir="${MY_LOCALSTATEDIR}" \
358 --sharedstatedir="${MY_SHAREDSTATEDIR}" \ 365 --sharedstatedir="${MY_SHAREDSTATEDIR}" \
359 --libdir="${MY_LIBDIR}" \ 366 --libdir="${MY_LIBDIR}" \
360 --includedir="${MY_INCLUDEDIR}" \ 367 --includedir="${MY_INCLUDEDIR}" \
361 --with-low-memory \ 368 --with-low-memory \
362 --enable-assembler \
363 --enable-local-infile \ 369 --enable-local-infile \
364 --with-mysqld-user=mysql \ 370 --with-mysqld-user=mysql \
365 --with-client-ldflags=-lstdc++ \ 371 --with-client-ldflags=-lstdc++ \
366 --enable-thread-safe-client \ 372 --enable-thread-safe-client \
367 --with-comment="Gentoo Linux ${PF}" \ 373 --with-comment="Gentoo Linux ${PF}" \

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20