summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-07-29 11:37:11 +0200
committerLars Wendler <polynomial-c@gentoo.org>2019-07-29 13:05:52 +0200
commit6516e31a6a1fca0e7853775f988c34a52be06f3b (patch)
tree4227c1114ece82ff5d9938e88e4efc2f11a97fc1 /dev-util/desktop-file-utils/desktop-file-utils-0.24.ebuild
parentxfce-extra/xfce4-power-manager: Add ~alpha keyword wrt bug #689062 (diff)
downloadgentoo-6516e31a6a1fca0e7853775f988c34a52be06f3b.tar.gz
gentoo-6516e31a6a1fca0e7853775f988c34a52be06f3b.tar.bz2
gentoo-6516e31a6a1fca0e7853775f988c34a52be06f3b.zip
dev-util/desktop-file-utils: Bump to version 0.24
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'dev-util/desktop-file-utils/desktop-file-utils-0.24.ebuild')
-rw-r--r--dev-util/desktop-file-utils/desktop-file-utils-0.24.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-util/desktop-file-utils/desktop-file-utils-0.24.ebuild b/dev-util/desktop-file-utils/desktop-file-utils-0.24.ebuild
new file mode 100644
index 000000000000..ea5cfbc8ebf8
--- /dev/null
+++ b/dev-util/desktop-file-utils/desktop-file-utils-0.24.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit elisp-common
+
+DESCRIPTION="Command line utilities to work with desktop menu entries"
+HOMEPAGE="https://freedesktop.org/wiki/Software/desktop-file-utils"
+SRC_URI="https://www.freedesktop.org/software/${PN}/releases/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="emacs"
+
+RDEPEND=">=dev-libs/glib-2.12:2
+ emacs? ( virtual/emacs )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-arch/xz-utils
+ virtual/pkgconfig
+"
+
+SITEFILE=50${PN}-gentoo.el
+
+DOCS=( AUTHORS ChangeLog HACKING NEWS README )
+
+src_prepare() {
+ default
+ sed -i -e '/SUBDIRS =/s:misc::' Makefile.in || die
+}
+
+src_configure() {
+ econf "$(use_with emacs lispdir "${SITELISP}"/${PN})"
+}
+
+src_compile() {
+ default
+ use emacs && elisp-compile misc/desktop-entry-mode.el
+}
+
+src_install() {
+ default
+ if use emacs; then
+ elisp-install ${PN} misc/*.el misc/*.elc || die
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}