Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/aerc/files/, mail-client/aerc/
Date: Sun, 27 Feb 2022 17:45:02
Message-Id: 1645983878.dc0e098d124e67185b34e2b6e382272334e1bee3.williamh@gentoo
1 commit: dc0e098d124e67185b34e2b6e382272334e1bee3
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 27 17:44:05 2022 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 27 17:44:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc0e098d
7
8 mail-client/aerc: 0.8.2-r1 bump
9
10 Closes: https://bugs.gentoo.org/834145
11 Closes: https://bugs.gentoo.org/834146
12 Package-Manager: Portage-3.0.30, Repoman-3.0.3
13 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
14
15 mail-client/aerc/aerc-0.8.2-r1.ebuild | 71 ++++++++++++++++++++++
16 mail-client/aerc/files/0001-fix-desktop-file.patch | 38 ++++++++++++
17 2 files changed, 109 insertions(+)
18
19 diff --git a/mail-client/aerc/aerc-0.8.2-r1.ebuild b/mail-client/aerc/aerc-0.8.2-r1.ebuild
20 new file mode 100644
21 index 000000000000..a85c8b992279
22 --- /dev/null
23 +++ b/mail-client/aerc/aerc-0.8.2-r1.ebuild
24 @@ -0,0 +1,71 @@
25 +# Copyright 2019-2022 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=8
29 +inherit go-module xdg
30 +
31 +DESCRIPTION="Email client for your terminal"
32 +HOMEPAGE="https://aerc-mail.org"
33 +
34 +if [[ ${PV} == *9999 ]]; then
35 + inherit git-r3
36 + EGIT_REPO_URI="https://git.sr.ht/~rjarry/aerc"
37 +else
38 + SRC_URI="https://git.sr.ht/~rjarry/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
39 + SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-vendor.tar.xz"
40 + KEYWORDS="~amd64 ~ppc64"
41 +fi
42 +
43 +LICENSE="Apache-2.0 BSD BSD-2 MIT"
44 +SLOT="0"
45 +IUSE="notmuch"
46 +
47 +DEPEND="notmuch? ( net-mail/notmuch:= )"
48 +RDEPEND="${DEPEND}"
49 +BDEPEND="
50 + >=app-text/scdoc-1.9.7
51 + >=dev-lang/go-1.13
52 +"
53 +
54 +PATCHES=(
55 + "${FILESDIR}"/0001-fix-desktop-file.patch
56 +)
57 +
58 +src_unpack() {
59 + if [[ ${PV} == *9999 ]]; then
60 + git-r3_src_unpack
61 + go-module_live_vendor
62 + else
63 + go-module_src_unpack
64 + fi
65 +}
66 +
67 +src_compile() {
68 + LDFLAGS= \
69 + emake GOFLAGS="-mod=vendor $(usex notmuch "-tags=notmuch" "")" \
70 + PREFIX="${EPREFIX}/usr"VERSION=${PV} all
71 +}
72 +
73 +src_install() {
74 + emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" install
75 + einstalldocs
76 +}
77 +
78 +pkg_postinst() {
79 + if [[ -z ${REPLACING_VERSIONS} ]]; then
80 + elog "If you want to allow your users to activate html email"
81 + elog "processing via w3m as shown in the tutorial, make sure you"
82 + elog "emerge net-proxy/dante and www-client/w3m"
83 + fi
84 +
85 + local v
86 + for v in ${REPLACING_VERSIONS}; do
87 + if ver_test $v -lt 0.3.0-r1; then
88 + elog "The dependencies on net-proxy/dante and www-client/w3m"
89 + elog "have been removed since they are optional."
90 + elog "Please emerge them before the next --depclean if you"
91 + elog "need to use them."
92 + fi
93 + done
94 + xdg_pkg_postinst
95 +}
96
97 diff --git a/mail-client/aerc/files/0001-fix-desktop-file.patch b/mail-client/aerc/files/0001-fix-desktop-file.patch
98 new file mode 100644
99 index 000000000000..935e98034fbc
100 --- /dev/null
101 +++ b/mail-client/aerc/files/0001-fix-desktop-file.patch
102 @@ -0,0 +1,38 @@
103 +From 39f7819cfe26f00921cb653a5d34974ce7af8d55 Mon Sep 17 00:00:00 2001
104 +From: William Hubbs <w.d.hubbs@×××××.com>
105 +Date: Sun, 27 Feb 2022 11:15:54 -0600
106 +Subject: [PATCH aerc] fix desktop file
107 +
108 +This was reported to me by a user of Gentoo (I'm a maintainer there) in
109 +the following bug.
110 +
111 +Bug: https://bugs.gentoo.org/834145
112 +Signed-off-by: William Hubbs <w.d.hubbs@×××××.com>
113 +---
114 + contrib/aerc.desktop | 5 ++---
115 + 1 file changed, 2 insertions(+), 3 deletions(-)
116 +
117 +diff --git a/contrib/aerc.desktop b/contrib/aerc.desktop
118 +index 235da5a..ddd43ae 100644
119 +--- a/contrib/aerc.desktop
120 ++++ b/contrib/aerc.desktop
121 +@@ -13,6 +13,8 @@ Type=Application
122 + Icon=utilities-terminal
123 + Terminal=true
124 + Exec=aerc %u
125 ++Actions=compose;
126 ++MimeType=x-scheme-handler/mailto;
127 +
128 + [Desktop Action compose]
129 + Name=Compose mail
130 +@@ -20,7 +22,4 @@ Name=Compose mail
131 + # enable as default mailto: handler using
132 + # xdg-mime default aerc.desktop x-scheme-handler/mailto
133 + Exec=aerc %u
134 +-MimeType=x-scheme-handler/mailto;
135 +-Type=Application
136 + Icon=utilities-terminal
137 +-Terminal=true
138 +--
139 +2.34.1
140 +