| 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.17 2009/04/19 10:23:07 scarabeus Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.18 2009/05/09 13:23:15 scarabeus 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 KDE 4 packages |
8 | # @BLURB: Common ebuild functions for KDE 4 packages |
| … | |
… | |
| 163 | |
163 | |
| 164 | # @FUNCTION: get_build_type |
164 | # @FUNCTION: get_build_type |
| 165 | # @DESCRIPTION: |
165 | # @DESCRIPTION: |
| 166 | # Determine whether we are using live ebuild or tbzs. |
166 | # Determine whether we are using live ebuild or tbzs. |
| 167 | get_build_type() { |
167 | get_build_type() { |
| 168 | if [[ ${SLOT} = live || ${PV} = 9999* ]]; then |
168 | if [[ ${SLOT} = live || ${PV} = *9999* ]]; then |
| 169 | BUILD_TYPE="live" |
169 | BUILD_TYPE="live" |
| 170 | else |
170 | else |
| 171 | BUILD_TYPE="release" |
171 | BUILD_TYPE="release" |
| 172 | fi |
172 | fi |
| 173 | export BUILD_TYPE |
173 | export BUILD_TYPE |