1 |
commit: ba0c9a35185de0a8e42bad8e11b9e4540f0588e1 |
2 |
Author: Matthew Smith <matthew <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 2 09:27:30 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 2 09:28:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba0c9a35 |
7 |
|
8 |
net-mail/mu: add 1.7.12 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/836618 |
11 |
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> |
12 |
|
13 |
net-mail/mu/Manifest | 1 + |
14 |
net-mail/mu/files/mu-1.7.12-optional-mu4e.patch | 41 ++++++++++++ |
15 |
net-mail/mu/mu-1.7.12.ebuild | 83 +++++++++++++++++++++++++ |
16 |
3 files changed, 125 insertions(+) |
17 |
|
18 |
diff --git a/net-mail/mu/Manifest b/net-mail/mu/Manifest |
19 |
index 23706f595cfd..8b5188322ef3 100644 |
20 |
--- a/net-mail/mu/Manifest |
21 |
+++ b/net-mail/mu/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST mu-1.6.10.tar.xz 867008 BLAKE2B 6cce22f18691c3ad6dda1ec012d72c398df2ba4d1beca70fc6f88d87aa9b749e2aa4c03f5c0e0d70f4f9978e2beb60ea02642b8ff71e86e0668df726e5923b52 SHA512 a51847b338afeff9c9fa88c4698df4b85289d017063cb5e3410eb967c605d8779618dcbd988e2d923a92291c1e0738ec84afecf017c76a63776149619d134887 |
24 |
+DIST mu-1.7.12.tar.xz 2129072 BLAKE2B 3518a361bc06b632899f9296ec211dc926a07973433247bf6f9ecfb069dcfd8b762f358aa32418276bf7dcba40bad768dd4599534613a1fae285cef9c6ceedd0 SHA512 fe0f41520959df7f78525317bf5caad4ae7f7468ac6291b84c48805e133883192458a8f79a929c0ebda2e45ec2014db1aa72650d0a6e176d7678449be36fc4f2 |
25 |
|
26 |
diff --git a/net-mail/mu/files/mu-1.7.12-optional-mu4e.patch b/net-mail/mu/files/mu-1.7.12-optional-mu4e.patch |
27 |
new file mode 100644 |
28 |
index 000000000000..0f14bf3249e2 |
29 |
--- /dev/null |
30 |
+++ b/net-mail/mu/files/mu-1.7.12-optional-mu4e.patch |
31 |
@@ -0,0 +1,41 @@ |
32 |
+From 41e262b51968359074faac21fa80d2f1237c57cf Mon Sep 17 00:00:00 2001 |
33 |
+From: Matthew Smith <matthew@g.o> |
34 |
+Date: Sat, 2 Apr 2022 10:06:21 +0100 |
35 |
+Subject: [PATCH] build: add emacs option |
36 |
+ |
37 |
+Without this option, mu4e will always be installed when Emacs is |
38 |
+installed. |
39 |
+--- |
40 |
+ meson.build | 2 +- |
41 |
+ meson_options.txt | 5 +++++ |
42 |
+ 2 files changed, 6 insertions(+), 1 deletion(-) |
43 |
+ |
44 |
+diff --git a/meson.build b/meson.build |
45 |
+index 58ac9002..5f71d766 100644 |
46 |
+--- a/meson.build |
47 |
++++ b/meson.build |
48 |
+@@ -174,7 +174,7 @@ subdir('lib') |
49 |
+ subdir('mu') |
50 |
+ subdir('man') |
51 |
+ |
52 |
+-if emacs.found() |
53 |
++if get_option('emacs').enabled() and emacs.found() |
54 |
+ subdir('mu4e') |
55 |
+ endif |
56 |
+ |
57 |
+diff --git a/meson_options.txt b/meson_options.txt |
58 |
+index 0c70826e..34cb0c02 100644 |
59 |
+--- a/meson_options.txt |
60 |
++++ b/meson_options.txt |
61 |
+@@ -29,3 +29,8 @@ option('readline', |
62 |
+ type: 'feature', |
63 |
+ value: 'auto', |
64 |
+ description: 'enable readline support for the mu4e repl') |
65 |
++ |
66 |
++option('emacs', |
67 |
++ type : 'feature', |
68 |
++ value: 'disabled', |
69 |
++ description: 'build mu4e') |
70 |
+-- |
71 |
+2.35.1 |
72 |
+ |
73 |
|
74 |
diff --git a/net-mail/mu/mu-1.7.12.ebuild b/net-mail/mu/mu-1.7.12.ebuild |
75 |
new file mode 100644 |
76 |
index 000000000000..02358e6b56c8 |
77 |
--- /dev/null |
78 |
+++ b/net-mail/mu/mu-1.7.12.ebuild |
79 |
@@ -0,0 +1,83 @@ |
80 |
+# Copyright 1999-2022 Gentoo Authors |
81 |
+# Distributed under the terms of the GNU General Public License v2 |
82 |
+ |
83 |
+EAPI=8 |
84 |
+ |
85 |
+inherit elisp-common meson |
86 |
+ |
87 |
+DESCRIPTION="Set of tools to deal with Maildirs, in particular, searching and indexing" |
88 |
+HOMEPAGE="https://www.djcbsoftware.nl/code/mu/ https://github.com/djcb/mu" |
89 |
+SRC_URI="https://dev.gentoo.org/~matthew/distfiles/${P}.tar.xz" |
90 |
+ |
91 |
+LICENSE="GPL-3+" |
92 |
+SLOT="0" |
93 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~x64-macos" |
94 |
+IUSE="emacs readline" |
95 |
+ |
96 |
+DEPEND=" |
97 |
+ dev-libs/glib:2 |
98 |
+ dev-libs/gmime:3.0 |
99 |
+ >=dev-libs/xapian-1.4:= |
100 |
+ emacs? ( >=app-editors/emacs-25.3:* ) |
101 |
+ readline? ( sys-libs/readline:= )" |
102 |
+RDEPEND="${DEPEND}" |
103 |
+BDEPEND=" |
104 |
+ sys-apps/texinfo |
105 |
+ virtual/pkgconfig |
106 |
+" |
107 |
+ |
108 |
+PATCHES=( "${FILESDIR}"/${PN}-1.7.12-optional-mu4e.patch ) |
109 |
+ |
110 |
+SITEFILE="70mu-gentoo-autoload.el" |
111 |
+ |
112 |
+src_prepare() { |
113 |
+ default |
114 |
+ |
115 |
+ # Don't install NEWS.org into /usr/share/doc. |
116 |
+ sed -i '/NEWS.org/,+1 d' meson.build || die |
117 |
+ |
118 |
+ # Instead, put it in /usr/share/doc/${PF}. |
119 |
+ sed -i "/MU_DOC_DIR/s/mu/${PF}/" mu4e/meson.build || die |
120 |
+} |
121 |
+ |
122 |
+src_configure() { |
123 |
+ local emesonargs=( |
124 |
+ $(meson_feature emacs) |
125 |
+ $(meson_feature readline) |
126 |
+ # NOTE: Guile interface is deprecated to be removed shortly. |
127 |
+ -Dguile=disabled |
128 |
+ -Dtoys=disabled |
129 |
+ ) |
130 |
+ meson_src_configure |
131 |
+} |
132 |
+ |
133 |
+src_install() { |
134 |
+ meson_src_install |
135 |
+ |
136 |
+ # Since meson no longer installs NEWS.org, install it with dodoc. |
137 |
+ # Also, it must be uncompressed so that it can be viewed with |
138 |
+ # mu4e-info. |
139 |
+ docompress -x /usr/share/doc/${PF}/NEWS.org |
140 |
+ dodoc NEWS.org |
141 |
+} |
142 |
+ |
143 |
+pkg_preinst() { |
144 |
+ if [[ -n ${REPLACING_VERSIONS} ]]; then |
145 |
+ elog "After upgrading from an old major version, you should" |
146 |
+ elog "rebuild your mail index." |
147 |
+ fi |
148 |
+} |
149 |
+ |
150 |
+pkg_postinst() { |
151 |
+ if use emacs; then |
152 |
+ einfo "To use mu4e you need to configure it in your .emacs file" |
153 |
+ einfo "See the manual for more information:" |
154 |
+ einfo "https://www.djcbsoftware.nl/code/mu/mu4e/" |
155 |
+ |
156 |
+ elisp-site-regen |
157 |
+ fi |
158 |
+} |
159 |
+ |
160 |
+pkg_postrm() { |
161 |
+ use emacs && elisp-site-regen |
162 |
+} |