public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-util/desktop-file-utils/files/, dev-util/desktop-file-utils/
@ 2022-03-20  1:07 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2022-03-20  1:07 UTC (permalink / raw
  To: gentoo-commits

commit:     9a0c2d365814007808d3971c62f2bad834eb8cb4
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Sat Mar 19 17:18:46 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 20 01:00:42 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a0c2d36

dev-util/desktop-file-utils: Backport support for spec 1.5

Add patch from upstream to enable support for version 1.5 of the Desktop
Entry Specification. Also bump EAPI and fix HOMEPAGE.

Upstream patch:
https://gitlab.freedesktop.org/xdg/desktop-file-utils/-/merge_requests/11

Closes: https://bugs.gentoo.org/795570
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
Closes: https://github.com/gentoo/gentoo/pull/24670
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../desktop-file-utils-0.26-r2.ebuild              | 50 ++++++++++++
 ...sktop-file-utils-0.26-support-version-1.5.patch | 88 ++++++++++++++++++++++
 2 files changed, 138 insertions(+)

diff --git a/dev-util/desktop-file-utils/desktop-file-utils-0.26-r2.ebuild b/dev-util/desktop-file-utils/desktop-file-utils-0.26-r2.ebuild
new file mode 100644
index 000000000000..b564c8abb998
--- /dev/null
+++ b/dev-util/desktop-file-utils/desktop-file-utils-0.26-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit elisp-common meson
+
+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 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="emacs"
+
+RDEPEND=">=dev-libs/glib-2.12:2"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	app-arch/xz-utils
+	virtual/pkgconfig
+	emacs? ( >=app-editors/emacs-23.1:* )
+"
+
+SITEFILE="50${PN}-gentoo.el"
+
+DOCS=( AUTHORS ChangeLog HACKING NEWS README )
+
+# Will be in next release
+PATCHES=( "${FILESDIR}/${P}-support-version-1.5.patch" )
+
+src_compile() {
+	meson_src_compile
+	use emacs && elisp-compile misc/desktop-entry-mode.el
+}
+
+src_install() {
+	meson_src_install
+	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
+}

diff --git a/dev-util/desktop-file-utils/files/desktop-file-utils-0.26-support-version-1.5.patch b/dev-util/desktop-file-utils/files/desktop-file-utils-0.26-support-version-1.5.patch
new file mode 100644
index 000000000000..f4b57d8f2584
--- /dev/null
+++ b/dev-util/desktop-file-utils/files/desktop-file-utils-0.26-support-version-1.5.patch
@@ -0,0 +1,88 @@
+# Adds support for Desktop Entry Specification 1.5. Gentoo bug 795570.
+# Upstream commit URLs:
+#   https://gitlab.freedesktop.org/xdg/desktop-file-utils/-/commit/425177a28b6215e0745f95100160a08e810fd47c
+#   https://gitlab.freedesktop.org/xdg/desktop-file-utils/-/commit/56d220dd679c7c3a8f995a41a27a7d6f3df49dea
+
+From 425177a28b6215e0745f95100160a08e810fd47c Mon Sep 17 00:00:00 2001
+From: David King <amigadave@amigadave.com>
+Date: Tue, 15 Feb 2022 10:54:40 +0000
+Subject: [PATCH 1/2] validate: support SingleMainWindow key from 1.5
+
+Fixes https://gitlab.freedesktop.org/xdg/desktop-file-utils/-/issues/59
+---
+ src/validate.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/validate.c b/src/validate.c
+index 62406ab..ebb03b5 100644
+--- a/src/validate.c
++++ b/src/validate.c
+@@ -326,6 +326,9 @@ static DesktopKeyDefinition registered_desktop_keys[] = {
+   /* Since 1.4 */
+   { DESKTOP_BOOLEAN_TYPE,           "PrefersNonDefaultGPU", FALSE, FALSE, FALSE, NULL },
+ 
++  /* Since 1.5 */
++  { DESKTOP_BOOLEAN_TYPE,           "SingleMainWindow", FALSE, FALSE, FALSE, NULL },
++
+   /* Keys reserved for KDE */
+ 
+   /* since 0.9.4 */
+-- 
+GitLab
+
+
+From 56d220dd679c7c3a8f995a41a27a7d6f3df49dea Mon Sep 17 00:00:00 2001
+From: David King <amigadave@amigadave.com>
+Date: Tue, 15 Feb 2022 10:56:04 +0000
+Subject: [PATCH 2/2] validate: Support version 1.5
+
+Bump CURRENT_SPEC_VERSION to 1.5.
+---
+ man/desktop-file-validate.1 | 2 +-
+ src/validate.c              | 3 +++
+ src/validate.h              | 2 +-
+ 3 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/man/desktop-file-validate.1 b/man/desktop-file-validate.1
+index 8e17411..ce87c47 100644
+--- a/man/desktop-file-validate.1
++++ b/man/desktop-file-validate.1
+@@ -9,7 +9,7 @@ desktop-file-validate \- Validate desktop entry files
+ .B desktop-file-validate [\-\-no-hints] [\-\-no-warn-deprecated] [\-\-warn-kde] FILE...
+ .SH DESCRIPTION
+ The \fIdesktop-file-validate\fP program is a tool to validate desktop
+-entry files according to the Desktop Entry specification 1.4.
++entry files according to the Desktop Entry specification 1.5.
+ .PP
+ The specification describes a file format to provide information such as
+ name, icon and description for an application. Such a file can then be
+diff --git a/src/validate.c b/src/validate.c
+index ebb03b5..f9eedee 100644
+--- a/src/validate.c
++++ b/src/validate.c
+@@ -961,6 +961,9 @@ handle_version_key (kf_validator *kf,
+                     const char   *locale_key,
+                     const char   *value)
+ {
++  if (!strcmp (value, "1.5"))
++    return TRUE;
++
+   if (!strcmp (value, "1.4"))
+     return TRUE;
+ 
+diff --git a/src/validate.h b/src/validate.h
+index e6efd93..a7952cd 100644
+--- a/src/validate.h
++++ b/src/validate.h
+@@ -30,7 +30,7 @@
+ 
+ #include <glib.h>
+ 
+-#define CURRENT_SPEC_VERSION "1.4"
++#define CURRENT_SPEC_VERSION "1.5"
+ 
+ #define GROUP_KDE_DESKTOP_ENTRY "KDE Desktop Entry"
+ #define GROUP_DESKTOP_ACTION "Desktop Action "
+-- 
+GitLab
+


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/desktop-file-utils/files/, dev-util/desktop-file-utils/
@ 2024-01-05  9:39 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2024-01-05  9:39 UTC (permalink / raw
  To: gentoo-commits

commit:     ee208fb6512c9cb605304f625a2f45a32d124d2d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  5 09:12: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=ee208fb6

dev-util/desktop-file-utils: drop 0.26-r1, 0.26-r2

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/desktop-file-utils/Manifest               |  1 -
 .../desktop-file-utils-0.26-r1.ebuild              | 47 ------------
 .../desktop-file-utils-0.26-r2.ebuild              | 50 ------------
 ...sktop-file-utils-0.26-support-version-1.5.patch | 88 ----------------------
 4 files changed, 186 deletions(-)

diff --git a/dev-util/desktop-file-utils/Manifest b/dev-util/desktop-file-utils/Manifest
index 21bf2c1846c4..0bc54c31285e 100644
--- a/dev-util/desktop-file-utils/Manifest
+++ b/dev-util/desktop-file-utils/Manifest
@@ -1,2 +1 @@
-DIST desktop-file-utils-0.26.tar.xz 83132 BLAKE2B fdbe5427a0278ebe4a9b1bc15a148ecdc3f54b54058b355ae4f9a962fb1c4ec309d24a075973caf8f187a1c74b013e9bed0a7c3668bf888274e77fac9e077ec8 SHA512 5b4e435f0b635d8f898ac7f5759f74a08ffbe2a56d41fee0e84ff57e73b98d08b57b4416f20b99f696dad8bcb1c20792b39acf836b0814220c0b386ea5f6b831
 DIST desktop-file-utils-0.27.tar.xz 80808 BLAKE2B 66708cd11d5f81824cad814846cdeac6c339e8e93a7f1dceaeed545d9dc1940523fd64ae890e54632b3d32cc91b258aabd41d6d467081539f978ae2993fdfb22 SHA512 81356239a92fb17885aa85a5192c84c2757ebb2e540920d0d41d07035795f08f4162f41b1a87bb2bfcf70ec61f19f1f158e4395a359f46b46f68cb9e24f259a8

diff --git a/dev-util/desktop-file-utils/desktop-file-utils-0.26-r1.ebuild b/dev-util/desktop-file-utils/desktop-file-utils-0.26-r1.ebuild
deleted file mode 100644
index 33328074b152..000000000000
--- a/dev-util/desktop-file-utils/desktop-file-utils-0.26-r1.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-inherit elisp-common meson
-
-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 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
-IUSE="emacs"
-
-RDEPEND=">=dev-libs/glib-2.12:2"
-DEPEND="${RDEPEND}"
-BDEPEND="
-	app-arch/xz-utils
-	virtual/pkgconfig
-	emacs? ( >=app-editors/emacs-23.1:* )
-"
-
-SITEFILE="50${PN}-gentoo.el"
-
-DOCS=( AUTHORS ChangeLog HACKING NEWS README )
-
-src_compile() {
-	meson_src_compile
-	use emacs && elisp-compile misc/desktop-entry-mode.el
-}
-
-src_install() {
-	meson_src_install
-	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
-}

diff --git a/dev-util/desktop-file-utils/desktop-file-utils-0.26-r2.ebuild b/dev-util/desktop-file-utils/desktop-file-utils-0.26-r2.ebuild
deleted file mode 100644
index 4bbe6a30efca..000000000000
--- a/dev-util/desktop-file-utils/desktop-file-utils-0.26-r2.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-inherit elisp-common meson
-
-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 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos ~x64-solaris"
-IUSE="emacs"
-
-RDEPEND=">=dev-libs/glib-2.12:2"
-DEPEND="${RDEPEND}"
-BDEPEND="
-	app-arch/xz-utils
-	virtual/pkgconfig
-	emacs? ( >=app-editors/emacs-23.1:* )
-"
-
-SITEFILE="50${PN}-gentoo.el"
-
-DOCS=( AUTHORS ChangeLog HACKING NEWS README )
-
-# Will be in next release
-PATCHES=( "${FILESDIR}/${P}-support-version-1.5.patch" )
-
-src_compile() {
-	meson_src_compile
-	use emacs && elisp-compile misc/desktop-entry-mode.el
-}
-
-src_install() {
-	meson_src_install
-	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
-}

diff --git a/dev-util/desktop-file-utils/files/desktop-file-utils-0.26-support-version-1.5.patch b/dev-util/desktop-file-utils/files/desktop-file-utils-0.26-support-version-1.5.patch
deleted file mode 100644
index f4b57d8f2584..000000000000
--- a/dev-util/desktop-file-utils/files/desktop-file-utils-0.26-support-version-1.5.patch
+++ /dev/null
@@ -1,88 +0,0 @@
-# Adds support for Desktop Entry Specification 1.5. Gentoo bug 795570.
-# Upstream commit URLs:
-#   https://gitlab.freedesktop.org/xdg/desktop-file-utils/-/commit/425177a28b6215e0745f95100160a08e810fd47c
-#   https://gitlab.freedesktop.org/xdg/desktop-file-utils/-/commit/56d220dd679c7c3a8f995a41a27a7d6f3df49dea
-
-From 425177a28b6215e0745f95100160a08e810fd47c Mon Sep 17 00:00:00 2001
-From: David King <amigadave@amigadave.com>
-Date: Tue, 15 Feb 2022 10:54:40 +0000
-Subject: [PATCH 1/2] validate: support SingleMainWindow key from 1.5
-
-Fixes https://gitlab.freedesktop.org/xdg/desktop-file-utils/-/issues/59
----
- src/validate.c | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/src/validate.c b/src/validate.c
-index 62406ab..ebb03b5 100644
---- a/src/validate.c
-+++ b/src/validate.c
-@@ -326,6 +326,9 @@ static DesktopKeyDefinition registered_desktop_keys[] = {
-   /* Since 1.4 */
-   { DESKTOP_BOOLEAN_TYPE,           "PrefersNonDefaultGPU", FALSE, FALSE, FALSE, NULL },
- 
-+  /* Since 1.5 */
-+  { DESKTOP_BOOLEAN_TYPE,           "SingleMainWindow", FALSE, FALSE, FALSE, NULL },
-+
-   /* Keys reserved for KDE */
- 
-   /* since 0.9.4 */
--- 
-GitLab
-
-
-From 56d220dd679c7c3a8f995a41a27a7d6f3df49dea Mon Sep 17 00:00:00 2001
-From: David King <amigadave@amigadave.com>
-Date: Tue, 15 Feb 2022 10:56:04 +0000
-Subject: [PATCH 2/2] validate: Support version 1.5
-
-Bump CURRENT_SPEC_VERSION to 1.5.
----
- man/desktop-file-validate.1 | 2 +-
- src/validate.c              | 3 +++
- src/validate.h              | 2 +-
- 3 files changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/man/desktop-file-validate.1 b/man/desktop-file-validate.1
-index 8e17411..ce87c47 100644
---- a/man/desktop-file-validate.1
-+++ b/man/desktop-file-validate.1
-@@ -9,7 +9,7 @@ desktop-file-validate \- Validate desktop entry files
- .B desktop-file-validate [\-\-no-hints] [\-\-no-warn-deprecated] [\-\-warn-kde] FILE...
- .SH DESCRIPTION
- The \fIdesktop-file-validate\fP program is a tool to validate desktop
--entry files according to the Desktop Entry specification 1.4.
-+entry files according to the Desktop Entry specification 1.5.
- .PP
- The specification describes a file format to provide information such as
- name, icon and description for an application. Such a file can then be
-diff --git a/src/validate.c b/src/validate.c
-index ebb03b5..f9eedee 100644
---- a/src/validate.c
-+++ b/src/validate.c
-@@ -961,6 +961,9 @@ handle_version_key (kf_validator *kf,
-                     const char   *locale_key,
-                     const char   *value)
- {
-+  if (!strcmp (value, "1.5"))
-+    return TRUE;
-+
-   if (!strcmp (value, "1.4"))
-     return TRUE;
- 
-diff --git a/src/validate.h b/src/validate.h
-index e6efd93..a7952cd 100644
---- a/src/validate.h
-+++ b/src/validate.h
-@@ -30,7 +30,7 @@
- 
- #include <glib.h>
- 
--#define CURRENT_SPEC_VERSION "1.4"
-+#define CURRENT_SPEC_VERSION "1.5"
- 
- #define GROUP_KDE_DESKTOP_ENTRY "KDE Desktop Entry"
- #define GROUP_DESKTOP_ACTION "Desktop Action "
--- 
-GitLab
-


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-05  9:39 UTC | newest]

Thread overview: 2+ messages (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: dev-util/desktop-file-utils/files/, dev-util/desktop-file-utils/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2022-03-20  1:07 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox