1 |
commit: b382de87fe6b3b2ea179e0924beabda13f82a2d5 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 1 20:09:48 2012 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 1 20:09:48 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=b382de87 |
7 |
|
8 |
Import v1.175 of mysql.eclass. |
9 |
|
10 |
--- |
11 |
eclass/mysql.eclass | 10 ++++++---- |
12 |
1 files changed, 6 insertions(+), 4 deletions(-) |
13 |
|
14 |
diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass |
15 |
index 731e231..f14023a 100644 |
16 |
--- a/eclass/mysql.eclass |
17 |
+++ b/eclass/mysql.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.eclass,v 1.170 2012/01/09 10:42:19 grobian Exp $ |
22 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.175 2012/09/27 16:35:41 axs Exp $ |
23 |
|
24 |
# @ECLASS: mysql.eclass |
25 |
# @MAINTAINER: |
26 |
@@ -33,7 +33,7 @@ if [[ "${MY_EXTRAS_VER}" == "live" ]]; then |
27 |
fi |
28 |
|
29 |
case "${EAPI:-0}" in |
30 |
- 2 | 3 | 4) |
31 |
+ 2|3|4|5) |
32 |
EXPORT_FUNCTIONS pkg_setup \ |
33 |
src_unpack src_prepare \ |
34 |
src_configure src_compile \ |
35 |
@@ -1304,8 +1304,10 @@ mysql_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 |