summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorCaleb Tennis <caleb@gentoo.org>2005-06-30 13:53:07 +0000
committerCaleb Tennis <caleb@gentoo.org>2005-06-30 13:53:07 +0000
commit4f62fe6553424725eb2ebf9087da8eaaf89e6e35 (patch)
tree68b53c65d41c73e0418fddd5238ddd197c3e1478 /eclass
parent1.00.00 tree in portage. Removed old ebuilds. (diff)
downloadhistorical-4f62fe6553424725eb2ebf9087da8eaaf89e6e35.tar.gz
historical-4f62fe6553424725eb2ebf9087da8eaaf89e6e35.tar.bz2
historical-4f62fe6553424725eb2ebf9087da8eaaf89e6e35.zip
only do pkg_setup functions if Qt3 is installed
Diffstat (limited to 'eclass')
-rw-r--r--eclass/qt.eclass14
1 files changed, 8 insertions, 6 deletions
diff --git a/eclass/qt.eclass b/eclass/qt.eclass
index 464f31662be7..12fe71b987a8 100644
--- a/eclass/qt.eclass
+++ b/eclass/qt.eclass
@@ -1,6 +1,6 @@
# Copyright 2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt.eclass,v 1.8 2005/06/30 13:46:22 caleb Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt.eclass,v 1.9 2005/06/30 13:53:07 caleb Exp $
#
# Author Caleb Tennis <caleb@gentoo.org>
#
@@ -24,12 +24,14 @@ QT3VERSIONS="3.3.4-r5 3.3.4-r4 3.3.4-r3 3.3.4-r2 3.3.4-r1 3.3.4 3.3.3-r3 3.3.3-r
QT4VERSIONS="4.0.0"
qt_pkg_setup() {
- if [ ! $QTDIR ]; then
- QTDIR="/usr/qt/3"
- fi
+ if has_version =x11-libs/qt-3*; then
+ if [ ! $QTDIR ]; then
+ QTDIR="/usr/qt/3"
+ fi
- [ -d "$QTDIR/etc/settings" ] && addwrite "$QTDIR/etc/settings"
- addpredict "$QTDIR/etc/settings"
+ [ -d "$QTDIR/etc/settings" ] && addwrite "$QTDIR/etc/settings"
+ addpredict "$QTDIR/etc/settings"
+ fi
}
qt_min_version() {