summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-01-05 09:35:57 +0000
committerSam James <sam@gentoo.org>2024-01-05 09:37:20 +0000
commit50a7f72871ffc4a535cf555aaf49ce95eb67d710 (patch)
tree6ac7724ebcc6f939c03d1dd20d25842e151ab8b5 /app-emacs/desktop-entry-mode
parentdev-util/desktop-file-utils: drop 0.26-r1, 0.26-r2 (diff)
downloadgentoo-50a7f72871ffc4a535cf555aaf49ce95eb67d710.tar.gz
gentoo-50a7f72871ffc4a535cf555aaf49ce95eb67d710.tar.bz2
gentoo-50a7f72871ffc4a535cf555aaf49ce95eb67d710.zip
app-emacs/desktop-entry-mode: new package split out from dev-util/desktop-file-utils[emacs], add 0.27
Split out from dev-util/desktop-file-utils[emacs] to help break a circular dep with USE=emacs: ``` (dev-util/desktop-file-utils-0.27:0/0::gentoo, ebuild scheduled for merge) depends on (app-editors/emacs-29.1-r6:29/29::gentoo, ebuild scheduled for merge) (buildtime) (x11-libs/gtk+-3.24.38:3/3::gentoo, ebuild scheduled for merge) (buildtime) (dev-util/desktop-file-utils-0.27:0/0::gentoo, ebuild scheduled for merge) (runtime) It might be possible to break this cycle by applying any of the following changes: - dev-util/desktop-file-utils-0.27 (Change USE: -emacs) - app-editors/emacs-29.1-r6 (Change USE: -gui) - app-editors/emacs-29.1-r6 (Change USE: -gtk) ``` Bug: https://bugs.gentoo.org/921333 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-emacs/desktop-entry-mode')
-rw-r--r--app-emacs/desktop-entry-mode/Manifest1
-rw-r--r--app-emacs/desktop-entry-mode/desktop-entry-mode-0.27.ebuild24
-rw-r--r--app-emacs/desktop-entry-mode/files/50desktop-entry-mode-gentoo.el5
-rw-r--r--app-emacs/desktop-entry-mode/metadata.xml13
4 files changed, 43 insertions, 0 deletions
diff --git a/app-emacs/desktop-entry-mode/Manifest b/app-emacs/desktop-entry-mode/Manifest
new file mode 100644
index 000000000000..0bc54c31285e
--- /dev/null
+++ b/app-emacs/desktop-entry-mode/Manifest
@@ -0,0 +1 @@
+DIST desktop-file-utils-0.27.tar.xz 80808 BLAKE2B 66708cd11d5f81824cad814846cdeac6c339e8e93a7f1dceaeed545d9dc1940523fd64ae890e54632b3d32cc91b258aabd41d6d467081539f978ae2993fdfb22 SHA512 81356239a92fb17885aa85a5192c84c2757ebb2e540920d0d41d07035795f08f4162f41b1a87bb2bfcf70ec61f19f1f158e4395a359f46b46f68cb9e24f259a8
diff --git a/app-emacs/desktop-entry-mode/desktop-entry-mode-0.27.ebuild b/app-emacs/desktop-entry-mode/desktop-entry-mode-0.27.ebuild
new file mode 100644
index 000000000000..81628e3c3c59
--- /dev/null
+++ b/app-emacs/desktop-entry-mode/desktop-entry-mode-0.27.ebuild
@@ -0,0 +1,24 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit elisp
+
+DESCRIPTION="GNU Emacs mode for handling freedesktop.org desktop entry files"
+HOMEPAGE="https://gitlab.freedesktop.org/xdg/desktop-file-utils"
+SRC_URI="https://www.freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-${PV}.tar.xz"
+S="${WORKDIR}"/desktop-file-utils-${PV}/misc
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos ~x64-solaris"
+
+RDEPEND="!dev-util/desktop-file-utils[emacs(-)]"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_install() {
+ elisp_src_install
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+}
diff --git a/app-emacs/desktop-entry-mode/files/50desktop-entry-mode-gentoo.el b/app-emacs/desktop-entry-mode/files/50desktop-entry-mode-gentoo.el
new file mode 100644
index 000000000000..546947a0b374
--- /dev/null
+++ b/app-emacs/desktop-entry-mode/files/50desktop-entry-mode-gentoo.el
@@ -0,0 +1,5 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t)
+(add-to-list 'auto-mode-alist
+ '("\\.desktop\\(\\.in\\)?$" . desktop-entry-mode))
+(add-hook 'desktop-entry-mode-hook 'turn-on-font-lock)
diff --git a/app-emacs/desktop-entry-mode/metadata.xml b/app-emacs/desktop-entry-mode/metadata.xml
new file mode 100644
index 000000000000..a115cf596480
--- /dev/null
+++ b/app-emacs/desktop-entry-mode/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="project">
+ <email>freedesktop-bugs@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+ </maintainer>
+ <stabilize-allarches/>
+</pkgmetadata>