From 21435953e16cda318a82334ddbadb3b5c36d9ea7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 15 Jan 2020 15:51:32 +0000 Subject: gentoo resync : 15.01.2020 --- eclass/ecm.eclass | 46 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 14 deletions(-) (limited to 'eclass/ecm.eclass') diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass index 1616df9aab57..2892b0e0e942 100644 --- a/eclass/ecm.eclass +++ b/eclass/ecm.eclass @@ -13,7 +13,7 @@ # upstream release groups (Frameworks, Plasma, Applications) but also for any # other package that follows similar conventions. # -# This eclass unconditionally inherits cmake-utils.eclass and all its public +# This eclass unconditionally inherits cmake.eclass and all its public # variables and helper functions (not phase functions) may be considered as part # of this eclass's API. # @@ -49,7 +49,7 @@ if [[ ${CATEGORY} = kde-frameworks ]] ; then fi : ${ECM_NONGUI:=false} -inherit cmake-utils flag-o-matic toolchain-funcs virtualx +inherit cmake flag-o-matic toolchain-funcs virtualx if [[ ${ECM_NONGUI} = false ]] ; then inherit xdg @@ -74,7 +74,7 @@ EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_test pkg_preinst pkg_po # @ECLASS-VARIABLE: ECM_DEBUG # @DESCRIPTION: -# Add "debug" to IUSE. If !debug, add -DNDEBUG (via cmake-utils_src_configure) +# Add "debug" to IUSE. If !debug, add -DNDEBUG (via cmake_src_configure) # and -DQT_NO_DEBUG to CPPFLAGS. If set to "false", do nothing. : ${ECM_DEBUG:=true} @@ -310,6 +310,24 @@ DEPEND+=" ${COMMONDEPEND}" RDEPEND+=" ${COMMONDEPEND}" unset COMMONDEPEND +# @FUNCTION: _ecm_banned_var +# @INTERNAL +# @DESCRIPTION: +# Banned kde5*.eclass variables are banned. +_ecm_banned_var() { + die "$1 is banned. use $2 instead." +} + +if [[ -z ${_KDE5_ECLASS} ]] ; then + [[ -n ${KDE_DEBUG} ]] && _ecm_banned_var KDE_DEBUG ECM_DEBUG + [[ -n ${KDE_EXAMPLES} ]] && _ecm_banned_var KDE_EXAMPLES ECM_EXAMPLES + [[ -n ${KDE_HANDBOOK} ]] && _ecm_banned_var KDE_HANDBOOK ECM_HANDBOOK + [[ -n ${KDE_DOC_DIR} ]] && _ecm_banned_var KDE_DOC_DIR ECM_HANDBOOK_DIR + [[ -n ${KDE_PO_DIRS} ]] && _ecm_banned_var KDE_PO_DIRS ECM_PO_DIRS + [[ -n ${KDE_QTHELP} ]] && _ecm_banned_var KDE_QTHELP ECM_QTHELP + [[ -n ${KDE_TEST} ]] && _ecm_banned_var KDE_TEST ECM_TEST +fi + # @ECLASS-VARIABLE: KDE_GCC_MINIMAL # @DEFAULT_UNSET # @DESCRIPTION: @@ -418,12 +436,12 @@ ecm_pkg_setup() { # @FUNCTION: ecm_src_prepare # @DESCRIPTION: -# Wrapper for cmake-utils_src_prepare with lots of extra logic for magic +# Wrapper for cmake_src_prepare with lots of extra logic for magic # handling of linguas, tests, handbook etc. ecm_src_prepare() { debug-print-function ${FUNCNAME} "$@" - cmake-utils_src_prepare + cmake_src_prepare # only build examples when required if ! { in_iuse examples && use examples; } ; then @@ -499,12 +517,12 @@ ecm_src_prepare() { # @FUNCTION: ecm_src_configure # @DESCRIPTION: -# Wrapper for cmake-utils_src_configure with extra logic for magic handling of +# Wrapper for cmake_src_configure with extra logic for magic handling of # handbook, tests etc. ecm_src_configure() { debug-print-function ${FUNCNAME} "$@" - # we rely on cmake-utils.eclass to append -DNDEBUG too + # we rely on cmake.eclass to append -DNDEBUG too if in_iuse debug && ! use debug; then append-cppflags -DQT_NO_DEBUG fi @@ -548,22 +566,22 @@ ecm_src_configure() { # allow the ebuild to override what we set here mycmakeargs=("${cmakeargs[@]}" "${mycmakeargs[@]}") - cmake-utils_src_configure + cmake_src_configure } # @FUNCTION: ecm_src_compile # @DESCRIPTION: -# Wrapper for cmake-utils_src_compile. Currently doesn't do anything extra, but +# Wrapper for cmake_src_compile. Currently doesn't do anything extra, but # is included as part of the API just in case it's needed in the future. ecm_src_compile() { debug-print-function ${FUNCNAME} "$@" - cmake-utils_src_compile "$@" + cmake_src_compile "$@" } # @FUNCTION: ecm_src_test # @DESCRIPTION: -# Wrapper for cmake-utils_src_test with extra logic for magic handling of dbus +# Wrapper for cmake_src_test with extra logic for magic handling of dbus # and virtualx. ecm_src_test() { debug-print-function ${FUNCNAME} "$@" @@ -573,7 +591,7 @@ ecm_src_test() { export $(dbus-launch) fi - cmake-utils_src_test + cmake_src_test } # When run as normal user during ebuild development with the ebuild command, @@ -595,12 +613,12 @@ ecm_src_test() { # @FUNCTION: ecm_src_install # @DESCRIPTION: -# Wrapper for cmake-utils_src_install. Currently doesn't do anything extra, but +# Wrapper for cmake_src_install. Currently doesn't do anything extra, but # is included as part of the API just in case it's needed in the future. ecm_src_install() { debug-print-function ${FUNCNAME} "$@" - cmake-utils_src_install + cmake_src_install } # @FUNCTION: ecm_pkg_preinst -- cgit v1.2.3