| 1 | # Copyright 2005 Gentoo Foundation |
1 | # Copyright 2005 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/Attic/qt4.eclass,v 1.16 2007/06/20 11:52:22 caleb Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/Attic/qt4.eclass,v 1.17 2007/06/20 11:53:07 caleb Exp $ |
| 4 | # |
4 | # |
| 5 | # Author Caleb Tennis <caleb@gentoo.org> |
5 | # Author Caleb Tennis <caleb@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass is simple. Inherit it, and in your depend, do something like this: |
7 | # This eclass is simple. Inherit it, and in your depend, do something like this: |
| 8 | # |
8 | # |
| … | |
… | |
| 52 | } |
52 | } |
| 53 | |
53 | |
| 54 | EXPORT_FUNCTIONS pkg_setup |
54 | EXPORT_FUNCTIONS pkg_setup |
| 55 | |
55 | |
| 56 | qt4_pkg_setup() { |
56 | qt4_pkg_setup() { |
| 57 | for x in $QT4_BUILD_WITH_USE_CHECK; do |
57 | for x in $QT4_BUILT_WITH_USE_CHECK; do |
| 58 | if !built_with_use =x11-libs/qt-4* $x; then |
58 | if !built_with_use =x11-libs/qt-4* $x; then |
| 59 | die "This package requires Qt4 to be built with the ${x} use flag." |
59 | die "This package requires Qt4 to be built with the ${x} use flag." |
| 60 | fi |
60 | fi |
| 61 | done |
61 | done |
| 62 | |
62 | |