* [gentoo-commits] repo/gentoo:master commit in: app-emacs/desktop-entry-mode/files/, app-emacs/desktop-entry-mode/
@ 2024-01-05 9:39 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2024-01-05 9:39 UTC (permalink / raw
To: gentoo-commits
commit: 50a7f72871ffc4a535cf555aaf49ce95eb67d710
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 5 09:35:57 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 5 09:37:20 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50a7f728
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 <AT> gentoo.org>
app-emacs/desktop-entry-mode/Manifest | 1 +
.../desktop-entry-mode-0.27.ebuild | 24 ++++++++++++++++++++++
.../files/50desktop-entry-mode-gentoo.el | 5 +++++
app-emacs/desktop-entry-mode/metadata.xml | 13 ++++++++++++
4 files changed, 43 insertions(+)
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>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-05 9:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-05 9:39 [gentoo-commits] repo/gentoo:master commit in: app-emacs/desktop-entry-mode/files/, app-emacs/desktop-entry-mode/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox