summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Longinotti <chtekk@gentoo.org>2006-04-12 21:15:17 +0000
committerLuca Longinotti <chtekk@gentoo.org>2006-04-12 21:15:17 +0000
commit5d22b673b2253bad77746abfb26a2c58c862ec5b (patch)
treed008632e13c921a7179bdf703c0bc1e4e9eb30fe /eclass/mysql.eclass
parentAdding ~amd64 so x86_64 users get to enjoy the goodness too (diff)
downloadhistorical-5d22b673b2253bad77746abfb26a2c58c862ec5b.tar.gz
historical-5d22b673b2253bad77746abfb26a2c58c862ec5b.tar.bz2
historical-5d22b673b2253bad77746abfb26a2c58c862ec5b.zip
Fix unneeded $ char in libdir and default back to utf8 for MySQL 5.X, as it should.
Diffstat (limited to 'eclass/mysql.eclass')
-rw-r--r--eclass/mysql.eclass18
1 files changed, 8 insertions, 10 deletions
diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass
index daef7112311e..7baa7ecef385 100644
--- a/eclass/mysql.eclass
+++ b/eclass/mysql.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.28 2006/04/11 17:23:42 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.29 2006/04/12 21:15:17 chtekk Exp $
# $ID: $
# Author: Francesco Riosa <vivo at gentoo.org>
@@ -77,7 +77,7 @@ mysql_init_vars() {
MY_SHAREDSTATEDIR=${MY_SHAREDSTATEDIR:-"/usr/share/mysql"}
MY_SYSCONFDIR=${MY_SYSCONFDIR="/etc/mysql"}
- MY_LIBDIR=${MY_LIBDIR="/usr/$(get_libdir)/mysql$"}
+ MY_LIBDIR=${MY_LIBDIR="/usr/$(get_libdir)/mysql"}
MY_LOCALSTATEDIR=${MY_LOCALSTATEDIR="/var/lib/mysql"}
MY_LOGDIR=${MY_LOGDIR="/var/log/mysql"}
MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include/mysql"}
@@ -272,14 +272,12 @@ mysql_src_compile() {
fi
fi
- if ! mysql_version_is_at_least "5.00.00.00" ; then
- if mysql_version_is_at_least "4.01.00.00" ; then
- myconf="${myconf} --with-charset=utf8"
- myconf="${myconf} --with-collation=utf8_general_ci"
- else
- myconf="${myconf} --with-charset=latin1"
- myconf="${myconf} --with-collation=latin1_swedish_ci"
- fi
+ if mysql_version_is_at_least "4.01.00.00" ; then
+ myconf="${myconf} --with-charset=utf8"
+ myconf="${myconf} --with-collation=utf8_general_ci"
+ else
+ myconf="${myconf} --with-charset=latin1"
+ myconf="${myconf} --with-collation=latin1_swedish_ci"
fi
# optional again from 2005-12-05