Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mysql:master commit in: eclass/
Date: Thu, 01 Nov 2012 20:20:30
Message-Id: 1351800444.c918372a1a510bb66f5e4ce110cbdcfc7434790b.robbat2@gentoo
1 commit: c918372a1a510bb66f5e4ce110cbdcfc7434790b
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 1 20:07:24 2012 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 1 20:07:24 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=c918372a
7
8 Import v1.19 of mysql-v2.eclass.
9
10 ---
11 eclass/mysql-v2.eclass | 10 ++++++----
12 1 files changed, 6 insertions(+), 4 deletions(-)
13
14 diff --git a/eclass/mysql-v2.eclass b/eclass/mysql-v2.eclass
15 index b515a06..4c8d635 100644
16 --- a/eclass/mysql-v2.eclass
17 +++ b/eclass/mysql-v2.eclass
18 @@ -1,6 +1,6 @@
19 # Copyright 1999-2012 Gentoo Foundation
20 # Distributed under the terms of the GNU General Public License v2
21 -# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-v2.eclass,v 1.15 2012/04/18 02:08:34 robbat2 Exp $
22 +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-v2.eclass,v 1.19 2012/09/27 16:35:41 axs Exp $
23
24 # @ECLASS: mysql-v2.eclass
25 # @MAINTAINER:
26 @@ -53,7 +53,7 @@ inherit eutils flag-o-matic gnuconfig ${MYSQL_EXTRAS} ${BUILD_INHERIT} mysql_fx
27 #
28
29 case "${EAPI:-0}" in
30 - 3|4) ;;
31 + 3|4|5) ;;
32 *) die "Unsupported EAPI: ${EAPI}" ;;
33 esac
34
35 @@ -545,8 +545,10 @@ mysql-v2_pkg_config() {
36 fi
37
38 if [[ ( -n "${MY_DATADIR}" ) && ( "${MY_DATADIR}" != "${old_MY_DATADIR}" ) ]]; then
39 - local MY_DATADIR_s="$(strip_duplicate_slashes ${ROOT}/${MY_DATADIR})"
40 - local old_MY_DATADIR_s="$(strip_duplicate_slashes ${ROOT}/${old_MY_DATADIR})"
41 + local MY_DATADIR_s="${ROOT}/${MY_DATADIR}"
42 + MY_DATADIR_s="${MY_DATADIR_s%%/}"
43 + local old_MY_DATADIR_s="${ROOT}/old_MY_DATADIR}"
44 + old_MY_DATADIR_s="${old_MY_DATADIR_s%%/}"
45
46 if [[ -d "${old_MY_DATADIR_s}" ]]; then
47 if [[ -d "${MY_DATADIR_s}" ]]; then