summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2012-07-12 06:33:50 +1000
committerMichael Palimaka <kensington@gentoo.org>2012-07-12 06:33:50 +1000
commit76054358f88abc7439542c7773598fc8c3c0988c (patch)
treea0d53c79c80d3386dc00891c9e389e8ab73f0f9c
parent3e153ce2b417fbe3ba9ec5e220367d13902b36ee (diff)
downloadkde-76054358f88abc7439542c7773598fc8c3c0988c.tar.gz
kde-76054358f88abc7439542c7773598fc8c3c0988c.tar.bz2
kde-76054358f88abc7439542c7773598fc8c3c0988c.zip
[eclass] Add KDE prefix to BUILD_TYPE.
-rw-r--r--eclass/kde4-base.eclass20
-rw-r--r--eclass/kde4-functions.eclass10
-rw-r--r--eclass/kde4-meta.eclass6
3 files changed, 18 insertions, 18 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass
index 98b812128a9..8ea4884f569 100644
--- a/eclass/kde4-base.eclass
+++ b/eclass/kde4-base.eclass
@@ -33,7 +33,7 @@
inherit kde4-functions toolchain-funcs fdo-mime flag-o-matic gnome2-utils base virtualx versionator eutils multilib
-if [[ ${BUILD_TYPE} = live ]]; then
+if [[ ${KDE_BUILD_TYPE} = live ]]; then
case ${KDE_SCM} in
svn) inherit subversion ;;
git) inherit git-2 ;;
@@ -70,7 +70,7 @@ case ${KDEBASE} in
SLOT="2"
;;
kdevelop)
- if [[ ${BUILD_TYPE} = live ]]; then
+ if [[ ${KDE_BUILD_TYPE} = live ]]; then
# @ECLASS-VARIABLE: KDEVELOP_VERSION
# @DESCRIPTION:
# Specifies KDevelop version. Default is 4.0.0 for tagged packages and 9999 for live packages.
@@ -159,7 +159,7 @@ KDE_HANDBOOK="${KDE_HANDBOOK:-never}"
# Set this varible if you want your live package to manage its
# translations. (Mostly all kde ebuilds does not ship documentation
# and translations in live ebuilds)
-if [[ ${BUILD_TYPE} == live && -z ${KDE_LINGUAS_LIVE_OVERRIDE} ]]; then
+if [[ ${KDE_BUILD_TYPE} == live && -z ${KDE_LINGUAS_LIVE_OVERRIDE} ]]; then
# Kdebase actualy provides the handbooks even for live stuff
[[ ${KDEBASE} == kde-base ]] || KDE_HANDBOOK=never
KDE_LINGUAS=""
@@ -170,7 +170,7 @@ case ${KDEBASE} in
kde-base)
HOMEPAGE="http://www.kde.org/"
LICENSE="GPL-2"
- if [[ ${BUILD_TYPE} = live && -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then
+ if [[ ${KDE_BUILD_TYPE} = live && -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then
# Disable tests for live ebuilds by default
RESTRICT+=" test"
fi
@@ -590,7 +590,7 @@ _calculate_live_repo() {
esac
}
-case ${BUILD_TYPE} in
+case ${KDE_BUILD_TYPE} in
live) _calculate_live_repo ;;
*) _calculate_src_uri ;;
esac
@@ -662,7 +662,7 @@ kde4-base_pkg_setup() {
kde4-base_src_unpack() {
debug-print-function ${FUNCNAME} "$@"
- if [[ ${BUILD_TYPE} = live ]]; then
+ if [[ ${KDE_BUILD_TYPE} = live ]]; then
case ${KDE_SCM} in
svn)
migrate_store_dir
@@ -716,7 +716,7 @@ kde4-base_src_prepare() {
fi
# SCM bootstrap
- if [[ ${BUILD_TYPE} = live ]]; then
+ if [[ ${KDE_BUILD_TYPE} = live ]]; then
case ${KDE_SCM} in
svn) subversion_src_prepare ;;
esac
@@ -755,7 +755,7 @@ kde4-base_src_configure() {
if use_if_iuse debug; then
# Set "real" debug mode
- CMAKE_BUILD_TYPE="Debugfull"
+ CMAKE_KDE_BUILD_TYPE="Debugfull"
else
# Handle common release builds
append-cppflags -DQT_NO_DEBUG
@@ -892,7 +892,7 @@ kde4-base_pkg_preinst() {
debug-print-function ${FUNCNAME} "$@"
gnome2_icon_savelist
- if [[ ${BUILD_TYPE} == live && ${KDE_SCM} == svn ]]; then
+ if [[ ${KDE_BUILD_TYPE} == live && ${KDE_SCM} == svn ]]; then
subversion_pkg_preinst
fi
}
@@ -909,7 +909,7 @@ kde4-base_pkg_postinst() {
buildsycoca
if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then
- if [[ ${BUILD_TYPE} = live ]]; then
+ if [[ ${KDE_BUILD_TYPE} = live ]]; then
echo
einfo "WARNING! This is an experimental live ebuild of ${CATEGORY}/${PN}"
einfo "Use it at your own risk."
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass
index aa7ebb2e9e6..957ca269de0 100644
--- a/eclass/kde4-functions.eclass
+++ b/eclass/kde4-functions.eclass
@@ -46,15 +46,15 @@ fi
# determine the build type
if [[ ${PV} = *9999* ]]; then
- BUILD_TYPE="live"
+ KDE_BUILD_TYPE="live"
else
- BUILD_TYPE="release"
+ KDE_BUILD_TYPE="release"
fi
-export BUILD_TYPE
+export KDE_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
+if [[ ${KDE_BUILD_TYPE} == live ]]; then
case "${KMNAME}" in
kdebase-workspace)
KDE_SCM="git"
@@ -93,7 +93,7 @@ esac
# this for you.
#
# Example: KDE_LINGUAS="en_GB de nl"
-if [[ ${BUILD_TYPE} != live || -n ${KDE_LINGUAS_LIVE_OVERRIDE} ]]; then
+if [[ ${KDE_BUILD_TYPE} != live || -n ${KDE_LINGUAS_LIVE_OVERRIDE} ]]; then
for _lingua in ${KDE_LINGUAS}; do
IUSE="${IUSE} linguas_${_lingua}"
done
diff --git a/eclass/kde4-meta.eclass b/eclass/kde4-meta.eclass
index 2f311f04028..161416490de 100644
--- a/eclass/kde4-meta.eclass
+++ b/eclass/kde4-meta.eclass
@@ -69,7 +69,7 @@ debug-print "line ${LINENO} ${ECLASS}: DEPEND ${DEPEND} - after metapackage-spec
debug-print "line ${LINENO} ${ECLASS}: RDEPEND ${RDEPEND} - after metapackage-specific dependencies"
# Useful to build kde4-meta style stuff from extragear/playground (plasmoids etc)
-case ${BUILD_TYPE} in
+case ${KDE_BUILD_TYPE} in
live)
if [[ ${KDE_SCM} == svn ]]; then
case ${KMNAME} in
@@ -147,7 +147,7 @@ kde4-meta_pkg_setup() {
kde4-meta_src_unpack() {
debug-print-function ${FUNCNAME} "$@"
- if [[ ${BUILD_TYPE} = live ]]; then
+ if [[ ${KDE_BUILD_TYPE} = live ]]; then
case "${KDE_SCM}" in
svn)
migrate_store_dir
@@ -173,7 +173,7 @@ kde4-meta_src_unpack() {
kde4-meta_src_extract() {
debug-print-function ${FUNCNAME} "$@"
- if [[ ${BUILD_TYPE} = live ]]; then
+ if [[ ${KDE_BUILD_TYPE} = live ]]; then
# Export working copy to ${S}
einfo "Exporting parts of working copy to ${S}"
kde4-meta_create_extractlists