| 1 | # Copyright 1999-2009 Gentoo Foundation |
1 | # Copyright 1999-2009 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-base.eclass,v 1.49 2009/10/27 17:43:02 scarabeus Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.50 2009/10/28 14:23:43 abcd Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: kde4-base.eclass |
5 | # @ECLASS: kde4-base.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # kde@gentoo.org |
7 | # kde@gentoo.org |
| 8 | # @BLURB: This eclass provides functions for kde 4.X ebuilds |
8 | # @BLURB: This eclass provides functions for kde 4.X ebuilds |
| … | |
… | |
| 11 | # and KDE4 applications. |
11 | # and KDE4 applications. |
| 12 | # |
12 | # |
| 13 | # NOTE: KDE 4 ebuilds by default define EAPI="2", this can be redefined but |
13 | # NOTE: KDE 4 ebuilds by default define EAPI="2", this can be redefined but |
| 14 | # eclass will fail with version older than 2. |
14 | # eclass will fail with version older than 2. |
| 15 | |
15 | |
| 16 | # @ECLASS-VARIABLE: CMAKE_REQUIRED |
16 | # @ECLASS-VARIABLE: WANT_CMAKE |
| 17 | # @DESCRIPTION: |
17 | # @DESCRIPTION: |
| 18 | # Specify if cmake buildsystem is being used. Possible values are 'always' and 'never'. |
18 | # Specify if cmake buildsystem is being used. Possible values are 'always' and 'never'. |
| 19 | # Please note that if it's set to 'never' you need to explicitly override following phases: |
19 | # Please note that if it's set to 'never' you need to explicitly override following phases: |
| 20 | # src_configure, src_compile, src_test and src_install. |
20 | # src_configure, src_compile, src_test and src_install. |
| 21 | # Defaults to 'always'. |
21 | # Defaults to 'always'. |
| 22 | CMAKE_REQUIRED="${CMAKE_REQUIRED:-always}" |
22 | WANT_CMAKE="${WANT_CMAKE:-always}" |
| 23 | if [[ ${WANT_CMAKE} = false || ${WANT_CMAKE} = never ]]; then |
23 | if [[ ${WANT_CMAKE} = false || ${WANT_CMAKE} = never ]]; then |
| 24 | buildsystem_eclass="" |
24 | buildsystem_eclass="" |
| 25 | export_fns="" |
25 | export_fns="" |
| 26 | else |
26 | else |
| 27 | buildsystem_eclass="cmake-utils" |
27 | buildsystem_eclass="cmake-utils" |