summaryrefslogtreecommitdiff
path: root/eclass/desktop.eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/desktop.eclass')
-rw-r--r--eclass/desktop.eclass16
1 files changed, 6 insertions, 10 deletions
diff --git a/eclass/desktop.eclass b/eclass/desktop.eclass
index 144514c8f7c2..2ab96ba6b770 100644
--- a/eclass/desktop.eclass
+++ b/eclass/desktop.eclass
@@ -4,21 +4,17 @@
# @ECLASS: desktop.eclass
# @MAINTAINER:
# base-system@gentoo.org
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
# @BLURB: support for desktop files, menus, and icons
+if [[ -z ${_DESKTOP_ECLASS} ]]; then
+_DESKTOP_ECLASS=1
+
case ${EAPI} in
- 6)
- ewarn "${CATEGORY}/${PF}: ebuild uses ${ECLASS} with deprecated EAPI ${EAPI}!"
- ewarn "${CATEGORY}/${PF}: Support will be removed on 2024-10-08. Please port to newer EAPI."
- ;;
7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
-if [[ -z ${_DESKTOP_ECLASS} ]]; then
-_DESKTOP_ECLASS=1
-
# @FUNCTION: make_desktop_entry
# @USAGE: <command> [name] [icon] [type] [fields]
# @DESCRIPTION:
@@ -216,7 +212,7 @@ make_desktop_entry() {
insopts -m 0644
insinto /usr/share/applications
doins "${desktop}"
- ) || die "installing desktop file failed"
+ )
}
# @FUNCTION: make_session_desktop
@@ -357,7 +353,7 @@ _iconins() {
if [[ ${funcname} == newicon ]] ; then
newins "$@"
fi
- ) || die
+ )
}
# @FUNCTION: doicon