summaryrefslogtreecommitdiff
path: root/eclass/kde4-functions.eclass
diff options
context:
space:
mode:
authorMaciej Mrozowski <reavertm@gentoo.org>2011-02-10 20:00:55 +0100
committerMaciej Mrozowski <reavertm@gentoo.org>2011-02-10 20:03:40 +0100
commit332482ab5b2ff22136f832f5171139cccb5ef98b (patch)
tree19497ef9615c1edc6f73267d48c6758dfdec5f4d /eclass/kde4-functions.eclass
parent298fad1df1839ec400a346a9c60036a96e0b440e (diff)
downloadkde-332482ab5b2ff22136f832f5171139cccb5ef98b.tar.gz
kde-332482ab5b2ff22136f832f5171139cccb5ef98b.tar.bz2
kde-332482ab5b2ff22136f832f5171139cccb5ef98b.zip
[eclass/kde4-{base,meta}] Move kdebase 4.6 to git. A little cleanup (a'ka move stuff around for fun and profit).
Diffstat (limited to 'eclass/kde4-functions.eclass')
-rw-r--r--eclass/kde4-functions.eclass60
1 files changed, 29 insertions, 31 deletions
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass
index bc9f03f9235..60ca3ab1929 100644
--- a/eclass/kde4-functions.eclass
+++ b/eclass/kde4-functions.eclass
@@ -45,37 +45,6 @@ elif [[ ${KMNAME-${PN}} = kdevelop ]]; then
KDEBASE=kdevelop
fi
-# @ECLASS-VARIABLE: KDE_SCM
-# @DESCRIPTION:
-# If this is a live package which scm does it use
-
-# Set reponame and SCM for moduleses that have fully migrated to git
-case ${PV} in
- 9999*)
- case "${KMNAME}" in
- kdebase-workspace)
- KDE_SCM="git"
- ESCM_REPONAME=${ESCM_REPONAME:=kde-workspace}
- ;;
- kdebase-runtime)
- KDE_SCM="git"
- ESCM_REPONAME=${ESCM_REPONAME:=kde-runtime}
- ;;
- kdebase-apps)
- KDE_SCM="git"
- ESCM_REPONAME=${ESCM_REPONAME:=kde-baseapps}
- ;;
- esac
- ;;
-esac
-
-# Everything else uses svn by default
-KDE_SCM="${KDE_SCM:-svn}"
-case ${KDE_SCM} in
- svn|git) ;;
- *) die "KDE_SCM: ${KDE_SCM} is not supported" ;;
-esac
-
# @ECLASS-VARIABLE: KDE_SLOTS
# @DESCRIPTION:
# The slots used by all KDE versions later than 4.0. The live KDE releases use
@@ -95,6 +64,35 @@ else
fi
export BUILD_TYPE
+# Set reponame and SCM for moduleses that have fully migrated to git
+# (hack - it's here because it needs to be before SCM inherits from kde4-base)
+if [[ ${BUILD_TYPE} == live ]]; then
+ case "${KMNAME}" in
+ kdebase-workspace)
+ KDE_SCM="git"
+ ESCM_REPONAME=${ESCM_REPONAME:=kde-workspace}
+ ;;
+ kdebase-runtime)
+ KDE_SCM="git"
+ ESCM_REPONAME=${ESCM_REPONAME:=kde-runtime}
+ ;;
+ kdebase-apps)
+ KDE_SCM="git"
+ ESCM_REPONAME=${ESCM_REPONAME:=kde-baseapps}
+ ;;
+ esac
+fi
+
+# @ECLASS-VARIABLE: KDE_SCM
+# @DESCRIPTION:
+# If this is a live package which scm does it use
+# Everything else uses svn by default
+KDE_SCM="${KDE_SCM:-svn}"
+case ${KDE_SCM} in
+ svn|git) ;;
+ *) die "KDE_SCM: ${KDE_SCM} is not supported" ;;
+esac
+
# @ECLASS-VARIABLE: KDE_LINGUAS
# @DESCRIPTION:
# This is a whitespace-separated list of translations this ebuild supports.