1 |
commit: ecf8400d1d765ac5a48ba241042ee79b8cb7106a |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 17 03:18:59 2021 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 17 03:19:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecf8400d |
7 |
|
8 |
net-mail/notmuch: drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
net-mail/notmuch/Manifest | 4 - |
14 |
...-Use-loopback-IP-address-rather-than-name.patch | 61 ----- |
15 |
net-mail/notmuch/notmuch-0.29.3-r2.ebuild | 230 ----------------- |
16 |
net-mail/notmuch/notmuch-0.30-r1.ebuild | 214 ---------------- |
17 |
net-mail/notmuch/notmuch-0.31-r2.ebuild | 276 -------------------- |
18 |
net-mail/notmuch/notmuch-0.31.2.ebuild | 277 --------------------- |
19 |
net-mail/notmuch/notmuch-0.31.ebuild | 216 ---------------- |
20 |
7 files changed, 1278 deletions(-) |
21 |
|
22 |
diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest |
23 |
index 7b8d75a5a02..447108fd721 100644 |
24 |
--- a/net-mail/notmuch/Manifest |
25 |
+++ b/net-mail/notmuch/Manifest |
26 |
@@ -1,6 +1,2 @@ |
27 |
DIST database-v1.tar.xz 204876 BLAKE2B 846a8d2f17edb61ed1c3d3c655becd1f60b4046772058706f13d516f65421a5105593660f1c556907bb2bb9607a3c2521243d1be07bffb70817ad3b8461680ca SHA512 e2d87373e00b65756d7fea40c54fb236d7a37ce839145c3afd99ab26efdc17796e540c021e2c24e521df2d0a01ccbf918994f87a0d83235ff9b109a51555b3d0 |
28 |
-DIST notmuch-0.29.3.tar.xz 660536 BLAKE2B bd5d62eba06102acbc0615cd97ac9ff5578c1f68d50b24a79ea9fb1ea77850d84e0713fb648cb04e74a61ac3321ea5ef82db714786adf38ea10d00c5846decff SHA512 b1e0b47ebf2d2de0ccd39976782eb8a7b417e36f2f9d78ef19e27e55719a02ee919508843a0eaf258f58138914ab2e8796d2fc1782b9cfe2d8937abb6184be65 |
29 |
-DIST notmuch-0.30.tar.xz 711904 BLAKE2B fb1523f3939b78797e448e804fc52c4fe1e4e8ff87b346917488d3911027b9ccb67b9fddf611f0e960fd1e158463cbe005e038f31bb54549e2a922926dd512bd SHA512 a5c812eb141c293c61b5483eafd31d3e3ab19b2c84429a1558986c415d30ead4afa79db64b2672e9549a40f5eb4c69e54ea5ccccbeeaeb9c783051c3f965a65e |
30 |
-DIST notmuch-0.31.2.tar.xz 713388 BLAKE2B 20029f55206b66e7956316fca2d16ae53a49fc196ea2e730ae5ebd96ce893fa2065b7eee9b625629bbb0d3816a70d98e8943920cf8895ef81a97a1d8dc59dd62 SHA512 b134ef79648cb6fe9f17b2f1b600d651d57359ae9fa576c808b794aa64a09955f0597a624cc3c498da4ef56e44bca6bb485bc402c2dff48cd000959f9a9ceeaa |
31 |
DIST notmuch-0.31.3.tar.xz 713900 BLAKE2B 64aa5c707a74544d31f1dce4e49f3e19cf8c733dfe6f0761dec5522eae94bacf0c01ab7c8212373f1857eeecbad569482365a53a10f56dfee72cefc8d3f4f05a SHA512 99119216b7ef7f9e336b11d03ebb61d9667a8fbddcf6fccc49b17d07f07867f0342b2766375e164b58eaa9a43237ec4d6567d616fe8813b929d28b203aedfa44 |
32 |
-DIST notmuch-0.31.tar.xz 713144 BLAKE2B 91b0a01543e438e6ccb40a01ad0a100a5c6ae15fe832bb29367d4bc288dae5a915f89a743ecee814041caf53430e2593cb4b5f69faaec396ad6dacfe8cc67d2f SHA512 928acc07b9dbed4275e7d39d94202bea7685e9d433a7bf4c07e40e191ed4fe8cf15ac04c18792e46f4605ffac548b942998005d8176a58ad76c82d4085a408e5 |
33 |
|
34 |
diff --git a/net-mail/notmuch/files/0.29.3-0001-Use-loopback-IP-address-rather-than-name.patch b/net-mail/notmuch/files/0.29.3-0001-Use-loopback-IP-address-rather-than-name.patch |
35 |
deleted file mode 100644 |
36 |
index e4722469595..00000000000 |
37 |
--- a/net-mail/notmuch/files/0.29.3-0001-Use-loopback-IP-address-rather-than-name.patch |
38 |
+++ /dev/null |
39 |
@@ -1,61 +0,0 @@ |
40 |
-From 59b5bfb6e2095c62925b31e087571506edae7956 Mon Sep 17 00:00:00 2001 |
41 |
-From: =?UTF-8?q?Amadeusz=20Piotr=20=C5=BBo=C5=82nowski?= |
42 |
- <aidecoe@×××××××.name> |
43 |
-Date: Sun, 7 Jul 2019 11:33:09 +0100 |
44 |
-Subject: [PATCH] Use loopback IP address rather than name |
45 |
- |
46 |
---- |
47 |
- test/smtp-dummy.c | 8 ++++---- |
48 |
- test/test-lib.sh | 2 +- |
49 |
- 2 files changed, 5 insertions(+), 5 deletions(-) |
50 |
- |
51 |
-diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c |
52 |
-index a7c1fe4f..822a986a 100644 |
53 |
---- a/test/smtp-dummy.c |
54 |
-+++ b/test/smtp-dummy.c |
55 |
-@@ -76,7 +76,7 @@ process_command (FILE *peer, FILE *output, const char *command) |
56 |
- fprintf (peer, "502 not implemented\r\n"); |
57 |
- fflush (peer); |
58 |
- } else if (STRNCMP_LITERAL (command, "HELO ") == 0) { |
59 |
-- fprintf (peer, "250 localhost\r\n"); |
60 |
-+ fprintf (peer, "250 127.0.0.1\r\n"); |
61 |
- fflush (peer); |
62 |
- } else if (STRNCMP_LITERAL (command, "MAIL FROM:") == 0 || |
63 |
- STRNCMP_LITERAL (command, "RCPT TO:") == 0) { |
64 |
-@@ -105,7 +105,7 @@ do_smtp_to_file (FILE *peer, FILE *output) |
65 |
- size_t line_size; |
66 |
- ssize_t line_len; |
67 |
- |
68 |
-- fprintf (peer, "220 localhost smtp-dummy\r\n"); |
69 |
-+ fprintf (peer, "220 127.0.0.1 smtp-dummy\r\n"); |
70 |
- fflush (peer); |
71 |
- |
72 |
- while ((line_len = getline (&line, &line_size, peer)) != -1) { |
73 |
-@@ -183,9 +183,9 @@ main (int argc, char *argv[]) |
74 |
- goto DONE; |
75 |
- } |
76 |
- |
77 |
-- hostinfo = gethostbyname ("localhost"); |
78 |
-+ hostinfo = gethostbyname ("127.0.0.1"); |
79 |
- if (hostinfo == NULL) { |
80 |
-- fprintf (stderr, "Unknown host: localhost\n"); |
81 |
-+ fprintf (stderr, "Unknown host: 127.0.0.1\n"); |
82 |
- ret = 1; |
83 |
- goto DONE; |
84 |
- } |
85 |
-diff --git a/test/test-lib.sh b/test/test-lib.sh |
86 |
-index 616cb674..dd887773 100644 |
87 |
---- a/test/test-lib.sh |
88 |
-+++ b/test/test-lib.sh |
89 |
-@@ -336,7 +336,7 @@ emacs_deliver_message () |
90 |
- test_emacs \ |
91 |
- "(let ((message-send-mail-function 'message-smtpmail-send-it) |
92 |
- (mail-host-address \"example.com\") |
93 |
-- (smtpmail-smtp-server \"localhost\") |
94 |
-+ (smtpmail-smtp-server \"127.0.0.1\") |
95 |
- (smtpmail-smtp-service \"${smtp_dummy_port}\")) |
96 |
- (notmuch-mua-mail) |
97 |
- (message-goto-to) |
98 |
--- |
99 |
-2.19.2 |
100 |
- |
101 |
|
102 |
diff --git a/net-mail/notmuch/notmuch-0.29.3-r2.ebuild b/net-mail/notmuch/notmuch-0.29.3-r2.ebuild |
103 |
deleted file mode 100644 |
104 |
index 31d62079eee..00000000000 |
105 |
--- a/net-mail/notmuch/notmuch-0.29.3-r2.ebuild |
106 |
+++ /dev/null |
107 |
@@ -1,230 +0,0 @@ |
108 |
-# Copyright 1999-2020 Gentoo Authors |
109 |
-# Distributed under the terms of the GNU General Public License v2 |
110 |
- |
111 |
-EAPI=7 |
112 |
- |
113 |
-DISTUTILS_OPTIONAL=1 |
114 |
-NEED_EMACS="24.1" |
115 |
-PYTHON_COMPAT=( python3_7 ) |
116 |
- |
117 |
-inherit bash-completion-r1 distutils-r1 elisp-common eutils flag-o-matic \ |
118 |
- pax-utils readme.gentoo-r1 toolchain-funcs |
119 |
- |
120 |
-DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" |
121 |
-HOMEPAGE="https://notmuchmail.org/" |
122 |
-SRC_URI="https://notmuchmail.org/releases/${P}.tar.xz |
123 |
- test? ( https://notmuchmail.org/releases/test-databases/database-v1.tar.xz )" |
124 |
- |
125 |
-LICENSE="GPL-3" |
126 |
-# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is |
127 |
-# meant to be binary backward compatible. |
128 |
-SLOT="0/5" |
129 |
-KEYWORDS="~alpha amd64 ~ppc64 x86" |
130 |
-REQUIRED_USE=" |
131 |
- nmbug? ( python ) |
132 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
133 |
- test? ( crypt emacs python valgrind ) |
134 |
-" |
135 |
-IUSE="crypt doc emacs mutt nmbug python test valgrind" |
136 |
-RESTRICT="!test? ( test )" |
137 |
- |
138 |
-BDEPEND=" |
139 |
- virtual/pkgconfig |
140 |
- doc? ( |
141 |
- app-doc/doxygen |
142 |
- dev-python/mock[${PYTHON_USEDEP}] |
143 |
- dev-python/sphinx |
144 |
- sys-apps/texinfo |
145 |
- ) |
146 |
-" |
147 |
-CDEPEND=" |
148 |
- dev-libs/glib |
149 |
- dev-libs/gmime:3.0[crypt] |
150 |
- >=dev-libs/xapian-1.4.8:= |
151 |
- sys-libs/talloc |
152 |
- sys-libs/zlib |
153 |
- emacs? ( >=app-editors/emacs-${NEED_EMACS}:* ) |
154 |
- python? ( ${PYTHON_DEPS} ) |
155 |
-" |
156 |
-DEPEND="${CDEPEND} |
157 |
- test? ( |
158 |
- >=app-editors/emacs-${NEED_EMACS}:*[libxml2] |
159 |
- app-misc/dtach |
160 |
- sys-devel/gdb |
161 |
- crypt? ( app-crypt/gnupg dev-libs/openssl ) |
162 |
- ) |
163 |
- valgrind? ( dev-util/valgrind ) |
164 |
-" |
165 |
-RDEPEND="${CDEPEND} |
166 |
- crypt? ( app-crypt/gnupg ) |
167 |
- mutt? ( |
168 |
- dev-perl/File-Which |
169 |
- dev-perl/Mail-Box |
170 |
- dev-perl/MailTools |
171 |
- dev-perl/String-ShellQuote |
172 |
- dev-perl/Term-ReadLine-Gnu |
173 |
- virtual/perl-Digest-SHA |
174 |
- virtual/perl-File-Path |
175 |
- virtual/perl-Getopt-Long |
176 |
- virtual/perl-Pod-Parser |
177 |
- ) |
178 |
- nmbug? ( dev-vcs/git ) |
179 |
-" |
180 |
- |
181 |
-DOCS=( AUTHORS NEWS README ) |
182 |
-DOC_CONTENTS="There are a few backward-incompatible changes between |
183 |
-notmuch version 0.18 < x <= 0.18. Please consult the NEWS file (0.18 |
184 |
-section) before first use." |
185 |
-MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" |
186 |
-PATCHES=( |
187 |
- "${FILESDIR}/${PV}-0001-Use-loopback-IP-address-rather-than-name.patch" |
188 |
-) |
189 |
-SITEFILE="50${PN}-gentoo.el" |
190 |
- |
191 |
-bindings() { |
192 |
- local rc=0 |
193 |
- if use $1; then |
194 |
- pushd bindings/$1 || die |
195 |
- shift |
196 |
- "$@" |
197 |
- rc=$? |
198 |
- popd || die |
199 |
- fi |
200 |
- return $rc |
201 |
-} |
202 |
- |
203 |
-pkg_setup() { |
204 |
- use emacs && elisp-check-emacs-version |
205 |
-} |
206 |
- |
207 |
-src_unpack() { |
208 |
- unpack "${P}".tar.xz |
209 |
- if use test; then |
210 |
- mkdir -p "${S}"/test/test-databases || die |
211 |
- cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die |
212 |
- fi |
213 |
-} |
214 |
- |
215 |
-src_prepare() { |
216 |
- local _deps="" |
217 |
- default |
218 |
- |
219 |
- # Python bindings |
220 |
- bindings python distutils-r1_src_prepare |
221 |
- bindings python mv README README-python || die |
222 |
- mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die |
223 |
- |
224 |
- # Ensure that a new Makefile.config will be generated |
225 |
- rm -f Makefile.config || die |
226 |
- |
227 |
- # Override dependencies for 'install' target |
228 |
- use doc && _deps="install-info" |
229 |
- sed -e "s/^install:.\+/install: all ${_deps}/" -i Makefile.local || die |
230 |
- |
231 |
- if use test; then |
232 |
- append-cflags -g |
233 |
- append-cxxflags -g |
234 |
- fi |
235 |
- |
236 |
- if [[ ${CHOST} == *-solaris* ]] ; then |
237 |
- # Non-autoconf configure |
238 |
- append-ldflags -lnsl -lsocket |
239 |
- fi |
240 |
-} |
241 |
- |
242 |
-src_configure() { |
243 |
- python_setup # For sphinx |
244 |
- local _args=( |
245 |
- --bashcompletiondir="$(get_bashcompdir)" |
246 |
- --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" |
247 |
- --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" |
248 |
- --without-desktop |
249 |
- --without-ruby |
250 |
- --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" |
251 |
- $(use_with emacs) |
252 |
- $(use_with doc api-docs) |
253 |
- ) |
254 |
- tc-export CC CXX |
255 |
- econf "${_args[@]}" |
256 |
-} |
257 |
- |
258 |
-src_compile() { |
259 |
- python_setup # For sphinx |
260 |
- V=1 default |
261 |
- bindings python distutils-r1_src_compile |
262 |
- |
263 |
- if use mutt; then |
264 |
- pushd contrib/notmuch-mutt || die |
265 |
- emake notmuch-mutt.1 |
266 |
- popd || die |
267 |
- fi |
268 |
- |
269 |
- if use doc; then |
270 |
- pydocs() { |
271 |
- pushd docs || die |
272 |
- emake html |
273 |
- rm -r html/_sources || die |
274 |
- rm html/{objects.inv,.buildinfo} || die |
275 |
- mkdir -p ../html && mv html ../html/python || die |
276 |
- popd || die |
277 |
- } |
278 |
- LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs |
279 |
- fi |
280 |
-} |
281 |
- |
282 |
-src_test() { |
283 |
- pax-mark -m notmuch |
284 |
- LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default |
285 |
- pax-mark -ze notmuch |
286 |
-} |
287 |
- |
288 |
-src_install() { |
289 |
- default |
290 |
- |
291 |
- if use doc; then |
292 |
- doman doc/_build/man/man?/*.? |
293 |
- fi |
294 |
- |
295 |
- if use emacs; then |
296 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
297 |
- fi |
298 |
- |
299 |
- if use nmbug; then |
300 |
- dobin devel/nmbug/nmbug |
301 |
- dobin devel/nmbug/notmuch-report |
302 |
- fi |
303 |
- |
304 |
- if use mutt; then |
305 |
- pushd contrib/notmuch-mutt || die |
306 |
- dobin notmuch-mutt |
307 |
- doman notmuch-mutt.1 |
308 |
- insinto /etc/mutt |
309 |
- doins notmuch-mutt.rc |
310 |
- dodoc README-mutt |
311 |
- popd || die |
312 |
- fi |
313 |
- |
314 |
- DOCS="" bindings python distutils-r1_src_install |
315 |
- use doc && bindings python dodoc -r html |
316 |
-} |
317 |
- |
318 |
-pkg_preinst() { |
319 |
- local _rcfile="/etc/mutt/notmuch-mutt.rc" |
320 |
- if use mutt && ! [[ -e ${ROOT}${_rcfile} ]]; then |
321 |
- elog "To enable notmuch support in mutt, add the following line" |
322 |
- elog "to your mutt config file:" |
323 |
- elog "" |
324 |
- elog " source ${_rcfile}" |
325 |
- fi |
326 |
-} |
327 |
- |
328 |
-pkg_postinst() { |
329 |
- use emacs && elisp-site-regen |
330 |
- if has_version '<net-mail/notmuch-0.18'; then |
331 |
- FORCE_PRINT_ELOG=1 readme.gentoo_print_elog |
332 |
- fi |
333 |
-} |
334 |
- |
335 |
-pkg_postrm() { |
336 |
- use emacs && elisp-site-regen |
337 |
-} |
338 |
|
339 |
diff --git a/net-mail/notmuch/notmuch-0.30-r1.ebuild b/net-mail/notmuch/notmuch-0.30-r1.ebuild |
340 |
deleted file mode 100644 |
341 |
index 2e892bb5e51..00000000000 |
342 |
--- a/net-mail/notmuch/notmuch-0.30-r1.ebuild |
343 |
+++ /dev/null |
344 |
@@ -1,214 +0,0 @@ |
345 |
-# Copyright 1999-2021 Gentoo Authors |
346 |
-# Distributed under the terms of the GNU General Public License v2 |
347 |
- |
348 |
-EAPI=7 |
349 |
- |
350 |
-DISTUTILS_OPTIONAL=1 |
351 |
-NEED_EMACS="24.1" |
352 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
353 |
- |
354 |
-inherit bash-completion-r1 distutils-r1 elisp-common eutils flag-o-matic \ |
355 |
- pax-utils toolchain-funcs |
356 |
- |
357 |
-DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" |
358 |
-HOMEPAGE="https://notmuchmail.org/" |
359 |
-SRC_URI="https://notmuchmail.org/releases/${P}.tar.xz |
360 |
- test? ( https://notmuchmail.org/releases/test-databases/database-v1.tar.xz )" |
361 |
- |
362 |
-LICENSE="GPL-3" |
363 |
-# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is |
364 |
-# meant to be binary backward compatible. |
365 |
-SLOT="0/5" |
366 |
-KEYWORDS="~alpha amd64 ~arm64 ~ppc64 x86" |
367 |
-REQUIRED_USE=" |
368 |
- nmbug? ( python ) |
369 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
370 |
- test? ( crypt emacs python valgrind ) |
371 |
-" |
372 |
-IUSE="crypt doc emacs mutt nmbug python test valgrind" |
373 |
-RESTRICT="!test? ( test )" |
374 |
- |
375 |
-BDEPEND=" |
376 |
- virtual/pkgconfig |
377 |
- doc? ( |
378 |
- app-doc/doxygen |
379 |
- dev-python/mock[${PYTHON_USEDEP}] |
380 |
- dev-python/sphinx |
381 |
- sys-apps/texinfo |
382 |
- ) |
383 |
-" |
384 |
-COMMON_DEPEND=" |
385 |
- dev-libs/glib |
386 |
- dev-libs/gmime:3.0[crypt] |
387 |
- >=dev-libs/xapian-1.4.14:= |
388 |
- sys-libs/talloc |
389 |
- sys-libs/zlib |
390 |
- emacs? ( >=app-editors/emacs-${NEED_EMACS}:* ) |
391 |
- python? ( |
392 |
- ${PYTHON_DEPS} |
393 |
- dev-python/cffi |
394 |
- ) |
395 |
-" |
396 |
-DEPEND="${COMMON_DEPEND} |
397 |
- test? ( |
398 |
- >=app-editors/emacs-${NEED_EMACS}:*[libxml2] |
399 |
- app-misc/dtach |
400 |
- sys-devel/gdb |
401 |
- crypt? ( |
402 |
- app-crypt/gnupg |
403 |
- dev-libs/openssl |
404 |
- ) |
405 |
- ) |
406 |
- valgrind? ( dev-util/valgrind ) |
407 |
-" |
408 |
-RDEPEND="${COMMON_DEPEND} |
409 |
- crypt? ( app-crypt/gnupg ) |
410 |
- mutt? ( |
411 |
- dev-perl/File-Which |
412 |
- dev-perl/Mail-Box |
413 |
- dev-perl/MailTools |
414 |
- dev-perl/String-ShellQuote |
415 |
- dev-perl/Term-ReadLine-Gnu |
416 |
- virtual/perl-Digest-SHA |
417 |
- virtual/perl-File-Path |
418 |
- virtual/perl-Getopt-Long |
419 |
- virtual/perl-Pod-Parser |
420 |
- ) |
421 |
- nmbug? ( dev-vcs/git ) |
422 |
-" |
423 |
- |
424 |
-DOCS=( AUTHORS NEWS README ) |
425 |
-SITEFILE="50${PN}-gentoo.el" |
426 |
- |
427 |
-bindings() { |
428 |
- local rc=0 |
429 |
- if use python; then |
430 |
- pushd bindings/python-cffi || die |
431 |
- ${@} |
432 |
- rc=${?} |
433 |
- popd || die |
434 |
- |
435 |
- # Old deprecated bindings, #736204 |
436 |
- pushd bindings/python || die |
437 |
- ${@} |
438 |
- rc=${?} |
439 |
- popd || die |
440 |
- fi |
441 |
- return ${rc} |
442 |
-} |
443 |
- |
444 |
-pkg_setup() { |
445 |
- use emacs && elisp-check-emacs-version |
446 |
-} |
447 |
- |
448 |
-src_unpack() { |
449 |
- unpack "${P}".tar.xz |
450 |
- if use test; then |
451 |
- mkdir -p "${S}"/test/test-databases || die |
452 |
- cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die |
453 |
- fi |
454 |
-} |
455 |
- |
456 |
-src_prepare() { |
457 |
- local _deps="" |
458 |
- default |
459 |
- |
460 |
- # Python bindings |
461 |
- bindings distutils-r1_src_prepare |
462 |
- mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die |
463 |
- |
464 |
- # Override dependencies for 'install' target |
465 |
- use doc && _deps="install-info" |
466 |
- sed -e "s/^install:.\+/install: all ${_deps}/" -i Makefile.local || die |
467 |
- |
468 |
- if use test; then |
469 |
- append-cflags -g |
470 |
- append-cxxflags -g |
471 |
- fi |
472 |
- |
473 |
- if [[ ${CHOST} == *-solaris* ]] ; then |
474 |
- # Non-autoconf configure |
475 |
- append-ldflags -lnsl -lsocket |
476 |
- fi |
477 |
-} |
478 |
- |
479 |
-src_configure() { |
480 |
- python_setup # For sphinx |
481 |
- local _args=( |
482 |
- --bashcompletiondir="$(get_bashcompdir)" |
483 |
- --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" |
484 |
- --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" |
485 |
- --without-desktop |
486 |
- --without-ruby |
487 |
- --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" |
488 |
- $(use_with emacs) |
489 |
- $(use_with doc api-docs) |
490 |
- ) |
491 |
- tc-export CC CXX |
492 |
- econf "${_args[@]}" |
493 |
-} |
494 |
- |
495 |
-src_compile() { |
496 |
- python_setup # For sphinx |
497 |
- V=1 default |
498 |
- bindings distutils-r1_src_compile |
499 |
- |
500 |
- if use mutt; then |
501 |
- pushd contrib/notmuch-mutt || die |
502 |
- emake notmuch-mutt.1 |
503 |
- popd || die |
504 |
- fi |
505 |
-} |
506 |
- |
507 |
-src_test() { |
508 |
- pax-mark -m notmuch |
509 |
- LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" V=1 default |
510 |
- pax-mark -ze notmuch |
511 |
-} |
512 |
- |
513 |
-src_install() { |
514 |
- default |
515 |
- |
516 |
- if use doc; then |
517 |
- doman doc/_build/man/man?/*.? |
518 |
- fi |
519 |
- |
520 |
- if use emacs; then |
521 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
522 |
- fi |
523 |
- |
524 |
- if use nmbug; then |
525 |
- dobin devel/nmbug/nmbug |
526 |
- dobin devel/nmbug/notmuch-report |
527 |
- fi |
528 |
- |
529 |
- if use mutt; then |
530 |
- pushd contrib/notmuch-mutt || die |
531 |
- dobin notmuch-mutt |
532 |
- doman notmuch-mutt.1 |
533 |
- insinto /etc/mutt |
534 |
- doins notmuch-mutt.rc |
535 |
- dodoc README-mutt |
536 |
- popd || die |
537 |
- fi |
538 |
- |
539 |
- DOCS="" bindings distutils-r1_src_install |
540 |
-} |
541 |
- |
542 |
-pkg_preinst() { |
543 |
- local _rcfile="/etc/mutt/notmuch-mutt.rc" |
544 |
- if use mutt && ! [[ -e ${ROOT}${_rcfile} ]]; then |
545 |
- elog "To enable notmuch support in mutt, add the following line" |
546 |
- elog "to your mutt config file:" |
547 |
- elog "" |
548 |
- elog " source ${_rcfile}" |
549 |
- fi |
550 |
-} |
551 |
- |
552 |
-pkg_postinst() { |
553 |
- use emacs && elisp-site-regen |
554 |
-} |
555 |
- |
556 |
-pkg_postrm() { |
557 |
- use emacs && elisp-site-regen |
558 |
-} |
559 |
|
560 |
diff --git a/net-mail/notmuch/notmuch-0.31-r2.ebuild b/net-mail/notmuch/notmuch-0.31-r2.ebuild |
561 |
deleted file mode 100644 |
562 |
index a9071674030..00000000000 |
563 |
--- a/net-mail/notmuch/notmuch-0.31-r2.ebuild |
564 |
+++ /dev/null |
565 |
@@ -1,276 +0,0 @@ |
566 |
-# Copyright 1999-2021 Gentoo Authors |
567 |
-# Distributed under the terms of the GNU General Public License v2 |
568 |
- |
569 |
-EAPI=7 |
570 |
- |
571 |
-DISTUTILS_OPTIONAL=1 |
572 |
-NEED_EMACS="24.1" |
573 |
-PYTHON_COMPAT=( python3_{7,8,9} pypy3 ) |
574 |
- |
575 |
-inherit bash-completion-r1 desktop distutils-r1 elisp-common flag-o-matic pax-utils toolchain-funcs xdg-utils |
576 |
- |
577 |
-DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" |
578 |
-HOMEPAGE="https://notmuchmail.org/" |
579 |
-SRC_URI="https://notmuchmail.org/releases/${P}.tar.xz |
580 |
- test? ( https://notmuchmail.org/releases/test-databases/database-v1.tar.xz )" |
581 |
- |
582 |
-LICENSE="GPL-3" |
583 |
-# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is |
584 |
-# meant to be binary backward compatible. |
585 |
-SLOT="0/5" |
586 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc64 ~x86" |
587 |
-REQUIRED_USE=" |
588 |
- apidoc? ( doc ) |
589 |
- nmbug? ( python ) |
590 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
591 |
- test? ( crypt emacs python valgrind ) |
592 |
-" |
593 |
-IUSE="apidoc crypt doc emacs mutt nmbug python test valgrind" |
594 |
-RESTRICT="!test? ( test )" |
595 |
- |
596 |
-BDEPEND=" |
597 |
- virtual/pkgconfig |
598 |
- apidoc? ( |
599 |
- app-doc/doxygen |
600 |
- dev-lang/perl |
601 |
- ) |
602 |
- doc? ( |
603 |
- dev-python/sphinx |
604 |
- sys-apps/texinfo |
605 |
- ) |
606 |
- python? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
607 |
-" |
608 |
- |
609 |
-COMMON_DEPEND=" |
610 |
- dev-libs/glib |
611 |
- dev-libs/gmime:3.0[crypt] |
612 |
- >=dev-libs/xapian-1.4.0:= |
613 |
- sys-libs/talloc |
614 |
- sys-libs/zlib:= |
615 |
- emacs? ( >=app-editors/emacs-${NEED_EMACS}:* ) |
616 |
- python? ( |
617 |
- ${PYTHON_DEPS} |
618 |
- virtual/python-cffi[${PYTHON_USEDEP}] |
619 |
- ) |
620 |
-" |
621 |
- |
622 |
-DEPEND="${COMMON_DEPEND} |
623 |
- test? ( |
624 |
- >=app-editors/emacs-${NEED_EMACS}:*[libxml2] |
625 |
- app-misc/dtach |
626 |
- sys-devel/gdb |
627 |
- crypt? ( |
628 |
- app-crypt/gnupg |
629 |
- dev-libs/openssl |
630 |
- ) |
631 |
- ) |
632 |
- valgrind? ( dev-util/valgrind ) |
633 |
-" |
634 |
- |
635 |
-RDEPEND="${COMMON_DEPEND} |
636 |
- crypt? ( app-crypt/gnupg ) |
637 |
- mutt? ( |
638 |
- dev-perl/File-Which |
639 |
- dev-perl/Mail-Box |
640 |
- dev-perl/MailTools |
641 |
- dev-perl/String-ShellQuote |
642 |
- dev-perl/Term-ReadLine-Gnu |
643 |
- virtual/perl-Digest-SHA |
644 |
- virtual/perl-File-Path |
645 |
- virtual/perl-Getopt-Long |
646 |
- virtual/perl-Pod-Parser |
647 |
- ) |
648 |
- nmbug? ( dev-vcs/git ) |
649 |
-" |
650 |
- |
651 |
-SITEFILE="50${PN}-gentoo.el" |
652 |
- |
653 |
-pkg_setup() { |
654 |
- use emacs && elisp-check-emacs-version |
655 |
-} |
656 |
- |
657 |
-src_unpack() { |
658 |
- unpack "${P}".tar.xz |
659 |
- if use test; then |
660 |
- mkdir -p "${S}"/test/test-databases || die |
661 |
- cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die |
662 |
- fi |
663 |
-} |
664 |
- |
665 |
-src_prepare() { |
666 |
- default |
667 |
- |
668 |
- use python && distutils-r1_src_prepare |
669 |
- |
670 |
- mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die |
671 |
- |
672 |
- # Override 'install' target, we want to install manpages with doman, but let it install texinfo files. |
673 |
- sed -i "s/all install-man install-info/all $(usex doc install-info '')/" "Makefile.local" || die |
674 |
- |
675 |
- use test && append-flags '-g' |
676 |
- |
677 |
- # Non-autoconf configure |
678 |
- [[ ${CHOST} == *-solaris* ]] && append-ldflags '-lnsl' '-lsocket' |
679 |
-} |
680 |
- |
681 |
-src_configure() { |
682 |
- python_setup # For sphinx |
683 |
- |
684 |
- tc-export CC CXX |
685 |
- |
686 |
- local myconf=( |
687 |
- --bashcompletiondir="$(get_bashcompdir)" |
688 |
- --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" |
689 |
- --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" |
690 |
- --without-desktop |
691 |
- --without-ruby |
692 |
- --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" |
693 |
- $(use_with apidoc api-docs) |
694 |
- $(use_with doc docs) |
695 |
- $(use_with emacs) |
696 |
- ) |
697 |
- |
698 |
- econf "${myconf[@]}" |
699 |
-} |
700 |
- |
701 |
-python_compile() { |
702 |
- pushd bindings/python-cffi > /dev/null || die |
703 |
- distutils-r1_python_compile |
704 |
- popd > /dev/null || die |
705 |
- |
706 |
- # TODO: we want to drop those, research revdeps |
707 |
- pushd bindings/python > /dev/null || die |
708 |
- distutils-r1_python_compile |
709 |
- popd > /dev/null || die |
710 |
-} |
711 |
- |
712 |
-python_compile_all() { |
713 |
- use doc && emake -C bindings/python/docs html |
714 |
-} |
715 |
- |
716 |
-src_compile() { |
717 |
- python_setup # For sphinx |
718 |
- |
719 |
- # prevent race in emacs doc generation |
720 |
- # FileNotFoundError: [Errno 2] No such file or directory: '..work/notmuch-0.31/emacs/notmuch.rsti' |
721 |
- if use emacs; then |
722 |
- use doc && emake -j1 -C emacs docstring.stamp V=1 #nowarn |
723 |
- fi |
724 |
- |
725 |
- emake V=1 |
726 |
- |
727 |
- use python && distutils-r1_src_compile |
728 |
- |
729 |
- if use mutt; then |
730 |
- pushd contrib/notmuch-mutt > /dev/null || die |
731 |
- emake notmuch-mutt.1 |
732 |
- popd > /dev/null || die |
733 |
- fi |
734 |
-} |
735 |
- |
736 |
-python_test() { |
737 |
- # we only have tests for cffi bindings |
738 |
- pushd bindings/python-cffi > /dev/null || die |
739 |
- rm -f tox.ini || die |
740 |
- pytest -vv || die "Tests failed with ${EPYTHON}" |
741 |
- popd > /dev/null || die |
742 |
-} |
743 |
- |
744 |
-src_test() { |
745 |
- local test_failures=() |
746 |
- # NOTMUCH_TEST_SERIALIZE is needed to avoid using gnu parallel (if it's installed) |
747 |
- pax-mark -m notmuch |
748 |
- NOTMUCH_TEST_SERIALIZE=1 \ |
749 |
- LD_LIBRARY_PATH="${S}/lib" \ |
750 |
- nonfatal emake test V=1 OPTIONS="--verbose --tee" || test_failures+=( "'emake tests'" ) |
751 |
- pax-mark -ze notmuch |
752 |
- |
753 |
- # both lib and bin needed for testsuite. |
754 |
- if use python; then |
755 |
- LD_LIBRARY_PATH="${S}/lib" \ |
756 |
- PATH="${S}:${PATH}" \ |
757 |
- nonfatal distutils-r1_src_test || test_failures+=( "'python tests'" ) |
758 |
- fi |
759 |
- |
760 |
- [[ ${test_failures} ]] && die "Tests failed: ${test_failures[@]}" |
761 |
-} |
762 |
- |
763 |
-python_install() { |
764 |
- pushd bindings/python-cffi > /dev/null || die |
765 |
- distutils-r1_python_install |
766 |
- popd > /dev/null || die |
767 |
- |
768 |
- pushd bindings/python > /dev/null || die |
769 |
- distutils-r1_python_install |
770 |
- popd > /dev/null || die |
771 |
-} |
772 |
- |
773 |
-src_install() { |
774 |
- default |
775 |
- |
776 |
- if use doc; then |
777 |
- pushd doc/_build/man/man1 > /dev/null || die |
778 |
- ln notmuch.1 notmuch-setup.1 || die |
779 |
- popd > /dev/null || die |
780 |
- if use apidoc; then |
781 |
- # rename overly generic manpage to avoid clashes |
782 |
- mv doc/_build/man/man3/deprecated.3 \ |
783 |
- doc/_build/man/man3/notmuch-deprecated.3 || die |
784 |
- fi |
785 |
- doman doc/_build/man/man?/*.? |
786 |
- fi |
787 |
- |
788 |
- if use emacs; then |
789 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
790 |
- domenu emacs/notmuch-emacs-mua.desktop |
791 |
- fi |
792 |
- |
793 |
- if use nmbug; then |
794 |
- # TODO: those guys need proper deps |
795 |
- python_fix_shebang devel/nmbug/{nmbug,notmuch-report} |
796 |
- dobin devel/nmbug/{nmbug,notmuch-report} |
797 |
- fi |
798 |
- |
799 |
- if use mutt; then |
800 |
- pushd contrib/notmuch-mutt > /dev/null || die |
801 |
- dobin notmuch-mutt |
802 |
- # this manpage is built by pod2man |
803 |
- doman notmuch-mutt.1 |
804 |
- insinto /etc/mutt |
805 |
- doins notmuch-mutt.rc |
806 |
- dodoc README-mutt |
807 |
- popd > /dev/null || die |
808 |
- fi |
809 |
- |
810 |
- local DOCS=( README{,.rst} INSTALL NEWS ) |
811 |
- einstalldocs |
812 |
- |
813 |
- if use python; then |
814 |
- use doc && local HTML_DOCS=( bindings/python/docs/html/. ) |
815 |
- distutils-r1_src_install |
816 |
- fi |
817 |
-} |
818 |
- |
819 |
-pkg_preinst() { |
820 |
- local _rcfile="/etc/mutt/notmuch-mutt.rc" |
821 |
- if use mutt && ! [[ -e ${ROOT}${_rcfile} ]]; then |
822 |
- elog "To enable notmuch support in mutt, add the following line" |
823 |
- elog "to your mutt config file:" |
824 |
- elog "" |
825 |
- elog " source ${_rcfile}" |
826 |
- fi |
827 |
-} |
828 |
- |
829 |
-pkg_postinst() { |
830 |
- if use emacs; then |
831 |
- elisp-site-regen |
832 |
- xdg_desktop_database_update |
833 |
- fi |
834 |
-} |
835 |
- |
836 |
-pkg_postrm() { |
837 |
- if use emacs; then |
838 |
- elisp-site-regen |
839 |
- xdg_desktop_database_update |
840 |
- fi |
841 |
-} |
842 |
|
843 |
diff --git a/net-mail/notmuch/notmuch-0.31.2.ebuild b/net-mail/notmuch/notmuch-0.31.2.ebuild |
844 |
deleted file mode 100644 |
845 |
index c95d95a83e4..00000000000 |
846 |
--- a/net-mail/notmuch/notmuch-0.31.2.ebuild |
847 |
+++ /dev/null |
848 |
@@ -1,277 +0,0 @@ |
849 |
-# Copyright 1999-2021 Gentoo Authors |
850 |
-# Distributed under the terms of the GNU General Public License v2 |
851 |
- |
852 |
-EAPI=7 |
853 |
- |
854 |
-DISTUTILS_OPTIONAL=1 |
855 |
-NEED_EMACS="24.1" |
856 |
-PYTHON_COMPAT=( python3_{7,8,9} pypy3 ) |
857 |
- |
858 |
-inherit bash-completion-r1 desktop distutils-r1 elisp-common flag-o-matic pax-utils toolchain-funcs xdg-utils |
859 |
- |
860 |
-DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" |
861 |
-HOMEPAGE="https://notmuchmail.org/" |
862 |
-SRC_URI="https://notmuchmail.org/releases/${P}.tar.xz |
863 |
- test? ( https://notmuchmail.org/releases/test-databases/database-v1.tar.xz )" |
864 |
- |
865 |
-LICENSE="GPL-3" |
866 |
-# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is |
867 |
-# meant to be binary backward compatible. |
868 |
-SLOT="0/5" |
869 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc64 x86 ~x64-macos" |
870 |
-REQUIRED_USE=" |
871 |
- apidoc? ( doc ) |
872 |
- nmbug? ( python ) |
873 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
874 |
- test? ( crypt emacs python valgrind ) |
875 |
-" |
876 |
-IUSE="apidoc crypt doc emacs mutt nmbug python test valgrind" |
877 |
-RESTRICT="!test? ( test )" |
878 |
- |
879 |
-BDEPEND=" |
880 |
- virtual/pkgconfig |
881 |
- apidoc? ( |
882 |
- app-doc/doxygen |
883 |
- dev-lang/perl |
884 |
- ) |
885 |
- doc? ( |
886 |
- dev-python/sphinx |
887 |
- sys-apps/texinfo |
888 |
- ) |
889 |
- python? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
890 |
-" |
891 |
- |
892 |
-COMMON_DEPEND=" |
893 |
- dev-libs/glib |
894 |
- dev-libs/gmime:3.0[crypt] |
895 |
- >=dev-libs/xapian-1.4.0:= |
896 |
- sys-libs/talloc |
897 |
- sys-libs/zlib:= |
898 |
- emacs? ( >=app-editors/emacs-${NEED_EMACS}:* ) |
899 |
- python? ( |
900 |
- ${PYTHON_DEPS} |
901 |
- virtual/python-cffi[${PYTHON_USEDEP}] |
902 |
- ) |
903 |
-" |
904 |
- |
905 |
-DEPEND="${COMMON_DEPEND} |
906 |
- test? ( |
907 |
- >=app-editors/emacs-${NEED_EMACS}:*[libxml2] |
908 |
- app-misc/dtach |
909 |
- sys-devel/gdb |
910 |
- crypt? ( |
911 |
- app-crypt/gnupg |
912 |
- dev-libs/openssl |
913 |
- ) |
914 |
- ) |
915 |
- valgrind? ( dev-util/valgrind ) |
916 |
-" |
917 |
- |
918 |
-RDEPEND="${COMMON_DEPEND} |
919 |
- crypt? ( app-crypt/gnupg ) |
920 |
- mutt? ( |
921 |
- dev-perl/File-Which |
922 |
- dev-perl/Mail-Box |
923 |
- dev-perl/MailTools |
924 |
- dev-perl/String-ShellQuote |
925 |
- dev-perl/Term-ReadLine-Gnu |
926 |
- virtual/perl-Digest-SHA |
927 |
- virtual/perl-File-Path |
928 |
- virtual/perl-Getopt-Long |
929 |
- virtual/perl-Pod-Parser |
930 |
- ) |
931 |
- nmbug? ( dev-vcs/git ) |
932 |
-" |
933 |
- |
934 |
-SITEFILE="50${PN}-gentoo.el" |
935 |
- |
936 |
-pkg_setup() { |
937 |
- use emacs && elisp-check-emacs-version |
938 |
-} |
939 |
- |
940 |
-src_unpack() { |
941 |
- unpack "${P}".tar.xz |
942 |
- if use test; then |
943 |
- mkdir -p "${S}"/test/test-databases || die |
944 |
- cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die |
945 |
- fi |
946 |
-} |
947 |
- |
948 |
-src_prepare() { |
949 |
- default |
950 |
- |
951 |
- use python && distutils-r1_src_prepare |
952 |
- |
953 |
- mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die |
954 |
- |
955 |
- # Override 'install' target, we want to install manpages with doman, but let it install texinfo files. |
956 |
- sed -i "s/all install-man install-info/all $(usex doc install-info '')/" "Makefile.local" || die |
957 |
- |
958 |
- use test && append-flags '-g' |
959 |
- |
960 |
- # Non-autoconf configure |
961 |
- [[ ${CHOST} == *-solaris* ]] && append-ldflags '-lnsl' '-lsocket' |
962 |
-} |
963 |
- |
964 |
-src_configure() { |
965 |
- python_setup # For sphinx |
966 |
- |
967 |
- tc-export CC CXX |
968 |
- |
969 |
- local myconf=( |
970 |
- --bashcompletiondir="$(get_bashcompdir)" |
971 |
- --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" |
972 |
- --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" |
973 |
- --without-desktop |
974 |
- --without-ruby |
975 |
- --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" |
976 |
- $(use_with apidoc api-docs) |
977 |
- $(use_with doc docs) |
978 |
- $(use_with emacs) |
979 |
- ) |
980 |
- |
981 |
- econf "${myconf[@]}" |
982 |
-} |
983 |
- |
984 |
-python_compile() { |
985 |
- pushd bindings/python-cffi > /dev/null || die |
986 |
- distutils-r1_python_compile |
987 |
- popd > /dev/null || die |
988 |
- |
989 |
- # TODO: we want to drop those, research revdeps |
990 |
- pushd bindings/python > /dev/null || die |
991 |
- distutils-r1_python_compile |
992 |
- popd > /dev/null || die |
993 |
-} |
994 |
- |
995 |
-python_compile_all() { |
996 |
- use doc && emake -C bindings/python/docs html |
997 |
-} |
998 |
- |
999 |
-src_compile() { |
1000 |
- python_setup # For sphinx |
1001 |
- |
1002 |
- # prevent race in emacs doc generation |
1003 |
- # FileNotFoundError: [Errno 2] No such file or directory: '..work/notmuch-0.31/emacs/notmuch.rsti' |
1004 |
- if use emacs; then |
1005 |
- use doc && emake -j1 -C emacs docstring.stamp V=1 #nowarn |
1006 |
- fi |
1007 |
- |
1008 |
- emake V=1 |
1009 |
- |
1010 |
- use python && distutils-r1_src_compile |
1011 |
- |
1012 |
- if use mutt; then |
1013 |
- pushd contrib/notmuch-mutt > /dev/null || die |
1014 |
- emake notmuch-mutt.1 |
1015 |
- popd > /dev/null || die |
1016 |
- fi |
1017 |
-} |
1018 |
- |
1019 |
-python_test() { |
1020 |
- # we only have tests for cffi bindings |
1021 |
- pushd bindings/python-cffi > /dev/null || die |
1022 |
- rm -f tox.ini || die |
1023 |
- pytest -vv || die "Tests failed with ${EPYTHON}" |
1024 |
- popd > /dev/null || die |
1025 |
-} |
1026 |
- |
1027 |
-src_test() { |
1028 |
- local test_failures=() |
1029 |
- pax-mark -m notmuch |
1030 |
- |
1031 |
- # NOTMUCH_TEST_SERIALIZE is needed to avoid using gnu parallel (if it's installed) |
1032 |
- NOTMUCH_TEST_SERIALIZE=1 \ |
1033 |
- LD_LIBRARY_PATH="${S}/lib" \ |
1034 |
- nonfatal emake test V=1 OPTIONS="--verbose --tee" || test_failures+=( "'emake tests'" ) |
1035 |
- |
1036 |
- pax-mark -ze notmuch |
1037 |
- |
1038 |
- # both lib and bin needed for testsuite. |
1039 |
- if use python; then |
1040 |
- LD_LIBRARY_PATH="${S}/lib" \ |
1041 |
- PATH="${S}:${PATH}" \ |
1042 |
- nonfatal distutils-r1_src_test || test_failures+=( "'python tests'" ) |
1043 |
- fi |
1044 |
- |
1045 |
- [[ ${test_failures} ]] && die "Tests failed: ${test_failures[@]}" |
1046 |
-} |
1047 |
- |
1048 |
-python_install() { |
1049 |
- pushd bindings/python-cffi > /dev/null || die |
1050 |
- distutils-r1_python_install |
1051 |
- popd > /dev/null || die |
1052 |
- |
1053 |
- pushd bindings/python > /dev/null || die |
1054 |
- distutils-r1_python_install |
1055 |
- popd > /dev/null || die |
1056 |
-} |
1057 |
- |
1058 |
-src_install() { |
1059 |
- default |
1060 |
- |
1061 |
- if use doc; then |
1062 |
- pushd doc/_build/man/man1 > /dev/null || die |
1063 |
- ln notmuch.1 notmuch-setup.1 || die |
1064 |
- popd > /dev/null || die |
1065 |
- if use apidoc; then |
1066 |
- # rename overly generic manpage to avoid clashes |
1067 |
- mv doc/_build/man/man3/deprecated.3 \ |
1068 |
- doc/_build/man/man3/notmuch-deprecated.3 || die |
1069 |
- fi |
1070 |
- doman doc/_build/man/man?/*.? |
1071 |
- fi |
1072 |
- |
1073 |
- if use emacs; then |
1074 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
1075 |
- domenu emacs/notmuch-emacs-mua.desktop |
1076 |
- fi |
1077 |
- |
1078 |
- if use nmbug; then |
1079 |
- python_fix_shebang devel/nmbug/{nmbug,notmuch-report} |
1080 |
- dobin devel/nmbug/{nmbug,notmuch-report} |
1081 |
- fi |
1082 |
- |
1083 |
- if use mutt; then |
1084 |
- pushd contrib/notmuch-mutt > /dev/null || die |
1085 |
- dobin notmuch-mutt |
1086 |
- # this manpage is built by pod2man |
1087 |
- doman notmuch-mutt.1 |
1088 |
- insinto /etc/mutt |
1089 |
- doins notmuch-mutt.rc |
1090 |
- dodoc README-mutt |
1091 |
- popd > /dev/null || die |
1092 |
- fi |
1093 |
- |
1094 |
- local DOCS=( README{,.rst} INSTALL NEWS ) |
1095 |
- einstalldocs |
1096 |
- |
1097 |
- if use python; then |
1098 |
- use doc && local HTML_DOCS=( bindings/python/docs/html/. ) |
1099 |
- distutils-r1_src_install |
1100 |
- fi |
1101 |
-} |
1102 |
- |
1103 |
-pkg_preinst() { |
1104 |
- local _rcfile="/etc/mutt/notmuch-mutt.rc" |
1105 |
- if use mutt && ! [[ -e ${ROOT}${_rcfile} ]]; then |
1106 |
- elog "To enable notmuch support in mutt, add the following line" |
1107 |
- elog "to your mutt config file:" |
1108 |
- elog "" |
1109 |
- elog " source ${_rcfile}" |
1110 |
- fi |
1111 |
-} |
1112 |
- |
1113 |
-pkg_postinst() { |
1114 |
- if use emacs; then |
1115 |
- elisp-site-regen |
1116 |
- xdg_desktop_database_update |
1117 |
- fi |
1118 |
-} |
1119 |
- |
1120 |
-pkg_postrm() { |
1121 |
- if use emacs; then |
1122 |
- elisp-site-regen |
1123 |
- xdg_desktop_database_update |
1124 |
- fi |
1125 |
-} |
1126 |
|
1127 |
diff --git a/net-mail/notmuch/notmuch-0.31.ebuild b/net-mail/notmuch/notmuch-0.31.ebuild |
1128 |
deleted file mode 100644 |
1129 |
index 7e7b6616497..00000000000 |
1130 |
--- a/net-mail/notmuch/notmuch-0.31.ebuild |
1131 |
+++ /dev/null |
1132 |
@@ -1,216 +0,0 @@ |
1133 |
-# Copyright 1999-2021 Gentoo Authors |
1134 |
-# Distributed under the terms of the GNU General Public License v2 |
1135 |
- |
1136 |
-EAPI=7 |
1137 |
- |
1138 |
-DISTUTILS_OPTIONAL=1 |
1139 |
-NEED_EMACS="24.1" |
1140 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
1141 |
- |
1142 |
-inherit bash-completion-r1 distutils-r1 elisp-common eutils flag-o-matic \ |
1143 |
- pax-utils toolchain-funcs |
1144 |
- |
1145 |
-DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" |
1146 |
-HOMEPAGE="https://notmuchmail.org/" |
1147 |
-SRC_URI="https://notmuchmail.org/releases/${P}.tar.xz |
1148 |
- test? ( https://notmuchmail.org/releases/test-databases/database-v1.tar.xz )" |
1149 |
- |
1150 |
-LICENSE="GPL-3" |
1151 |
-# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is |
1152 |
-# meant to be binary backward compatible. |
1153 |
-SLOT="0/5" |
1154 |
-KEYWORDS="~alpha ~amd64 ~arm64 ~ppc64 ~x86" |
1155 |
-REQUIRED_USE=" |
1156 |
- nmbug? ( python ) |
1157 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
1158 |
- test? ( crypt emacs python valgrind ) |
1159 |
-" |
1160 |
-IUSE="crypt doc emacs mutt nmbug python test valgrind" |
1161 |
-RESTRICT="!test? ( test )" |
1162 |
- |
1163 |
-BDEPEND=" |
1164 |
- virtual/pkgconfig |
1165 |
- doc? ( |
1166 |
- app-doc/doxygen |
1167 |
- dev-python/mock[${PYTHON_USEDEP}] |
1168 |
- dev-python/sphinx |
1169 |
- sys-apps/texinfo |
1170 |
- ) |
1171 |
-" |
1172 |
-COMMON_DEPEND=" |
1173 |
- dev-libs/glib |
1174 |
- dev-libs/gmime:3.0[crypt] |
1175 |
- dev-libs/xapian:= |
1176 |
- sys-libs/talloc |
1177 |
- sys-libs/zlib |
1178 |
- emacs? ( >=app-editors/emacs-${NEED_EMACS}:* ) |
1179 |
- python? ( |
1180 |
- ${PYTHON_DEPS} |
1181 |
- dev-python/cffi |
1182 |
- ) |
1183 |
-" |
1184 |
-DEPEND="${COMMON_DEPEND} |
1185 |
- test? ( |
1186 |
- >=app-editors/emacs-${NEED_EMACS}:*[libxml2] |
1187 |
- app-misc/dtach |
1188 |
- sys-devel/gdb |
1189 |
- crypt? ( |
1190 |
- app-crypt/gnupg |
1191 |
- dev-libs/openssl |
1192 |
- ) |
1193 |
- ) |
1194 |
- valgrind? ( dev-util/valgrind ) |
1195 |
-" |
1196 |
-RDEPEND="${COMMON_DEPEND} |
1197 |
- crypt? ( app-crypt/gnupg ) |
1198 |
- mutt? ( |
1199 |
- dev-perl/File-Which |
1200 |
- dev-perl/Mail-Box |
1201 |
- dev-perl/MailTools |
1202 |
- dev-perl/String-ShellQuote |
1203 |
- dev-perl/Term-ReadLine-Gnu |
1204 |
- virtual/perl-Digest-SHA |
1205 |
- virtual/perl-File-Path |
1206 |
- virtual/perl-Getopt-Long |
1207 |
- virtual/perl-Pod-Parser |
1208 |
- ) |
1209 |
- nmbug? ( dev-vcs/git ) |
1210 |
-" |
1211 |
- |
1212 |
-DOCS=( AUTHORS NEWS README ) |
1213 |
-SITEFILE="50${PN}-gentoo.el" |
1214 |
- |
1215 |
-bindings() { |
1216 |
- local rc=0 |
1217 |
- if use python; then |
1218 |
- # CFFI based bindings (recommended) |
1219 |
- pushd bindings/python-cffi || die |
1220 |
- ${@} |
1221 |
- rc=${?} |
1222 |
- popd || die |
1223 |
- |
1224 |
- # Old deprecated bindings, #736204. These are known to cause |
1225 |
- # memory loss and other issues. Avoid if at all possible. |
1226 |
- pushd bindings/python || die |
1227 |
- ${@} |
1228 |
- rc=${?} |
1229 |
- popd || die |
1230 |
- fi |
1231 |
- return ${rc} |
1232 |
-} |
1233 |
- |
1234 |
-pkg_setup() { |
1235 |
- use emacs && elisp-check-emacs-version |
1236 |
-} |
1237 |
- |
1238 |
-src_unpack() { |
1239 |
- unpack "${P}".tar.xz |
1240 |
- if use test; then |
1241 |
- mkdir -p "${S}"/test/test-databases || die |
1242 |
- cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die |
1243 |
- fi |
1244 |
-} |
1245 |
- |
1246 |
-src_prepare() { |
1247 |
- local _deps="" |
1248 |
- default |
1249 |
- |
1250 |
- # Python bindings |
1251 |
- bindings distutils-r1_src_prepare |
1252 |
- mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die |
1253 |
- |
1254 |
- # Override dependencies for 'install' target |
1255 |
- use doc && _deps="install-info" |
1256 |
- sed -e "s/^install:.\+/install: all ${_deps}/" -i Makefile.local || die |
1257 |
- |
1258 |
- if use test; then |
1259 |
- append-cflags -g |
1260 |
- append-cxxflags -g |
1261 |
- fi |
1262 |
- |
1263 |
- if [[ ${CHOST} == *-solaris* ]] ; then |
1264 |
- # Non-autoconf configure |
1265 |
- append-ldflags -lnsl -lsocket |
1266 |
- fi |
1267 |
-} |
1268 |
- |
1269 |
-src_configure() { |
1270 |
- python_setup # For sphinx |
1271 |
- local _args=( |
1272 |
- --bashcompletiondir="$(get_bashcompdir)" |
1273 |
- --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" |
1274 |
- --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" |
1275 |
- --without-desktop |
1276 |
- --without-ruby |
1277 |
- --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" |
1278 |
- $(use_with emacs) |
1279 |
- $(use_with doc api-docs) |
1280 |
- ) |
1281 |
- tc-export CC CXX |
1282 |
- econf "${_args[@]}" |
1283 |
-} |
1284 |
- |
1285 |
-src_compile() { |
1286 |
- python_setup # For sphinx |
1287 |
- V=1 default |
1288 |
- bindings distutils-r1_src_compile |
1289 |
- |
1290 |
- if use mutt; then |
1291 |
- pushd contrib/notmuch-mutt || die |
1292 |
- emake notmuch-mutt.1 |
1293 |
- popd || die |
1294 |
- fi |
1295 |
-} |
1296 |
- |
1297 |
-src_test() { |
1298 |
- pax-mark -m notmuch |
1299 |
- LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" V=1 default |
1300 |
- pax-mark -ze notmuch |
1301 |
-} |
1302 |
- |
1303 |
-src_install() { |
1304 |
- default |
1305 |
- |
1306 |
- if use doc; then |
1307 |
- doman doc/_build/man/man?/*.? |
1308 |
- fi |
1309 |
- |
1310 |
- if use emacs; then |
1311 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
1312 |
- fi |
1313 |
- |
1314 |
- if use nmbug; then |
1315 |
- dobin devel/nmbug/nmbug |
1316 |
- dobin devel/nmbug/notmuch-report |
1317 |
- fi |
1318 |
- |
1319 |
- if use mutt; then |
1320 |
- pushd contrib/notmuch-mutt || die |
1321 |
- dobin notmuch-mutt |
1322 |
- doman notmuch-mutt.1 |
1323 |
- insinto /etc/mutt |
1324 |
- doins notmuch-mutt.rc |
1325 |
- dodoc README-mutt |
1326 |
- popd || die |
1327 |
- fi |
1328 |
- |
1329 |
- DOCS="" bindings distutils-r1_src_install |
1330 |
-} |
1331 |
- |
1332 |
-pkg_preinst() { |
1333 |
- local _rcfile="/etc/mutt/notmuch-mutt.rc" |
1334 |
- if use mutt && ! [[ -e ${ROOT}${_rcfile} ]]; then |
1335 |
- elog "To enable notmuch support in mutt, add the following line" |
1336 |
- elog "to your mutt config file:" |
1337 |
- elog "" |
1338 |
- elog " source ${_rcfile}" |
1339 |
- fi |
1340 |
-} |
1341 |
- |
1342 |
-pkg_postinst() { |
1343 |
- use emacs && elisp-site-regen |
1344 |
-} |
1345 |
- |
1346 |
-pkg_postrm() { |
1347 |
- use emacs && elisp-site-regen |
1348 |
-} |