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

Diff of /eclass/qt4-build.eclass

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

Revision 1.127 Revision 1.129
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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/qt4-build.eclass,v 1.127 2012/05/02 17:09:17 pesa Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.129 2012/05/20 17:12:34 pesa Exp $
4 4
5# @ECLASS: qt4-build.eclass 5# @ECLASS: qt4-build.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Qt herd <qt@gentoo.org> 7# Qt herd <qt@gentoo.org>
8# @BLURB: Eclass for Qt4 split ebuilds. 8# @BLURB: Eclass for Qt4 split ebuilds.
281 sed -i -e "/bin\/qmake/ s: \"QT_BUILD_TREE=: \ 281 sed -i -e "/bin\/qmake/ s: \"QT_BUILD_TREE=: \
282 'QMAKE_CC=$(tc-getCC)' 'QMAKE_CXX=$(tc-getCXX)' 'QMAKE_LINK=$(tc-getCXX)' \ 282 'QMAKE_CC=$(tc-getCC)' 'QMAKE_CXX=$(tc-getCXX)' 'QMAKE_LINK=$(tc-getCXX)' \
283 'QMAKE_CFLAGS+=${CFLAGS}' 'QMAKE_CXXFLAGS+=${CXXFLAGS}' 'QMAKE_LFLAGS+=${LDFLAGS}'&:" \ 283 'QMAKE_CFLAGS+=${CFLAGS}' 'QMAKE_CXXFLAGS+=${CXXFLAGS}' 'QMAKE_LFLAGS+=${LDFLAGS}'&:" \
284 || die "sed config.tests failed" 284 || die "sed config.tests failed"
285 285
286 if ! version_is_at_least 4.8; then
286 # Strip predefined CFLAGS from mkspecs (bug 312689) 287 # Strip predefined CFLAGS from mkspecs (bugs 312689 and 352778)
287 sed -i -e '/^QMAKE_CFLAGS_RELEASE/s:+=.*:+=:' mkspecs/common/g++.conf || die 288 sed -i -e '/^QMAKE_CFLAGS_RELEASE/s:+=.*:+=:' mkspecs/common/g++.conf || die
289 fi
288 290
289 # Bug 172219 291 # Bug 172219
290 sed -e 's:/X11R6/:/:' -i mkspecs/$(qt_mkspecs_dir)/qmake.conf || die 292 sed -e 's:/X11R6/:/:' -i mkspecs/$(qt_mkspecs_dir)/qmake.conf || die
291 293
292 if [[ ${CHOST} == *-darwin* ]]; then 294 if [[ ${CHOST} == *-darwin* ]]; then
576 QTDEMOSDIR=${QTDATADIR}/demos 578 QTDEMOSDIR=${QTDATADIR}/demos
577 QMAKE_LIBDIR_QT=${QTLIBDIR} 579 QMAKE_LIBDIR_QT=${QTLIBDIR}
578 QT_INSTALL_PREFIX=${EPREFIX}/usr/$(get_libdir)/qt4 580 QT_INSTALL_PREFIX=${EPREFIX}/usr/$(get_libdir)/qt4
579 581
580 PLATFORM=$(qt_mkspecs_dir) 582 PLATFORM=$(qt_mkspecs_dir)
581
582 unset QMAKESPEC 583 unset QMAKESPEC
584
585 export XDG_CONFIG_HOME="${T}"
583} 586}
584 587
585# @FUNCTION: prepare_directories 588# @FUNCTION: prepare_directories
586# @USAGE: < directories > 589# @USAGE: < directories >
587# @INTERNAL 590# @INTERNAL

Legend:
Removed from v.1.127  
changed lines
  Added in v.1.129

  ViewVC Help
Powered by ViewVC 1.1.20