| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2013 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.62 2012/09/27 16:35:41 axs Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.63 2013/02/07 03:38:33 alexxy Exp $ |
| 4 | |
4 | |
| 5 | inherit versionator |
5 | inherit versionator |
| 6 | |
6 | |
| 7 | # @ECLASS: kde4-functions.eclass |
7 | # @ECLASS: kde4-functions.eclass |
| 8 | # @MAINTAINER: |
8 | # @MAINTAINER: |
| … | |
… | |
| 52 | # Set reponame and SCM for modules that have fully migrated to git |
52 | # Set reponame and SCM for modules that have fully migrated to git |
| 53 | # (hack - it's here because it needs to be before SCM inherits from kde4-base) |
53 | # (hack - it's here because it needs to be before SCM inherits from kde4-base) |
| 54 | if [[ ${KDE_BUILD_TYPE} == live ]]; then |
54 | if [[ ${KDE_BUILD_TYPE} == live ]]; then |
| 55 | case "${KMNAME}" in |
55 | case "${KMNAME}" in |
| 56 | kdebase-workspace) |
56 | kdebase-workspace) |
| 57 | KDE_SCM="git" |
|
|
| 58 | EGIT_REPONAME=${EGIT_REPONAME:=kde-workspace} |
57 | EGIT_REPONAME=${EGIT_REPONAME:=kde-workspace} |
| 59 | ;; |
58 | ;; |
| 60 | kdebase-runtime) |
59 | kdebase-runtime) |
| 61 | KDE_SCM="git" |
|
|
| 62 | EGIT_REPONAME=${EGIT_REPONAME:=kde-runtime} |
60 | EGIT_REPONAME=${EGIT_REPONAME:=kde-runtime} |
| 63 | ;; |
61 | ;; |
| 64 | kdebase-apps) |
62 | kdebase-apps) |
| 65 | KDE_SCM="git" |
|
|
| 66 | EGIT_REPONAME=${EGIT_REPONAME:=kde-baseapps} |
63 | EGIT_REPONAME=${EGIT_REPONAME:=kde-baseapps} |
| 67 | ;; |
|
|
| 68 | kde-workspace|kde-runtime|kde-baseapps) |
|
|
| 69 | KDE_SCM="git" |
|
|
| 70 | ;; |
64 | ;; |
| 71 | esac |
65 | esac |
| 72 | fi |
66 | fi |
| 73 | |
67 | |
| 74 | # @ECLASS-VARIABLE: KDE_SCM |
68 | # @ECLASS-VARIABLE: KDE_SCM |
| 75 | # @DESCRIPTION: |
69 | # @DESCRIPTION: |
| 76 | # If this is a live package which scm does it use |
70 | # If this is a live package which scm does it use |
| 77 | # Everything else uses svn by default |
71 | # Everything else uses git by default |
| 78 | KDE_SCM="${KDE_SCM:-svn}" |
72 | KDE_SCM="${KDE_SCM:-git}" |
| 79 | case ${KDE_SCM} in |
73 | case ${KDE_SCM} in |
| 80 | svn|git) ;; |
74 | svn|git) ;; |
| 81 | *) die "KDE_SCM: ${KDE_SCM} is not supported" ;; |
75 | *) die "KDE_SCM: ${KDE_SCM} is not supported" ;; |
| 82 | esac |
76 | esac |
| 83 | |
77 | |