From bcea7077fd4cd5045b1a07fac9619e1d2fb4e897 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 17 Dec 2022 09:38:32 +0000 Subject: gentoo auto-resync : 17:12:2022 - 09:38:32 --- x11-misc/emacs-desktop-mail/Manifest | 2 +- .../emacs-desktop-mail-1.0.ebuild | 53 --------------------- .../emacs-desktop-mail-1.1.ebuild | 54 ++++++++++++++++++++++ 3 files changed, 55 insertions(+), 54 deletions(-) delete mode 100644 x11-misc/emacs-desktop-mail/emacs-desktop-mail-1.0.ebuild create mode 100644 x11-misc/emacs-desktop-mail/emacs-desktop-mail-1.1.ebuild (limited to 'x11-misc/emacs-desktop-mail') diff --git a/x11-misc/emacs-desktop-mail/Manifest b/x11-misc/emacs-desktop-mail/Manifest index c4fffcf1d17f..343711b09657 100644 --- a/x11-misc/emacs-desktop-mail/Manifest +++ b/x11-misc/emacs-desktop-mail/Manifest @@ -1,2 +1,2 @@ -EBUILD emacs-desktop-mail-1.0.ebuild 1138 BLAKE2B d45b967ebd86668d885bd446e2bad789d44b52d2f736038c1bc04a0ac37966a94b7623ed23c1ba37e92c1c8ece17cda8ded47e9cb86d5e82347a326aa254d3ec SHA512 bff0a067c3f553c48e350effef8e8c5524ec93aa89a370607bfd203f73e9dd23b89d94d61da8cc4fce92c926e6df7718bd89fa2b5b7ca6d4f5561f519ca88a47 +EBUILD emacs-desktop-mail-1.1.ebuild 1448 BLAKE2B 0d41c090aa8e7df6d53c41022bdd5a8e020e63b4cf2fd767a586c9fb898c17dc4a4696a345ff1a53adda50a6c7f738d1d17ac90c7a03b36d714db5417f713e2f SHA512 a803538db4cb35f7d87dc721c78663fb3e6e5795e80f9fb99feb0849be0d05b1c409c3a346349a396c8286dd30e38eb0833273cb25bec3c7bc61d66d32db0d01 MISC metadata.xml 283 BLAKE2B 81c49021199f71096079a27f9121390fb8c1285c54b9478583ff2d647277fa106ef12456d7097c4be092fc48b514a1adcf855ca0fac911598232ef9eb7f102c0 SHA512 f32b303760addf5d4db8d18bd10fb677353cdfa4c5e545d47804ef756cf5e5a21f8b8efb631b08f802185913ceb98da820e404e06eb03d01fe9ea85c10d1ac13 diff --git a/x11-misc/emacs-desktop-mail/emacs-desktop-mail-1.0.ebuild b/x11-misc/emacs-desktop-mail/emacs-desktop-mail-1.0.ebuild deleted file mode 100644 index 07495faea5b4..000000000000 --- a/x11-misc/emacs-desktop-mail/emacs-desktop-mail-1.0.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -NEED_EMACS=28 - -inherit elisp desktop xdg-utils - -DESCRIPTION="Desktop entries for handling mailto URIs with GNU Emacs" -HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs" -S="${WORKDIR}" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -src_compile() { :; } - -src_install() { - newmenu - emacs-mail.desktop <<-EOF - [Desktop Entry] - Type=Application - Name=GNU Emacs (mail) - NoDisplay=true - Exec=${EPREXIX}/usr/bin/emacs -f message-mailto %u - Terminal=false - MimeType=x-scheme-handler/mailto; - EOF - - newmenu - emacsclient-mail.desktop <<-EOF - [Desktop Entry] - Type=Application - Name=Emacsclient (mail) - NoDisplay=true - Exec=${EPREFIX}/usr/libexec/emacs/emacsclient-mail-wrapper.sh %u - Terminal=false - MimeType=x-scheme-handler/mailto; - EOF - - exeinto /usr/libexec/emacs - newexe - emacsclient-mail-wrapper.sh <<-EOF - #!${EPREXIX}/bin/bash - exec ${EPREFIX}/usr/bin/emacsclient --eval "(message-mailto \\"\$1\\")" - EOF -} - -pkg_postinst() { - xdg_desktop_database_update -} - -pkg_postrm() { - xdg_desktop_database_update -} diff --git a/x11-misc/emacs-desktop-mail/emacs-desktop-mail-1.1.ebuild b/x11-misc/emacs-desktop-mail/emacs-desktop-mail-1.1.ebuild new file mode 100644 index 000000000000..92d93860fb2f --- /dev/null +++ b/x11-misc/emacs-desktop-mail/emacs-desktop-mail-1.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +NEED_EMACS=28 + +inherit elisp desktop xdg-utils + +DESCRIPTION="Desktop entries for handling mailto URIs with GNU Emacs" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs" +S="${WORKDIR}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +src_compile() { :; } + +src_install() { + newmenu - emacs-mail.desktop <<-EOF + [Desktop Entry] + Type=Application + Name=GNU Emacs (mail) + NoDisplay=true + Exec=${EPREXIX}/usr/bin/emacs -f message-mailto %u + Terminal=false + MimeType=x-scheme-handler/mailto; + EOF + + # The Desktop Entry Specification does not allow field codes like %u + # inside a quoted argument, therefore we need a shell wrapper. + # We want to pass a literal '"(message-mailto \"$1\")"' in the -c + # command, but in the desktop entry '"', '\', and '$' must be escaped + # as '\\"', '\\\\', and '\\$', respectively. Yet another level of + # backslash escapes is needed for '\' and '$' in the here-document. + newmenu - emacsclient-mail.desktop <<-EOF + [Desktop Entry] + Type=Application + Name=Emacsclient (mail) + NoDisplay=true + Exec=${EPREFIX}/bin/bash -c "exec ${EPREFIX}/usr/bin/emacsclient \ +--eval \\\\"(message-mailto \\\\\\\\\\\\"\\\\\$1\\\\\\\\\\\\")\\\\"" bash %u + Terminal=false + MimeType=x-scheme-handler/mailto; + EOF +} + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +} -- cgit v1.2.3