/[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.128 Revision 1.131
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.128 2012/05/07 21:28:01 pesa Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.131 2012/05/25 12:06:05 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.
34 EGIT_REPO_URI="git://gitorious.org/qt/qt.git 34 EGIT_REPO_URI="git://gitorious.org/qt/qt.git
35 https://git.gitorious.org/qt/qt.git" 35 https://git.gitorious.org/qt/qt.git"
36 EGIT_BRANCH="${PV%.9999}" 36 EGIT_BRANCH="${PV%.9999}"
37 ;; 37 ;;
38 release) 38 release)
39 if version_is_at_least 4.8.1; then
40 SRC_URI="http://releases.qt-project.org/qt4/source/${MY_P}.tar.gz"
41 else
39 SRC_URI="http://get.qt.nokia.com/qt/source/${MY_P}.tar.gz" 42 SRC_URI="http://get.qt.nokia.com/qt/source/${MY_P}.tar.gz"
43 fi
40 ;; 44 ;;
41esac 45esac
42 46
43IUSE="aqua debug pch" 47IUSE="aqua debug pch"
44if [[ ${CATEGORY}/${PN} != x11-libs/qt-xmlpatterns ]]; then 48if [[ ${CATEGORY}/${PN} != x11-libs/qt-xmlpatterns ]]; then
411 conf+=" -no-separate-debug-info" 415 conf+=" -no-separate-debug-info"
412 416
413 # exceptions USE flag 417 # exceptions USE flag
414 conf+=" $(in_iuse exceptions && qt_use exceptions || echo -exceptions)" 418 conf+=" $(in_iuse exceptions && qt_use exceptions || echo -exceptions)"
415 419
416 # disable RPATH on Qt >= 4.8 (bug 380415) 420 # disable rpath on Qt >= 4.8 (bug 380415)
421 # but leave it enabled on prefix (bug 417169)
417 version_is_at_least 4.8 && conf+=" -no-rpath" 422 version_is_at_least 4.8 && use !prefix && conf+=" -no-rpath"
418 423
419 # precompiled headers don't work on hardened, where the flag is masked 424 # precompiled headers don't work on hardened, where the flag is masked
420 conf+=" $(qt_use pch)" 425 conf+=" $(qt_use pch)"
421 426
422 # -reduce-relocations 427 # -reduce-relocations
578 QTDEMOSDIR=${QTDATADIR}/demos 583 QTDEMOSDIR=${QTDATADIR}/demos
579 QMAKE_LIBDIR_QT=${QTLIBDIR} 584 QMAKE_LIBDIR_QT=${QTLIBDIR}
580 QT_INSTALL_PREFIX=${EPREFIX}/usr/$(get_libdir)/qt4 585 QT_INSTALL_PREFIX=${EPREFIX}/usr/$(get_libdir)/qt4
581 586
582 PLATFORM=$(qt_mkspecs_dir) 587 PLATFORM=$(qt_mkspecs_dir)
583
584 unset QMAKESPEC 588 unset QMAKESPEC
589
590 export XDG_CONFIG_HOME="${T}"
585} 591}
586 592
587# @FUNCTION: prepare_directories 593# @FUNCTION: prepare_directories
588# @USAGE: < directories > 594# @USAGE: < directories >
589# @INTERNAL 595# @INTERNAL

Legend:
Removed from v.1.128  
changed lines
  Added in v.1.131

  ViewVC Help
Powered by ViewVC 1.1.20