summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-09-13 03:21:35 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2019-02-07 13:59:56 +0100
commit47de1d4c66517360f6330e2c6bc31b0254c9b4d2 (patch)
tree668db7022ff00f4993eda07fc69d4a21e065622f /eclass
parentkde5.eclass: Use BDEPEND (diff)
downloadgentoo-47de1d4c66517360f6330e2c6bc31b0254c9b4d2.tar.gz
gentoo-47de1d4c66517360f6330e2c6bc31b0254c9b4d2.tar.bz2
gentoo-47de1d4c66517360f6330e2c6bc31b0254c9b4d2.zip
kde5.eclass: Limit use of gnome2-utils to EAPI-6
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde5.eclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 50fc23401b69..68bf7b6201b9 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
@@ -717,7 +717,7 @@ kde5_src_install() {
kde5_pkg_preinst() {
debug-print-function ${FUNCNAME} "$@"
- gnome2_icon_savelist
+ [[ ${EAPI} == 6 ]] && gnome2_icon_savelist
xdg_pkg_preinst
}
@@ -727,7 +727,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
@@ -748,7 +748,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