summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarty E. Plummer <hanetzer@startmail.com>2019-01-01 16:19:41 -0600
committerMart Raudsepp <leio@gentoo.org>2019-02-11 19:14:03 +0200
commite543d9d8a52e29dd939f425ba6d947754f4b59b4 (patch)
tree4dc50e4fb2cd11ffdb5fb1482b632d87793d03e5 /eclass/xdg.eclass
parentxdg.eclass: use ED and don't export variables (diff)
downloadgentoo-e543d9d8a52e29dd939f425ba6d947754f4b59b4.tar.gz
gentoo-e543d9d8a52e29dd939f425ba6d947754f4b59b4.tar.bz2
gentoo-e543d9d8a52e29dd939f425ba6d947754f4b59b4.zip
xdg.eclass: enable EAPI 7
Package-Manager: Portage-2.3.51, Repoman 2.3.11 Signed-off-by: Marty E. Plummer <hanetzer@startmail.com> Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Diffstat (limited to 'eclass/xdg.eclass')
-rw-r--r--eclass/xdg.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/xdg.eclass b/eclass/xdg.eclass
index 967a9fd023f..219be712e84 100644
--- a/eclass/xdg.eclass
+++ b/eclass/xdg.eclass
@@ -6,7 +6,7 @@
# freedesktop-bugs@gentoo.org
# @AUTHOR:
# Original author: Gilles Dartiguelongue <eva@gentoo.org>
-# @SUPPORTED_EAPIS: 4 5 6
+# @SUPPORTED_EAPIS: 4 5 6 7
# @BLURB: Provides phases for XDG compliant packages.
# @DESCRIPTION:
# Utility eclass to update the desktop, icon and shared mime info as laid
@@ -15,7 +15,7 @@
inherit xdg-utils
case "${EAPI:-0}" in
- 4|5|6)
+ 4|5|6|7)
EXPORT_FUNCTIONS src_prepare pkg_preinst pkg_postinst pkg_postrm
;;
*) die "EAPI=${EAPI} is not supported" ;;
@@ -35,7 +35,7 @@ fi
xdg_src_prepare() {
xdg_environment_reset
- has ${EAPI:-0} 6 && default
+ [[ ${EAPI:-0} != [45] ]] && default
}
# @FUNCTION: xdg_pkg_preinst