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

Diff of /eclass/qt4.eclass

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

Revision 1.41 Revision 1.42
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.41 2008/06/21 15:12:48 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/qt4.eclass,v 1.42 2008/07/08 16:02:03 gentoofan23 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: Eclass for Qt4 packages 8# @BLURB: Eclass for Qt4 packages
93 for x in ${QT4_BUILT_WITH_USE_CHECK}; do 93 for x in ${QT4_BUILT_WITH_USE_CHECK}; do
94 if [[ "${QT4_MINOR_VERSION}" -ge 4 ]]; then 94 if [[ "${QT4_MINOR_VERSION}" -ge 4 ]]; then
95 # The use flags are different in 4.4 and above, and it's a split package, so this is used to catch 95 # The use flags are different in 4.4 and above, and it's a split package, so this is used to catch
96 # the various use flag combos specified in the ebuilds to make sure we don't error out. 96 # the various use flag combos specified in the ebuilds to make sure we don't error out.
97 97
98 if [[ ${x} == zlib || ${x} == png ]]; then 98
99 case ${x} in
100 zlib|png|gif)
99 # Qt 4.4+ is built with zlib and png by default, so the use flags aren't needed 101 # Qt 4.4+ is built with zlib, png, and gif by default, so the use flags aren't needed
100 continue; 102 ;;
101 elif [[ ${x} == opengl || ${x} == dbus || ${x} == qt3support ]]; then 103 opengl|dbus|qt3support)
102 # Make sure the qt-${x} package has been already installed 104 # Make sure the qt-${x} package has been already installed
103
104 if ! has_version x11-libs/qt-${x}; then 105 if ! has_version x11-libs/qt-${x}; then
105 eerror "You must first install the x11-libs/qt-${x} package." 106 eerror "You must first install the x11-libs/qt-${x} package."
106 die "Install x11-libs/qt-${x}" 107 die "Install x11-libs/qt-${x}"
107 fi 108 fi
108 elif [[ ${x} == ssl ]]; then 109 ;;
110 ssl)
109 if ! has_version x11-libs/qt-core || ! built_with_use x11-libs/qt-core ssl; then 111 if ! has_version x11-libs/qt-core || ! built_with_use x11-libs/qt-core ssl; then
110 eerror "You must first install the x11-libs/qt-core package with the ssl flag enabled." 112 eerror "You must first install the x11-libs/qt-core package with the ssl flag enabled."
111 die "Install x11-libs/qt-core with USE=\"ssl\"" 113 die "Install x11-libs/qt-core with USE=\"ssl\""
112 fi 114 fi
113 elif [[ ${x} == sqlite3 ]]; then 115 ;;
116 sqlite3)
114 if ! has_version x11-libs/qt-sql || ! built_with_use x11-libs/qt-sql sqlite; then 117 if ! has_version x11-libs/qt-sql || ! built_with_use x11-libs/qt-sql sqlite; then
115 eerror "You must first install the x11-libs/qt-sql package with the sqlite flag enabled." 118 eerror "You must first install the x11-libs/qt-sql package with the sqlite flag enabled."
116 die "Install x11-libs/qt-sql with USE=\"sqlite\"" 119 die "Install x11-libs/qt-sql with USE=\"sqlite\""
117 fi 120 fi
121 ;;
122 guiaccessibility)
123 if ! has_version x11-libs/qt-gui || ! built_with_use x11-libs/qt-gui accessibility; then
124 eerror "You must first install the x11-libs/qt-gui package with the accessibility flag enabled."
125 die "Install x11-libs/qt-gui with USE=\"accessibility\""
126 fi
127 ;;
128
129 qt3accessibility)
130 if ! has_version x11-libs/qt-qt3support || ! built_with_use x11-libs/qt-qt3support accessibility; then
131 eerror "You must first install the x11-libs/qt-qt3support package with the accessibility flag enabled."
132 die "Install x11-libs/qt-qt3support with USE=\"accessibility\""
133 fi
134 ;;
135 esac
136 else
137 ${x} == guiaccessibility && x=${x#gui}
138 ${x} == qt3accessibility && x=${x#qt3}
139 if ! built_with_use =x11-libs/qt-4* ${x}; then
140 requiredflags="${requiredflags} ${x}"
118 fi 141 fi
119 elif ! built_with_use =x11-libs/qt-4* ${x}; then
120 requiredflags="${requiredflags} ${x}"
121 fi 142 fi
122 done 143 done
123 144
124 local optionalflags="" 145 local optionalflags=""
125 for x in ${QT4_OPTIONAL_BUILT_WITH_USE_CHECK}; do 146 for x in ${QT4_OPTIONAL_BUILT_WITH_USE_CHECK}; do

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

  ViewVC Help
Powered by ViewVC 1.1.20