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

Diff of /eclass/mysql.eclass

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

Revision 1.75 Revision 1.78
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.75 2007/04/25 18:22:37 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.78 2007/05/11 08:25:11 robbat2 Exp $
4 4
5# Author: Francesco Riosa (Retired) <vivo@gentoo.org> 5# Author: Francesco Riosa (Retired) <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!
327 myconf="${myconf} $(use_with ssl)" 327 myconf="${myconf} $(use_with ssl)"
328 else 328 else
329 myconf="${myconf} $(use_with ssl openssl)" 329 myconf="${myconf} $(use_with ssl openssl)"
330 fi 330 fi
331 331
332 if use berkdb ; then
332 # The following fix is due to a bug with bdb on SPARC's. See: 333 # The following fix is due to a bug with bdb on SPARC's. See:
333 # http://www.geocrawler.com/mail/msg.php3?msg_id=4754814&list=8 334 # http://www.geocrawler.com/mail/msg.php3?msg_id=4754814&list=8
334 # It comes down to non-64-bit safety problems. 335 # It comes down to non-64-bit safety problems.
335 if use alpha || use amd64 || use hppa || use mips || use sparc ; then 336 if use alpha || use amd64 || use hppa || use mips || use sparc ; then
336 elog "Berkeley DB support was disabled due to incompatible arch" 337 elog "Berkeley DB support was disabled due to compatibility issues on this arch"
338 myconf="${myconf} --without-berkeley-db"
339 else
340 myconf="${myconf} --with-berkeley-db=./bdb"
341 fi
342 else
337 myconf="${myconf} --without-berkeley-db" 343 myconf="${myconf} --without-berkeley-db"
338 else
339 if use berkdb ; then
340 myconf="${myconf} --with-berkeley-db=./bdb"
341 else
342 myconf="${myconf} --without-berkeley-db"
343 fi
344 fi 344 fi
345 345
346 if mysql_version_is_at_least "4.1.3" ; then 346 if mysql_version_is_at_least "4.1.3" ; then
347 myconf="${myconf} --with-geometry" 347 myconf="${myconf} --with-geometry"
348 myconf="${myconf} $(use_with cluster ndbcluster)" 348 myconf="${myconf} $(use_with cluster ndbcluster)"
673 done 673 done
674 fi 674 fi
675 675
676 # Docs 676 # Docs
677 dodoc README COPYING ChangeLog EXCEPTIONS-CLIENT INSTALL-SOURCE 677 dodoc README COPYING ChangeLog EXCEPTIONS-CLIENT INSTALL-SOURCE
678 doinfo ${S}/Docs/mysql.info
678 679
679 # Minimal builds don't have the MySQL server 680 # Minimal builds don't have the MySQL server
680 if ! use minimal ; then 681 if ! use minimal ; then
681 docinto "support-files" 682 docinto "support-files"
682 for script in \ 683 for script in \
689 690
690 docinto "scripts" 691 docinto "scripts"
691 for script in scripts/mysql* ; do 692 for script in scripts/mysql* ; do
692 [[ "${script%.sh}" == "${script}" ]] && dodoc "${script}" 693 [[ "${script%.sh}" == "${script}" ]] && dodoc "${script}"
693 done 694 done
695
694 fi 696 fi
695 697
696 mysql_lib_symlinks "${D}" 698 mysql_lib_symlinks "${D}"
697} 699}
698 700

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.78

  ViewVC Help
Powered by ViewVC 1.1.20