summaryrefslogtreecommitdiff
path: root/eclass/kde4-functions.eclass
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-02-01 16:21:55 +0100
committerTomas Chvatal <scarabeus@gentoo.org>2011-02-01 16:21:55 +0100
commit0d9e3dfec4a8dd3a537ee61adcc68585351078d6 (patch)
tree50b4e6f5149f6a6dfc076f9dc7d00c81b4e9223a /eclass/kde4-functions.eclass
parent6deeaccd8f5472908dd618811b5d53d488ca57a2 (diff)
downloadkde-0d9e3dfec4a8dd3a537ee61adcc68585351078d6.tar.gz
kde-0d9e3dfec4a8dd3a537ee61adcc68585351078d6.tar.bz2
kde-0d9e3dfec4a8dd3a537ee61adcc68585351078d6.zip
Properly hide the linguas when using live eubild.
Diffstat (limited to 'eclass/kde4-functions.eclass')
-rw-r--r--eclass/kde4-functions.eclass48
1 files changed, 23 insertions, 25 deletions
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass
index 2af4cbfb22b..db698f0017f 100644
--- a/eclass/kde4-functions.eclass
+++ b/eclass/kde4-functions.eclass
@@ -65,6 +65,29 @@ KDE_SLOTS=( "4.1" "4.2" "4.3" "4.4" "4.5" "4.6" )
# The slots used by KDE live versions. Values should be ordered.
KDE_LIVE_SLOTS=( "live" )
+# determine the build type
+if [[ ${SLOT} = live || ${PV} = *9999* ]]; then
+ BUILD_TYPE="live"
+else
+ BUILD_TYPE="release"
+fi
+export BUILD_TYPE
+
+# @ECLASS-VARIABLE: KDE_LINGUAS
+# @DESCRIPTION:
+# This is a whitespace-separated list of translations this ebuild supports.
+# These translations are automatically added to IUSE. Therefore ebuilds must set
+# this variable before inheriting any eclasses. To enable only selected
+# translations, ebuilds must call enable_selected_linguas(). kde4-{base,meta}.eclass does
+# this for you.
+#
+# Example: KDE_LINGUAS="en_GB de nl"
+if [[ ${BUILD_TYPE} != live || -n ${KDE_LINGUAS_LIVE_OVERRIDE} ]]; then
+ for _lingua in ${KDE_LINGUAS}; do
+ IUSE="${IUSE} linguas_${_lingua}"
+ done
+fi
+
# @FUNCTION: slot_is_at_least
# @USAGE: <want> <have>
# @DESCRIPTION:
@@ -115,19 +138,6 @@ comment_all_add_subdirectory() {
|| die "${LINENO}: Initial sed died"
}
-# @ECLASS-VARIABLE: KDE_LINGUAS
-# @DESCRIPTION:
-# This is a whitespace-separated list of translations this ebuild supports.
-# These translations are automatically added to IUSE. Therefore ebuilds must set
-# this variable before inheriting any eclasses. To enable only selected
-# translations, ebuilds must call enable_selected_linguas(). kde4-{base,meta}.eclass does
-# this for you.
-#
-# Example: KDE_LINGUAS="en_GB de nl"
-for _lingua in ${KDE_LINGUAS}; do
- IUSE="${IUSE} linguas_${_lingua}"
-done
-
# @FUNCTION: enable_selected_linguas
# @DESCRIPTION:
# Enable translations based on LINGUAS settings and translations supported by
@@ -210,18 +220,6 @@ enable_selected_doc_linguas() {
[[ -n "${linguas}" ]] && einfo "Enabling handbook translations:${linguas}"
}
-# @FUNCTION: get_build_type
-# @DESCRIPTION:
-# Determine whether we are using live ebuild or tbzs.
-get_build_type() {
- if [[ ${SLOT} = live || ${PV} = *9999* ]]; then
- BUILD_TYPE="live"
- else
- BUILD_TYPE="release"
- fi
- export BUILD_TYPE
-}
-
# @FUNCTION: migrate_store_dir
# @DESCRIPTION:
# Universal store dir migration