/[gentoo-x86]/eclass/qt4.eclass
Gentoo

Diff of /eclass/qt4.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.32 Revision 1.36
1# Copyright 2005 Gentoo Foundation 1# Copyright 2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/qt4.eclass,v 1.32 2008/01/05 18:44:38 caleb Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/qt4.eclass,v 1.36 2008/02/26 01:11:13 flameeyes Exp $
4 4
5# @ECLASS: qt4.eclass 5# @ECLASS: qt4.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Caleb Tennis <caleb@gentoo.org> 7# Caleb Tennis <caleb@gentoo.org>
8# @BLURB: 8# @BLURB:
16 16
17inherit eutils multilib toolchain-funcs versionator 17inherit eutils multilib toolchain-funcs versionator
18 18
19QTPKG="x11-libs/qt-" 19QTPKG="x11-libs/qt-"
20QT4MAJORVERSIONS="4.4 4.3 4.2 4.1 4.0" 20QT4MAJORVERSIONS="4.4 4.3 4.2 4.1 4.0"
21QT4VERSIONS="4.4.0_rc1 4.3.3 4.3.2-r1 4.3.2 4.3.1-r1 4.3.1 4.3.0-r2 4.3.0-r1 4.3.0 4.3.0_rc1 4.3.0_beta1 4.2.3-r1 4.2.3 4.2.2 4.2.1 4.2.0-r2 4.2.0-r1 4.2.0 4.1.4-r2 4.1.4-r1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.0.1 4.0.0" 21QT4VERSIONS="4.4.0_rc1 4.3.4 4.3.3 4.3.2-r1 4.3.2 4.3.1-r1 4.3.1 4.3.0-r2 4.3.0-r1 4.3.0 4.3.0_rc1 4.3.0_beta1 4.2.3-r1 4.2.3 4.2.2 4.2.1 4.2.0-r2 4.2.0-r1 4.2.0 4.1.4-r2 4.1.4-r1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.0.1 4.0.0"
22 22
23# @FUNCTION: qt4_min_version 23# @FUNCTION: qt4_min_version
24# @USAGE: [minimum version] 24# @USAGE: [minimum version]
25# @DESCRIPTION: 25# @DESCRIPTION:
26# This function should be called in package DEPENDs whenever it depends on qt4. 26# This function should be called in package DEPENDs whenever it depends on qt4.
102 die "Install x11-libs/qt-${x}" 102 die "Install x11-libs/qt-${x}"
103 fi 103 fi
104 elif [[ ${x} == ssl ]]; then 104 elif [[ ${x} == ssl ]]; then
105 if ! has_version x11-libs/qt-core || ! built_with_use x11-libs/qt-core ssl; then 105 if ! has_version x11-libs/qt-core || ! built_with_use x11-libs/qt-core ssl; then
106 eerror "You must first install the x11-libs/qt-core package with the ssl flag enabled." 106 eerror "You must first install the x11-libs/qt-core package with the ssl flag enabled."
107 die "Install x1-libs/qt-core with USE=\"ssl\"" 107 die "Install x11-libs/qt-core with USE=\"ssl\""
108 fi 108 fi
109 elif [[ ${x} == sqlite3 ]]; then 109 elif [[ ${x} == sqlite3 ]]; then
110 if ! has_version x11-libs/qt-sql || ! built_with_use x11-libs/qt-sql sqlite; then 110 if ! has_version x11-libs/qt-sql || ! built_with_use x11-libs/qt-sql sqlite; then
111 eerror "You must first install the x11-libs/qt-sql package with the sqlite flag enabled." 111 eerror "You must first install the x11-libs/qt-sql package with the sqlite flag enabled."
112 die "Install x11-libs/qt-sql with USE="\sqlite\"" 112 die "Install x11-libs/qt-sql with USE=\"sqlite\""
113 fi 113 fi
114 fi 114 fi
115 elif ! built_with_use =x11-libs/qt-4* ${x}; then 115 elif ! built_with_use =x11-libs/qt-4* ${x}; then
116 requiredflags="${requiredflags} ${x}" 116 requiredflags="${requiredflags} ${x}"
117 fi 117 fi
199 QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \ 199 QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
200 QMAKE_CXXFLAGS_DEBUG="${CXXFLAGS}" \ 200 QMAKE_CXXFLAGS_DEBUG="${CXXFLAGS}" \
201 QMAKE_LFLAGS_RELEASE="${LDFLAGS}" \ 201 QMAKE_LFLAGS_RELEASE="${LDFLAGS}" \
202 QMAKE_LFLAGS_DEBUG="${LDFLAGS}" \ 202 QMAKE_LFLAGS_DEBUG="${LDFLAGS}" \
203 QMAKE_RPATH= \ 203 QMAKE_RPATH= \
204 ${@} >> ${LOGFILE} 2>&1 204 "${@}" >> ${LOGFILE} 2>&1
205 205
206 local result=$? 206 local result=$?
207 eend ${result} 207 eend ${result}
208 208
209 # was qmake successful? 209 # was qmake successful?

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.36

  ViewVC Help
Powered by ViewVC 1.1.20