app-editors/jasspa-microemacs: [QA] Use desktop.eclass
authorDavid Seifert <soap@gentoo.org>
Wed, 28 Aug 2019 10:10:00 +0000 (12:10 +0200)
committerDavid Seifert <soap@gentoo.org>
Wed, 28 Aug 2019 10:10:00 +0000 (12:10 +0200)
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: David Seifert <soap@gentoo.org>
app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild

index c431c2cfdd65273e3eff242e1b6973aa67aa89fe..27f5e8a4303793a18321c4eb86cb42c8aa8ce794 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-inherit toolchain-funcs xdg-utils
+inherit desktop toolchain-funcs xdg-utils
 
 MACROS_PV="20091017"
 DESCRIPTION="Jasspa Microemacs"
@@ -83,10 +83,7 @@ src_install() {
                keepdir /usr/share/jasspa/site
                insinto /usr/share
                doins -r "${WORKDIR}"/jasspa
-               if use X; then
-                       insinto /usr/share/applications
-                       doins "${FILESDIR}"/${PN}.desktop
-               fi
+               use X && domenu "${FILESDIR}"/${PN}.desktop
        fi
 
        dodoc faq.txt readme.txt change.log