diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-09-07 15:10:24 +0200 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-11-10 15:51:17 +0100 |
| commit | 066cee3cfc8d5c235f0139c56f38c3ab92bad487 (patch) | |
| tree | 30b0376e2742566c0f96106346dfaf25824f015d /eclass | |
| parent | f297fea9c5cfd56eef17cbcef56528a6e49a1430 (diff) | |
| download | kde-066cee3cfc8d5c235f0139c56f38c3ab92bad487.tar.gz kde-066cee3cfc8d5c235f0139c56f38c3ab92bad487.tar.bz2 kde-066cee3cfc8d5c235f0139c56f38c3ab92bad487.zip | |
kde5-functions.eclass: Drop functions/vars moved to ecm/kde.org
punt_bogus_dep is replaced by ecm_punt_bogus_dep in ecm.eclass
_check_gcc_version moved to ecm.eclass
KDE_GCC_MINIMAL moved to ecm.eclass
KDE_BUILD_TYPE moved to kde.org.eclass
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
| -rw-r--r-- | eclass/kde5-functions.eclass | 51 |
1 files changed, 5 insertions, 46 deletions
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index 0e891dc6e33..7e29d41ce4c 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -15,23 +15,11 @@ if [[ -z ${_KDE5_FUNCTIONS_ECLASS} ]]; then _KDE5_FUNCTIONS_ECLASS=1 -inherit toolchain-funcs - case ${EAPI} in 7) ;; *) die "EAPI=${EAPI:-0} is not supported" ;; esac -# @ECLASS-VARIABLE: KDE_BUILD_TYPE -# @DESCRIPTION: -# If PV matches "*9999*", this is automatically set to "live". -# Otherwise, this is automatically set to "release". -KDE_BUILD_TYPE="release" -if [[ ${PV} = *9999* ]]; then - KDE_BUILD_TYPE="live" -fi -export KDE_BUILD_TYPE - case ${CATEGORY} in kde-frameworks) [[ ${KDE_BUILD_TYPE} = live ]] && : ${FRAMEWORKS_MINIMAL:=9999} @@ -65,40 +53,6 @@ esac # Minimum version of KDE Applications to require. This affects add_kdeapps_dep. : ${KDE_APPS_MINIMAL:=19.04.3} -# @ECLASS-VARIABLE: KDE_GCC_MINIMAL -# @DEFAULT_UNSET -# @DESCRIPTION: -# Minimum version of active GCC to require. This is checked in kde5.eclass in -# kde5_pkg_pretend and kde5_pkg_setup. - -# @FUNCTION: _check_gcc_version -# @INTERNAL -# @DESCRIPTION: -# Determine if the current GCC version is acceptable, otherwise die. -_check_gcc_version() { - if [[ ${MERGE_TYPE} != binary && -v KDE_GCC_MINIMAL ]] && tc-is-gcc; then - - local version=$(gcc-version) - local major=${version%.*} - local minor=${version#*.} - local min_major=${KDE_GCC_MINIMAL%.*} - local min_minor=${KDE_GCC_MINIMAL#*.} - - debug-print "GCC version check activated" - debug-print "Version detected:" - debug-print " - Full: ${version}" - debug-print " - Major: ${major}" - debug-print " - Minor: ${minor}" - debug-print "Version required:" - debug-print " - Major: ${min_major}" - debug-print " - Minor: ${min_minor}" - - [[ ${major} -lt ${min_major} ]] || \ - ( [[ ${major} -eq ${min_major} && ${minor} -lt ${min_minor} ]] ) \ - && die "Sorry, but gcc-${KDE_GCC_MINIMAL} or later is required for this package (found ${version})." - fi -} - # @FUNCTION: _add_category_dep # @INTERNAL # @DESCRIPTION: @@ -143,6 +97,7 @@ _add_category_dep() { # The output of this should be added directly to DEPEND/RDEPEND, and may be # wrapped in a USE conditional (but not an || conditional without an extra set # of parentheses). +# PORTING: no replacement add_frameworks_dep() { debug-print-function ${FUNCNAME} "$@" @@ -175,6 +130,7 @@ add_frameworks_dep() { # The output of this should be added directly to DEPEND/RDEPEND, and may be # wrapped in a USE conditional (but not an || conditional without an extra set # of parentheses). +# PORTING: no replacement add_plasma_dep() { debug-print-function ${FUNCNAME} "$@" @@ -207,6 +163,7 @@ add_plasma_dep() { # The output of this should be added directly to DEPEND/RDEPEND, and may be # wrapped in a USE conditional (but not an || conditional without an extra set # of parentheses). +# PORTING: no replacement add_kdeapps_dep() { debug-print-function ${FUNCNAME} "$@" @@ -239,6 +196,7 @@ add_kdeapps_dep() { # The output of this should be added directly to DEPEND/RDEPEND, and may be # wrapped in a USE conditional (but not an || conditional without an extra set # of parentheses). +# PORTING: no replacement add_qt_dep() { debug-print-function ${FUNCNAME} "$@" @@ -263,6 +221,7 @@ add_qt_dep() { # @USAGE: <prefix> <dependency> # @DESCRIPTION: # Removes a specified dependency from a find_package call with multiple components. +# PORTING: Use ecm_punt_bogus_dep from ecm.eclass instead. punt_bogus_dep() { local prefix=${1} local dep=${2} |
