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 | 0cf16d42b31cc31dbab93528e8f70897567e9854 (patch) | |
tree | b6ea880fcf9ed525c07a6056c6da3ad52ebda814 /eclass | |
parent | Version bump. Dropped old version. (diff) | |
download | gentoo-2-0cf16d42b31cc31dbab93528e8f70897567e9854.tar.gz gentoo-2-0cf16d42b31cc31dbab93528e8f70897567e9854.tar.bz2 gentoo-2-0cf16d42b31cc31dbab93528e8f70897567e9854.zip |
Add a pkg_setup check to allow easy checks to make sure Qt4 was built with certain options
Diffstat (limited to '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 + +} |