diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2018-09-13 03:21:35 +0200 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-01-26 21:27:33 +0100 |
| commit | 486520716f925eb18468cac740c354135d18cece (patch) | |
| tree | 9bc7eb84c8cc8e7c1919c440ad58315c432b7426 /eclass/kde5.eclass | |
| parent | ffb0c22e668a43a12d27ffe002bf278eb7183191 (diff) | |
| download | kde-486520716f925eb18468cac740c354135d18cece.tar.gz kde-486520716f925eb18468cac740c354135d18cece.tar.bz2 kde-486520716f925eb18468cac740c354135d18cece.zip | |
kde5.eclass: Limit use of gnome2-utils to EAPI-6
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/kde5.eclass')
| -rw-r--r-- | eclass/kde5.eclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index 612d6345a60..92d28a05fb4 100644 --- a/eclass/kde5.eclass +++ b/eclass/kde5.eclass @@ -31,10 +31,10 @@ _KDE5_ECLASS=1 # for tests you should proceed with setting VIRTUALX_REQUIRED=test. : ${VIRTUALX_REQUIRED:=manual} -inherit cmake-utils flag-o-matic gnome2-utils kde5-functions virtualx xdg +inherit cmake-utils flag-o-matic kde5-functions virtualx xdg case ${EAPI} in - 6) inherit eapi7-ver eutils ;; + 6) inherit eapi7-ver eutils gnome2-utils ;; esac if [[ ${KDE_BUILD_TYPE} = live ]]; then @@ -719,7 +719,7 @@ kde5_src_install() { kde5_pkg_preinst() { debug-print-function ${FUNCNAME} "$@" - gnome2_icon_savelist + [[ ${EAPI} == 6 ]] && gnome2_icon_savelist xdg_pkg_preinst } @@ -729,7 +729,7 @@ kde5_pkg_preinst() { kde5_pkg_postinst() { debug-print-function ${FUNCNAME} "$@" - if [[ -n ${GNOME2_ECLASS_ICONS} ]]; then + if [[ ${EAPI} == 6 && -n ${GNOME2_ECLASS_ICONS} ]]; then gnome2_icon_cache_update fi xdg_pkg_postinst @@ -750,7 +750,7 @@ kde5_pkg_postinst() { kde5_pkg_postrm() { debug-print-function ${FUNCNAME} "$@" - if [[ -n ${GNOME2_ECLASS_ICONS} ]]; then + if [[ ${EAPI} == 6 && -n ${GNOME2_ECLASS_ICONS} ]]; then gnome2_icon_cache_update fi xdg_pkg_postrm |
