| 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.53 2009/11/25 19:51:11 tampakrap 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 |
| … | |
… | |
| 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 | CMAKE_REQUIRED="${CMAKE_REQUIRED:-${CMAKE_REQUIRED:-always}}" |
| 23 | if [[ ${WANT_CMAKE} = false || ${WANT_CMAKE} = never ]]; then |
23 | if [[ ${CMAKE_REQUIRED} = false || ${CMAKE_REQUIRED} = 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" |
| 28 | export_fns="src_configure src_compile src_test src_install" |
28 | export_fns="src_configure src_compile src_test src_install" |
| … | |
… | |
| 365 | esac |
365 | esac |
| 366 | ;; |
366 | ;; |
| 367 | koffice) |
367 | koffice) |
| 368 | case ${PV} in |
368 | case ${PV} in |
| 369 | 2.0.[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/src/${_kmname_pv}.tar.bz2" ;; |
369 | 2.0.[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/src/${_kmname_pv}.tar.bz2" ;; |
| 370 | *) SRC_URI="mirror://kde/stable/${_kmname_pv}/src/${_kmname_pv}.tar.bz2" ;; |
370 | *) SRC_URI="mirror://kde/stable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;; |
| 371 | esac |
371 | esac |
| 372 | esac |
372 | esac |
| 373 | unset _kmname _kmname_pv |
373 | unset _kmname _kmname_pv |
| 374 | fi |
374 | fi |
| 375 | ;; |
375 | ;; |