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

Diff of /eclass/qt4.eclass

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

Revision 1.54 Revision 1.55
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.54 2009/05/09 14:59:03 hwoarang Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/qt4.eclass,v 1.55 2009/05/12 10:35:32 hwoarang 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>,
270 END { 270 END {
271 printf "CONFIG -= debug_and_release %s\n", rem >> file; 271 printf "CONFIG -= debug_and_release %s\n", rem >> file;
272 printf "CONFIG += %s\n", add >> file; 272 printf "CONFIG += %s\n", add >> file;
273 print fixed; 273 print fixed;
274 }' 274 }'
275 local file= 275 local filepath=
276 while read file; do 276 while read filepath; do
277 local file="${filepath#./}"
277 grep -q '^### eqmake4 was here ###$' "${file}" && continue 278 grep -q '^### eqmake4 was here ###$' "${file}" && continue
278 local retval=$({ 279 local retval=$({
279 rm -f "${file}" || echo "FAILED" 280 rm -f "${file}" || echo "FAILED"
280 awk -v file="${file}" -- "${awkscript}" add=${CONFIG_ADD} rem=${CONFIG_REMOVE} || echo "FAILED" 281 awk -v file="${file}" -- "${awkscript}" add=${CONFIG_ADD} rem=${CONFIG_REMOVE} || echo "FAILED"
281 } < "${file}") 282 } < "${file}")
283 einfo " Fixed CONFIG in ${file}" 284 einfo " Fixed CONFIG in ${file}"
284 elif [[ ${retval} != 0 ]]; then 285 elif [[ ${retval} != 0 ]]; then
285 eerror " An error occurred while processing ${file}" 286 eerror " An error occurred while processing ${file}"
286 die "eqmake4 failed to process '${file}'." 287 die "eqmake4 failed to process '${file}'."
287 fi 288 fi
288 done < <(find "$(dirname "${projectfile}")" -type f -name "*.pr[io]" -printf '%P\n' 2>/dev/null) 289 done < <(find "$(dirname "${projectfile}")" -type f -name "*.pr[io]" 2>/dev/null)
289 290
290 /usr/bin/qmake -makefile -nocache \ 291 /usr/bin/qmake -makefile -nocache \
291 QTDIR=/usr/$(get_libdir) \ 292 QTDIR=/usr/$(get_libdir) \
292 QMAKE=/usr/bin/qmake \ 293 QMAKE=/usr/bin/qmake \
293 QMAKE_CC=$(tc-getCC) \ 294 QMAKE_CC=$(tc-getCC) \

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

  ViewVC Help
Powered by ViewVC 1.1.20