diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-16 21:37:19 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-16 21:37:19 +0000 |
commit | cdda1ab7293bc67061befd2b34a4ed761e887042 (patch) | |
tree | de8e76bfa9ffd50c53fb3ad32c722257c030136b /x11-misc/emacs-desktop-mail | |
parent | 39fcd539b9eeb7df75bccad136265b5f001d1a3c (diff) |
gentoo auto-resync : 16:12:2022 - 21:37:19
Diffstat (limited to 'x11-misc/emacs-desktop-mail')
-rw-r--r-- | x11-misc/emacs-desktop-mail/Manifest | 2 | ||||
-rw-r--r-- | x11-misc/emacs-desktop-mail/emacs-desktop-mail-1.0.ebuild | 53 | ||||
-rw-r--r-- | x11-misc/emacs-desktop-mail/metadata.xml | 9 |
3 files changed, 64 insertions, 0 deletions
diff --git a/x11-misc/emacs-desktop-mail/Manifest b/x11-misc/emacs-desktop-mail/Manifest new file mode 100644 index 000000000000..c4fffcf1d17f --- /dev/null +++ b/x11-misc/emacs-desktop-mail/Manifest @@ -0,0 +1,2 @@ +EBUILD emacs-desktop-mail-1.0.ebuild 1138 BLAKE2B d45b967ebd86668d885bd446e2bad789d44b52d2f736038c1bc04a0ac37966a94b7623ed23c1ba37e92c1c8ece17cda8ded47e9cb86d5e82347a326aa254d3ec SHA512 bff0a067c3f553c48e350effef8e8c5524ec93aa89a370607bfd203f73e9dd23b89d94d61da8cc4fce92c926e6df7718bd89fa2b5b7ca6d4f5561f519ca88a47 +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 new file mode 100644 index 000000000000..07495faea5b4 --- /dev/null +++ b/x11-misc/emacs-desktop-mail/emacs-desktop-mail-1.0.ebuild @@ -0,0 +1,53 @@ +# 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/metadata.xml b/x11-misc/emacs-desktop-mail/metadata.xml new file mode 100644 index 000000000000..986088003fe1 --- /dev/null +++ b/x11-misc/emacs-desktop-mail/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>gnu-emacs@gentoo.org</email> + <name>Gentoo GNU Emacs project</name> +</maintainer> +<stabilize-allarches/> +</pkgmetadata> |