summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorCaleb Tennis <caleb@gentoo.org>2007-12-22 17:32:55 +0000
committerCaleb Tennis <caleb@gentoo.org>2007-12-22 17:32:55 +0000
commit07a2e7a64c1002c27dc125ad06030ca02bdb9257 (patch)
tree4d9788fbad0d0e3abd2c7734ae0ee7093504cc93 /eclass
parentInitial commit. This should be usable for both ESX server, workstation, play... (diff)
downloadgentoo-2-07a2e7a64c1002c27dc125ad06030ca02bdb9257.tar.gz
gentoo-2-07a2e7a64c1002c27dc125ad06030ca02bdb9257.tar.bz2
gentoo-2-07a2e7a64c1002c27dc125ad06030ca02bdb9257.zip
spaces to tabs
Diffstat (limited to 'eclass')
-rw-r--r--eclass/qt4-build.eclass102
1 files changed, 51 insertions, 51 deletions
diff --git a/eclass/qt4-build.eclass b/eclass/qt4-build.eclass
index 731728700774..1e9eb2e117fc 100644
--- a/eclass/qt4-build.eclass
+++ b/eclass/qt4-build.eclass
@@ -1,6 +1,6 @@
# Copyright 2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.4 2007/12/22 16:28:59 caleb Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.5 2007/12/22 17:32:55 caleb Exp $
# @ECLASS: qt4-build.eclass
# @MAINTAINER:
@@ -17,21 +17,21 @@ IUSE="${IUSE} debug"
qt4-build_pkg_setup() {
# Set up installation directories
- QTBASEDIR=/usr/$(get_libdir)/qt4
- QTPREFIXDIR=/usr
- QTBINDIR=/usr/bin
- QTLIBDIR=/usr/$(get_libdir)/qt4
- QTPCDIR=/usr/$(get_libdir)/pkgconfig
- QTDATADIR=/usr/share/qt4
- QTDOCDIR=/usr/share/doc/${PF}
- QTHEADERDIR=/usr/include/qt4
- QTPLUGINDIR=${QTLIBDIR}/plugins
- QTSYSCONFDIR=/etc/qt4
- QTTRANSDIR=${QTDATADIR}/translations
- QTEXAMPLESDIR=${QTDATADIR}/examples
- QTDEMOSDIR=${QTDATADIR}/demos
-
- PLATFORM=$(qt_mkspecs_dir)
+ QTBASEDIR=/usr/$(get_libdir)/qt4
+ QTPREFIXDIR=/usr
+ QTBINDIR=/usr/bin
+ QTLIBDIR=/usr/$(get_libdir)/qt4
+ QTPCDIR=/usr/$(get_libdir)/pkgconfig
+ QTDATADIR=/usr/share/qt4
+ QTDOCDIR=/usr/share/doc/${PF}
+ QTHEADERDIR=/usr/include/qt4
+ QTPLUGINDIR=${QTLIBDIR}/plugins
+ QTSYSCONFDIR=/etc/qt4
+ QTTRANSDIR=${QTDATADIR}/translations
+ QTEXAMPLESDIR=${QTDATADIR}/examples
+ QTDEMOSDIR=${QTDATADIR}/demos
+
+ PLATFORM=$(qt_mkspecs_dir)
PATH="${S}/bin:${PATH}"
LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}"
@@ -143,46 +143,46 @@ fix_library_files() {
}
qt_use() {
- local flag="$1"
- local feature="$1"
- local enableval=
+ local flag="$1"
+ local feature="$1"
+ local enableval=
- [[ -n $2 ]] && feature=$2
- [[ -n $3 ]] && enableval="-$3"
+ [[ -n $2 ]] && feature=$2
+ [[ -n $3 ]] && enableval="-$3"
- useq $flag && echo "${enableval}-${feature}" || echo "-no-${feature}"
- return 0
+ useq $flag && echo "${enableval}-${feature}" || echo "-no-${feature}"
+ return 0
}
qt_mkspecs_dir() {
- # Allows us to define which mkspecs dir we want to use.
- local spec
-
- case ${CHOST} in
- *-freebsd*|*-dragonfly*)
- spec="freebsd" ;;
- *-openbsd*)
- spec="openbsd" ;;
- *-netbsd*)
- spec="netbsd" ;;
- *-darwin*)
- spec="darwin" ;;
- *-linux-*|*-linux)
- spec="linux" ;;
- *)
- die "Unknown CHOST, no platform choosed."
- esac
-
- CXX=$(tc-getCXX)
- if [[ ${CXX/g++/} != ${CXX} ]]; then
- spec="${spec}-g++"
- elif [[ ${CXX/icpc/} != ${CXX} ]]; then
- spec="${spec}-icc"
- else
- die "Unknown compiler ${CXX}."
- fi
-
- echo "${spec}"
+ # Allows us to define which mkspecs dir we want to use.
+ local spec
+
+ case ${CHOST} in
+ *-freebsd*|*-dragonfly*)
+ spec="freebsd" ;;
+ *-openbsd*)
+ spec="openbsd" ;;
+ *-netbsd*)
+ spec="netbsd" ;;
+ *-darwin*)
+ spec="darwin" ;;
+ *-linux-*|*-linux)
+ spec="linux" ;;
+ *)
+ die "Unknown CHOST, no platform choosed."
+ esac
+
+ CXX=$(tc-getCXX)
+ if [[ ${CXX/g++/} != ${CXX} ]]; then
+ spec="${spec}-g++"
+ elif [[ ${CXX/icpc/} != ${CXX} ]]; then
+ spec="${spec}-icc"
+ else
+ die "Unknown compiler ${CXX}."
+ fi
+
+ echo "${spec}"
}
EXPORT_FUNCTIONS pkg_setup src_unpack src_install