From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/emacs-desktop-mail/
Date: Fri, 16 Dec 2022 18:05:53 +0000 (UTC) [thread overview]
Message-ID: <1671213912.e7c3de949b9565006c50eebcc50fdf9f66791fb5.ulm@gentoo> (raw)
commit: e7c3de949b9565006c50eebcc50fdf9f66791fb5
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 16 18:03:16 2022 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Dec 16 18:05:12 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7c3de94
x11-misc/emacs-desktop-mail: Initial import
Ebuild contributed by me.
Closes: https://bugs.gentoo.org/885981
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
.../emacs-desktop-mail-1.0.ebuild | 53 ++++++++++++++++++++++
x11-misc/emacs-desktop-mail/metadata.xml | 9 ++++
2 files changed, 62 insertions(+)
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>
next reply other threads:[~2022-12-16 18:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-16 18:05 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-12-17 7:49 [gentoo-commits] repo/gentoo:master commit in: x11-misc/emacs-desktop-mail/ Ulrich Müller
2023-03-07 17:28 Ulrich Müller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1671213912.e7c3de949b9565006c50eebcc50fdf9f66791fb5.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox