diff options
author | Caleb Tennis <caleb@gentoo.org> | 2005-06-30 13:53:07 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2005-06-30 13:53:07 +0000 |
commit | a00778f6a23403ea7cfb1cab76ee8a3b2d74a8e0 (patch) | |
tree | 875c45c349445e565a94256d02987b6edcf71a0a /eclass/qt.eclass | |
parent | 1.00.00 tree in portage. Removed old ebuilds. (diff) | |
download | gentoo-2-a00778f6a23403ea7cfb1cab76ee8a3b2d74a8e0.tar.gz gentoo-2-a00778f6a23403ea7cfb1cab76ee8a3b2d74a8e0.tar.bz2 gentoo-2-a00778f6a23403ea7cfb1cab76ee8a3b2d74a8e0.zip |
only do pkg_setup functions if Qt3 is installed
Diffstat (limited to 'eclass/qt.eclass')
-rw-r--r-- | eclass/qt.eclass | 14 |
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() { |