diff options
author | Caleb Tennis <caleb@gentoo.org> | 2007-06-20 11:52:22 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2007-06-20 11:52:22 +0000 |
commit | 29277f83391951e63b4cf0238c310e790fb8eaba (patch) | |
tree | b9fa9eb7a752da1b2a407cb87fe620199bdf3311 /eclass/qt4.eclass | |
parent | Version bump. Dropped old version. (diff) | |
download | historical-29277f83391951e63b4cf0238c310e790fb8eaba.tar.gz historical-29277f83391951e63b4cf0238c310e790fb8eaba.tar.bz2 historical-29277f83391951e63b4cf0238c310e790fb8eaba.zip |
Add a pkg_setup check to allow easy checks to make sure Qt4 was built with certain options
Diffstat (limited to 'eclass/qt4.eclass')
-rw-r--r-- | eclass/qt4.eclass | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/eclass/qt4.eclass b/eclass/qt4.eclass index 811429ca5aef..1fc7387c556a 100644 --- a/eclass/qt4.eclass +++ b/eclass/qt4.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/qt4.eclass,v 1.15 2007/05/31 14:37:05 caleb Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/qt4.eclass,v 1.16 2007/06/20 11:52:22 caleb Exp $ # # Author Caleb Tennis <caleb@gentoo.org> # @@ -13,7 +13,7 @@ # 08.16.06 - Renamed qt_min_* to qt4_min_* to avoid conflicts with the qt3 eclass. # - Caleb Tennis <caleb@gentoo.org> -inherit versionator +inherit versionator eutils QTPKG="x11-libs/qt-" QT4MAJORVERSIONS="4.3 4.2 4.1 4.0" @@ -50,3 +50,14 @@ qt4_min_version_list() { echo "${VERSIONS}" } + +EXPORT_FUNCTIONS pkg_setup + +qt4_pkg_setup() { + for x in $QT4_BUILD_WITH_USE_CHECK; do + if !built_with_use =x11-libs/qt-4* $x; then + die "This package requires Qt4 to be built with the ${x} use flag." + fi + done + +} |