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

Diff of /eclass/qt4.eclass

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

Revision 1.60 Revision 1.61
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.60 2009/11/21 11:44:25 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/qt4.eclass,v 1.61 2010/01/14 21:15:22 abcd 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>,
201# file only, unless you have strong reasons to do things differently. 201# file only, unless you have strong reasons to do things differently.
202# During the building, qmake will be automatically re-invoked with the 202# During the building, qmake will be automatically re-invoked with the
203# right arguments on every directory specified inside the top-level 203# right arguments on every directory specified inside the top-level
204# project file by the SUBDIRS variable. 204# project file by the SUBDIRS variable.
205eqmake4() { 205eqmake4() {
206 has "${EAPI:-0}" 0 1 2 && use !prefix && EPREFIX=
207
206 local projectfile="${1:-${PN}.pro}" 208 local projectfile="${1:-${PN}.pro}"
207 shift 209 shift
208 210
209 if [[ ! -f ${projectfile} ]]; then 211 if [[ ! -f ${projectfile} ]]; then
210 echo 212 echo
262 eerror " An error occurred while processing ${file}" 264 eerror " An error occurred while processing ${file}"
263 die "eqmake4 failed to process '${file}'." 265 die "eqmake4 failed to process '${file}'."
264 fi 266 fi
265 done < <(find "$(dirname "${projectfile}")" -type f -name "*.pr[io]" 2>/dev/null) 267 done < <(find "$(dirname "${projectfile}")" -type f -name "*.pr[io]" 2>/dev/null)
266 268
267 /usr/bin/qmake -makefile -nocache \ 269 "${EPREFIX}"/usr/bin/qmake -makefile -nocache \
268 QTDIR=/usr/$(get_libdir) \ 270 QTDIR="${EPREFIX}"/usr/$(get_libdir) \
269 QMAKE=/usr/bin/qmake \ 271 QMAKE="${EPREFIX}"/usr/bin/qmake \
270 QMAKE_CC=$(tc-getCC) \ 272 QMAKE_CC=$(tc-getCC) \
271 QMAKE_CXX=$(tc-getCXX) \ 273 QMAKE_CXX=$(tc-getCXX) \
272 QMAKE_LINK=$(tc-getCXX) \ 274 QMAKE_LINK=$(tc-getCXX) \
273 QMAKE_CFLAGS_RELEASE="${CFLAGS}" \ 275 QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
274 QMAKE_CFLAGS_DEBUG="${CFLAGS}" \ 276 QMAKE_CFLAGS_DEBUG="${CFLAGS}" \
292 294
293 return 0 295 return 0
294} 296}
295 297
296case ${EAPI:-0} in 298case ${EAPI:-0} in
297 2) 299 2|3)
298 EXPORT_FUNCTIONS pkg_setup src_prepare 300 EXPORT_FUNCTIONS pkg_setup src_prepare
299 ;; 301 ;;
300 0|1) 302 0|1)
301 EXPORT_FUNCTIONS pkg_setup 303 EXPORT_FUNCTIONS pkg_setup
302 ;; 304 ;;

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61

  ViewVC Help
Powered by ViewVC 1.1.20