diff options
author | 2010-01-14 21:25:17 +0000 | |
---|---|---|
committer | 2010-01-14 21:25:17 +0000 | |
commit | 34f809564f7ab9a2d68826eb8ca83f666ecfdf25 (patch) | |
tree | 239d985a561bbed643355286b2a7eabf70c7b41b /eclass | |
parent | arm/x86 stable, bug #299381 (diff) | |
download | historical-34f809564f7ab9a2d68826eb8ca83f666ecfdf25.tar.gz historical-34f809564f7ab9a2d68826eb8ca83f666ecfdf25.tar.bz2 historical-34f809564f7ab9a2d68826eb8ca83f666ecfdf25.zip |
Add prefix support to qt4-r2.eclass
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/qt4-r2.eclass | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/eclass/qt4-r2.eclass b/eclass/qt4-r2.eclass index 23d326e87ab5..fa307dbdf339 100644 --- a/eclass/qt4-r2.eclass +++ b/eclass/qt4-r2.eclass @@ -1,6 +1,6 @@ -# Copyright 2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-r2.eclass,v 1.1 2009/12/15 16:32:43 ayoy Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-r2.eclass,v 1.2 2010/01/14 21:25:17 abcd Exp $ # @ECLASS: qt4-r2.eclass # @MAINTAINER: @@ -242,9 +242,11 @@ eqmake4() { fi done < <(find . -type f -name "*.pr[io]" -printf '%P\n' 2>/dev/null) - /usr/bin/qmake -makefile -nocache \ - QTDIR=/usr/$(get_libdir) \ - QMAKE=/usr/bin/qmake \ + [[ ${EAPI} == 2 ]] && use !prefix && EPREFIX= + + "${EPREFIX}"/usr/bin/qmake -makefile -nocache \ + QTDIR="${EPREFIX}"/usr/$(get_libdir) \ + QMAKE="${EPREFIX}"/usr/bin/qmake \ QMAKE_CC=$(tc-getCC) \ QMAKE_CXX=$(tc-getCXX) \ QMAKE_LINK=$(tc-getCXX) \ |