xdg.eclass: enable EAPI 7
authorMarty E. Plummer <hanetzer@startmail.com>
Tue, 1 Jan 2019 22:19:41 +0000 (16:19 -0600)
committerMart Raudsepp <leio@gentoo.org>
Mon, 11 Feb 2019 17:14:03 +0000 (19:14 +0200)
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>
eclass/xdg.eclass

index 967a9fd023fa8cdd12f2c0e9ce69c13e8a65c196..219be712e84d3fcc68cc6a3f00748b26e5ea93a3 100644 (file)
@@ -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