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

Diff of /eclass/qt4.eclass

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

Revision 1.51 Revision 1.52
1# Copyright 2005-2009 Gentoo Foundation 1# Copyright 2005-2009 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.51 2009/03/14 15:31:28 yngwin Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/qt4.eclass,v 1.52 2009/03/14 23:30:05 yngwin Exp $
4 4
5# @ECLASS: qt4.eclass 5# @ECLASS: qt4.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Ben de Groot <yngwin@gentoo.org>, 7# Ben de Groot <yngwin@gentoo.org>,
8# Markos Chandras <hwoarang@gentoo.org>, 8# Markos Chandras <hwoarang@gentoo.org>,
189 189
190# @FUNCTION: qt4_src_configure 190# @FUNCTION: qt4_src_configure
191# @DESCRIPTION: 191# @DESCRIPTION:
192# Default src_configure function for packages that depend on qt4. If you have to 192# Default src_configure function for packages that depend on qt4. If you have to
193# override src_configure in your ebuild, call qt4_src_configure in it. 193# override src_configure in your ebuild, call qt4_src_configure in it.
194qt4_src_configure() { 194#qt4_src_configure() {
195 debug-print-function $FUNCNAME "$@" 195# debug-print-function $FUNCNAME "$@"
196 eqmake4 196# eqmake4
197} 197#}
198 198
199# @FUNCTION: qt4_src_compile 199# @FUNCTION: qt4_src_compile
200# @DESCRIPTION: 200# @DESCRIPTION:
201# Default src_compile function for packages that depend on qt4. If you have to 201# Default src_compile function for packages that depend on qt4. If you have to
202# override src_compile in your ebuild (probably you don't need to), call 202# override src_compile in your ebuild (probably you don't need to), call
203# qt4_src_compile in it. 203# qt4_src_compile in it.
204qt4_src_compile() { 204#qt4_src_compile() {
205 debug-print-function $FUNCNAME "$@" 205# debug-print-function $FUNCNAME "$@"
206 case "${EAPI:-0}" in 206# case "${EAPI:-0}" in
207 2) 207# 2)
208 emake || die "emake failed" 208# emake || die "emake failed"
209 ;; 209# ;;
210 0|1) 210# 0|1)
211 qt4_src_prepare 211# qt4_src_prepare
212 qt4_src_configure 212# qt4_src_configure
213 emake || die "emake failed" 213# emake || die "emake failed"
214 ;; 214# ;;
215 esac 215# esac
216} 216#}
217 217
218# @FUNCTION: eqmake4 218# @FUNCTION: eqmake4
219# @USAGE: [.pro file] [additional parameters to qmake] 219# @USAGE: [.pro file] [additional parameters to qmake]
220# @DESCRIPTION: 220# @DESCRIPTION:
221# Runs qmake on the specified .pro file (defaults to 221# Runs qmake on the specified .pro file (defaults to
283 return ${result} 283 return ${result}
284} 284}
285 285
286case ${EAPI:-0} in 286case ${EAPI:-0} in
287 2) 287 2)
288 EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_compile 288 EXPORT_FUNCTIONS pkg_setup src_prepare
289 ;; 289 ;;
290 0|1) 290 0|1)
291 EXPORT_FUNCTIONS pkg_setup src_compile 291 EXPORT_FUNCTIONS pkg_setup
292 ;; 292 ;;
293esac 293esac

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

  ViewVC Help
Powered by ViewVC 1.1.20