| 1 | # Copyright 1999-2008 Gentoo Foundation |
1 | # Copyright 1999-2008 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/kde4-functions.eclass,v 1.6 2008/05/15 19:49:32 ingmar Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.7 2008/05/17 14:09:03 zlin Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: kde4-functions.eclass |
5 | # @ECLASS: kde4-functions.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # kde@gentoo.org |
7 | # kde@gentoo.org |
| 8 | # @BLURB: Common ebuild functions for monolithic and split KDE 4 packages |
8 | # @BLURB: Common ebuild functions for monolithic and split KDE 4 packages |
| … | |
… | |
| 502 | # If any of the required USE flags are missing, an eerror will be printed for |
502 | # If any of the required USE flags are missing, an eerror will be printed for |
| 503 | # each package with missing USE flags. |
503 | # each package with missing USE flags. |
| 504 | kde4-functions_check_use() { |
504 | kde4-functions_check_use() { |
| 505 | # I like to keep flags sorted |
505 | # I like to keep flags sorted |
| 506 | QT4_BUILT_WITH_USE_CHECK=$(echo "${QT4_BUILT_WITH_USE_CHECK}" | \ |
506 | QT4_BUILT_WITH_USE_CHECK=$(echo "${QT4_BUILT_WITH_USE_CHECK}" | \ |
| 507 | tr '[:space:]' '\n' | sort | xargs) |
507 | tr '[:space:]' '\n' | sort | uniq | xargs) |
| 508 | |
508 | |
| 509 | local line missing |
509 | local line missing |
| 510 | if [[ -n ${KDE4_BUILT_WITH_USE_CHECK[@]} && $(declare -p KDE4_BUILT_WITH_USE_CHECK) = 'declare -a '* ]]; then |
510 | if [[ -n ${KDE4_BUILT_WITH_USE_CHECK[@]} && $(declare -p KDE4_BUILT_WITH_USE_CHECK) = 'declare -a '* ]]; then |
| 511 | KDE4_BUILT_WITH_USE_CHECK=("x11-libs/qt:4 ${QT4_BUILT_WITH_USE_CHECK}" |
511 | KDE4_BUILT_WITH_USE_CHECK=("x11-libs/qt:4 ${QT4_BUILT_WITH_USE_CHECK}" |
| 512 | "${KDE4_BUILT_WITH_USE_CHECK[@]}") |
512 | "${KDE4_BUILT_WITH_USE_CHECK[@]}") |