summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2012-03-01 15:19:14 +0000
committerDavide Pesavento <pesa@gentoo.org>2012-03-01 15:19:14 +0000
commita8c718fd5cc195ec310006ce746e5c1c99fa567d (patch)
tree27420b29b325f5cba75eef37d5c7491991773a16 /eclass/qt4-build.eclass
parentVersion bump ipdb to 0.6.1 for bug 402805. (diff)
downloadgentoo-2-a8c718fd5cc195ec310006ce746e5c1c99fa567d.tar.gz
gentoo-2-a8c718fd5cc195ec310006ce746e5c1c99fa567d.tar.bz2
gentoo-2-a8c718fd5cc195ec310006ce746e5c1c99fa567d.zip
Cleanup qt_mkspecs_dir().
Diffstat (limited to 'eclass/qt4-build.eclass')
-rw-r--r--eclass/qt4-build.eclass23
1 files changed, 12 insertions, 11 deletions
diff --git a/eclass/qt4-build.eclass b/eclass/qt4-build.eclass
index 71d5cd616a6c..5fde72782c5b 100644
--- a/eclass/qt4-build.eclass
+++ b/eclass/qt4-build.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.121 2012/03/01 15:06:00 pesa Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.122 2012/03/01 15:19:14 pesa Exp $
# @ECLASS: qt4-build.eclass
# @MAINTAINER:
@@ -753,7 +753,8 @@ qt_use() {
# Allows us to define which mkspecs dir we want to use.
qt_mkspecs_dir() {
local spec=
- case ${CHOST} in
+
+ case "${CHOST}" in
*-freebsd*|*-dragonfly*)
spec=freebsd ;;
*-openbsd*)
@@ -774,17 +775,17 @@ qt_mkspecs_dir() {
*-linux-*|*-linux)
spec=linux ;;
*)
- die "Unknown CHOST, no platform chosen"
+ die "${FUNCNAME}(): Unknown CHOST '${CHOST}'" ;;
esac
- CXX=$(tc-getCXX)
- if [[ ${CXX} == *g++* ]]; then
- spec+=-g++
- elif [[ ${CXX} == *icpc* ]]; then
- spec+=-icc
- else
- die "Unknown compiler '${CXX}'"
- fi
+ case "$(tc-getCXX)" in
+ *g++*)
+ spec+=-g++ ;;
+ *icpc*)
+ spec+=-icc ;;
+ *)
+ die "${FUNCNAME}(): Unknown compiler '$(tc-getCXX)'" ;;
+ esac
# Add -64 for 64bit profiles
if use x64-freebsd ||