1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit elisp-common eutils
7 DESCRIPTION="Command line utilities to work with desktop menu entries"
8 HOMEPAGE="https://freedesktop.org/wiki/Software/desktop-file-utils"
9 SRC_URI="https://www.freedesktop.org/software/${PN}/releases/${P}.tar.xz"
13 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
16 RDEPEND=">=dev-libs/glib-2.12:2
17 emacs? ( virtual/emacs )"
22 SITEFILE=50${PN}-gentoo.el
24 DOCS=( AUTHORS ChangeLog HACKING NEWS README )
28 sed -i -e '/SUBDIRS =/s:misc::' Makefile.in || die
32 econf "$(use_with emacs lispdir "${SITELISP}"/${PN})"
37 use emacs && elisp-compile misc/desktop-entry-mode.el
43 elisp-install ${PN} misc/*.el misc/*.elc || die
44 elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
49 use emacs && elisp-site-regen
53 use emacs && elisp-site-regen