diff options
| author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2015-09-23 16:33:59 +0200 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2015-09-24 00:50:23 +1000 |
| commit | 061c734017f67a9ac2417563a9b485b270cd4719 (patch) | |
| tree | 45590bc5a0042f46286ce49a6b53c269eff939e2 /eclass/kde5-functions.eclass | |
| parent | b48ada16b31e61cf514ed824a810703b13c79d7d (diff) | |
| download | kde-061c734017f67a9ac2417563a9b485b270cd4719.tar.gz kde-061c734017f67a9ac2417563a9b485b270cd4719.tar.bz2 kde-061c734017f67a9ac2417563a9b485b270cd4719.zip | |
kde5-functions.eclass: Make gcc version check configurable
Diffstat (limited to 'eclass/kde5-functions.eclass')
| -rw-r--r-- | eclass/kde5-functions.eclass | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index e19d7fdbed6..6bebf7f6612 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -38,6 +38,11 @@ esac # Minimal KDE Applicaions version to require for the package. : ${KDE_APPS_MINIMAL:=14.12.0} +# @ECLASS-VARIABLE: KDE_GCC_MINIMAL +# @DESCRIPTION: +# Minimal GCC version to require for the package. +: ${KDE_GCC_MINIMAL:=4.8} + # @ECLASS-VARIABLE: KDEBASE # @DESCRIPTION: # This gets set to a non-zero value when a package is considered a kde or @@ -79,10 +84,12 @@ _check_gcc_version() { local version=$(gcc-version) local major=${version%.*} local minor=${version#*.} + local min_major=${KDE_GCC_MINIMAL%.*} + local min_minor=${KDE_GCC_MINIMAL#*.} - [[ ${major} -lt 4 ]] || \ - ( [[ ${major} -eq 4 && ${minor} -lt 8 ]] ) \ - && die "Sorry, but gcc-4.8 or later is required for KDE 5." + [[ ${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." fi } |
