1 |
commit: 234b78b66c70f394af18ef2b832df9c3d8cdcd22 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 8 13:38:56 2021 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 8 13:39:11 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=234b78b6 |
7 |
|
8 |
net-mail/notmuch: drop 0.31.3-r1, 0.32.1-r1 |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
net-mail/notmuch/Manifest | 2 - |
13 |
.../notmuch/files/notmuch-0.31.3-glib-2.68.patch | 60 ----- |
14 |
net-mail/notmuch/notmuch-0.31.3-r1.ebuild | 288 -------------------- |
15 |
net-mail/notmuch/notmuch-0.32.1-r1.ebuild | 292 --------------------- |
16 |
4 files changed, 642 deletions(-) |
17 |
|
18 |
diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest |
19 |
index eac9ca13c4e..f96fdcb75b4 100644 |
20 |
--- a/net-mail/notmuch/Manifest |
21 |
+++ b/net-mail/notmuch/Manifest |
22 |
@@ -1,5 +1,3 @@ |
23 |
DIST database-v1.tar.xz 204876 BLAKE2B 846a8d2f17edb61ed1c3d3c655becd1f60b4046772058706f13d516f65421a5105593660f1c556907bb2bb9607a3c2521243d1be07bffb70817ad3b8461680ca SHA512 e2d87373e00b65756d7fea40c54fb236d7a37ce839145c3afd99ab26efdc17796e540c021e2c24e521df2d0a01ccbf918994f87a0d83235ff9b109a51555b3d0 |
24 |
-DIST notmuch-0.31.3.tar.xz 713900 BLAKE2B 64aa5c707a74544d31f1dce4e49f3e19cf8c733dfe6f0761dec5522eae94bacf0c01ab7c8212373f1857eeecbad569482365a53a10f56dfee72cefc8d3f4f05a SHA512 99119216b7ef7f9e336b11d03ebb61d9667a8fbddcf6fccc49b17d07f07867f0342b2766375e164b58eaa9a43237ec4d6567d616fe8813b929d28b203aedfa44 |
25 |
-DIST notmuch-0.32.1.tar.xz 725196 BLAKE2B 6163f512e88f1b9415b93f7c4a146dc1af6e41bacdbbd29bdb48706af4af4822b626a719d50146f0cfe4d35508d8aa767b0e75eadebf9d619912f3ee6ba0e59e SHA512 c561658919a3c19bfe282e28a5c95db5d58030f044307fdfcaee02d3bf6fc15c9ae9d6d9d8a948c9e6f9b54f563dc82cde757a26a7d7c33eb976b3cfe7ce8c36 |
26 |
DIST notmuch-0.32.2.tar.xz 725652 BLAKE2B 02801f57bd62b8020298babcc8243276f95fb535621178b2b0b8dfb58d14e8123b7b1fa7d2c246c9e005ca2c7c2d594aeea710408c3d14f26ffcd550c03b4d9a SHA512 e4151cb3ba0e5d26e67572a37c3132d0e35af5d9ca4339d88d8ba25385b6022c376a75abcffb57fda3242c836f6e40dec39c4038674682616b6e5785223295bf |
27 |
DIST notmuch-0.33.2.tar.xz 733228 BLAKE2B e0a206695944bd57ab3ba1488bbff10c6744b57126eddeead45653a20df8edde21e0c618f9b4af5731e41bb469538883770ef61da4b28e2fd7dc108d994a7433 SHA512 15f4ecbd991df3a64c2b89aeb6bf7649e76ff2010f80120a15c10c9c5e913a90696ef6a760cbea24bbc9a3ca8cae18fada13d80e69c848cc142d355f2a513f5d |
28 |
|
29 |
diff --git a/net-mail/notmuch/files/notmuch-0.31.3-glib-2.68.patch b/net-mail/notmuch/files/notmuch-0.31.3-glib-2.68.patch |
30 |
deleted file mode 100644 |
31 |
index 19f00391093..00000000000 |
32 |
--- a/net-mail/notmuch/files/notmuch-0.31.3-glib-2.68.patch |
33 |
+++ /dev/null |
34 |
@@ -1,60 +0,0 @@ |
35 |
-https://bugs.gentoo.org/777663 |
36 |
- |
37 |
-From: David Bremner <david@×××××××.net> |
38 |
-Date: Mon, 15 Feb 2021 20:43:50 +0000 (-0400) |
39 |
-Subject: fix build failure with glib 2.67 |
40 |
-X-Git-Tag: archive/debian/0.31.4-1~6 |
41 |
-X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=6db8b422d91a75b7c16f013f10f41d1109ce5866;hp=1692fe7aa8b137d02817bb11f248d204d6ab4048 |
42 |
- |
43 |
-fix build failure with glib 2.67 |
44 |
- |
45 |
-Based on a patch from Michael J Gruber [1]. As of glib 2.67 (more |
46 |
-specifically [2]), including "gmime-extra.h" inside an extern "C" |
47 |
-block causes build failures, because glib is using C++ features. |
48 |
- |
49 |
-Observing that "gmime-extra.h" is no longer needed in |
50 |
-notmuch-private.h, which can simply delete that include, but |
51 |
-we have to correspondingly move the includes which might include |
52 |
-it (in particular crypto.h) out of the extern "C" block also. |
53 |
- |
54 |
-This seems less fragile than only moving gmime-extra, and relying on |
55 |
-preprocessor sentinels to keep the deeper includes from happening. |
56 |
- |
57 |
-Move to the include to the outside of the extern block. |
58 |
- |
59 |
-[1]: id:aee618a3d41f7889a7449aa16893e992325a909a.1613055071.git.git@××××××.eu |
60 |
-[2]: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1715 |
61 |
---- |
62 |
- |
63 |
-diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h |
64 |
-index 57ec7f72..41aff342 100644 |
65 |
---- a/lib/notmuch-private.h |
66 |
-+++ b/lib/notmuch-private.h |
67 |
-@@ -31,6 +31,12 @@ |
68 |
- |
69 |
- #include "notmuch.h" |
70 |
- |
71 |
-+#include "xutil.h" |
72 |
-+#include "error_util.h" |
73 |
-+#include "string-util.h" |
74 |
-+#include "crypto.h" |
75 |
-+#include "repair.h" |
76 |
-+ |
77 |
- NOTMUCH_BEGIN_DECLS |
78 |
- |
79 |
- #include <stdlib.h> |
80 |
-@@ -47,14 +53,6 @@ NOTMUCH_BEGIN_DECLS |
81 |
- |
82 |
- #include <talloc.h> |
83 |
- |
84 |
--#include "gmime-extra.h" |
85 |
-- |
86 |
--#include "xutil.h" |
87 |
--#include "error_util.h" |
88 |
--#include "string-util.h" |
89 |
--#include "crypto.h" |
90 |
--#include "repair.h" |
91 |
-- |
92 |
- #ifdef DEBUG |
93 |
- # define DEBUG_DATABASE_SANITY 1 |
94 |
- # define DEBUG_THREADING 1 |
95 |
|
96 |
diff --git a/net-mail/notmuch/notmuch-0.31.3-r1.ebuild b/net-mail/notmuch/notmuch-0.31.3-r1.ebuild |
97 |
deleted file mode 100644 |
98 |
index ae71b74055b..00000000000 |
99 |
--- a/net-mail/notmuch/notmuch-0.31.3-r1.ebuild |
100 |
+++ /dev/null |
101 |
@@ -1,288 +0,0 @@ |
102 |
-# Copyright 1999-2021 Gentoo Authors |
103 |
-# Distributed under the terms of the GNU General Public License v2 |
104 |
- |
105 |
-EAPI=7 |
106 |
- |
107 |
-DISTUTILS_OPTIONAL=1 |
108 |
-DISTUTILS_USE_SETUPTOOLS=manual |
109 |
-NEED_EMACS="24.1" |
110 |
-PYTHON_COMPAT=( python3_{7,8,9} pypy3 ) |
111 |
- |
112 |
-inherit bash-completion-r1 desktop distutils-r1 elisp-common flag-o-matic pax-utils toolchain-funcs xdg-utils |
113 |
- |
114 |
-DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" |
115 |
-HOMEPAGE="https://notmuchmail.org/" |
116 |
-SRC_URI="https://notmuchmail.org/releases/${P}.tar.xz |
117 |
- test? ( https://notmuchmail.org/releases/test-databases/database-v1.tar.xz )" |
118 |
- |
119 |
-LICENSE="GPL-3" |
120 |
-# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is |
121 |
-# meant to be binary backward compatible. |
122 |
-SLOT="0/5" |
123 |
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~ppc64 x86 ~x64-macos" |
124 |
-REQUIRED_USE=" |
125 |
- apidoc? ( doc ) |
126 |
- nmbug? ( python ) |
127 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
128 |
- test? ( crypt emacs python valgrind ) |
129 |
-" |
130 |
-IUSE="apidoc crypt doc emacs mutt nmbug python test valgrind" |
131 |
-RESTRICT="!test? ( test )" |
132 |
- |
133 |
-BDEPEND=" |
134 |
- app-arch/xz-utils[extra-filters(-)] |
135 |
- virtual/pkgconfig |
136 |
- apidoc? ( |
137 |
- app-doc/doxygen |
138 |
- dev-lang/perl |
139 |
- ) |
140 |
- doc? ( |
141 |
- dev-python/sphinx |
142 |
- sys-apps/texinfo |
143 |
- ) |
144 |
- python? ( |
145 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
146 |
- test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
147 |
- ) |
148 |
-" |
149 |
- |
150 |
-COMMON_DEPEND=" |
151 |
- dev-libs/glib |
152 |
- dev-libs/gmime:3.0[crypt] |
153 |
- >=dev-libs/xapian-1.4.0:= |
154 |
- sys-libs/talloc |
155 |
- sys-libs/zlib:= |
156 |
- emacs? ( >=app-editors/emacs-${NEED_EMACS}:* ) |
157 |
- python? ( |
158 |
- ${PYTHON_DEPS} |
159 |
- virtual/python-cffi[${PYTHON_USEDEP}] |
160 |
- ) |
161 |
-" |
162 |
- |
163 |
-DEPEND="${COMMON_DEPEND} |
164 |
- test? ( |
165 |
- >=app-editors/emacs-${NEED_EMACS}:*[libxml2] |
166 |
- app-misc/dtach |
167 |
- sys-devel/gdb |
168 |
- crypt? ( |
169 |
- app-crypt/gnupg |
170 |
- dev-libs/openssl |
171 |
- ) |
172 |
- ) |
173 |
- valgrind? ( dev-util/valgrind ) |
174 |
-" |
175 |
- |
176 |
-RDEPEND="${COMMON_DEPEND} |
177 |
- crypt? ( app-crypt/gnupg ) |
178 |
- mutt? ( |
179 |
- dev-perl/File-Which |
180 |
- dev-perl/Mail-Box |
181 |
- dev-perl/MailTools |
182 |
- dev-perl/String-ShellQuote |
183 |
- dev-perl/Term-ReadLine-Gnu |
184 |
- virtual/perl-Digest-SHA |
185 |
- virtual/perl-File-Path |
186 |
- virtual/perl-Getopt-Long |
187 |
- dev-perl/Pod-Parser |
188 |
- ) |
189 |
- nmbug? ( dev-vcs/git ) |
190 |
-" |
191 |
- |
192 |
-SITEFILE="50${PN}-gentoo.el" |
193 |
- |
194 |
-PATCHES=( |
195 |
- "${FILESDIR}"/${P}-glib-2.68.patch |
196 |
-) |
197 |
- |
198 |
-pkg_setup() { |
199 |
- use emacs && elisp-check-emacs-version |
200 |
-} |
201 |
- |
202 |
-src_unpack() { |
203 |
- unpack "${P}".tar.xz |
204 |
- if use test; then |
205 |
- mkdir -p "${S}"/test/test-databases || die |
206 |
- cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die |
207 |
- fi |
208 |
-} |
209 |
- |
210 |
-src_prepare() { |
211 |
- default |
212 |
- |
213 |
- use python && distutils-r1_src_prepare |
214 |
- |
215 |
- mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die |
216 |
- |
217 |
- # Override 'install' target, we want to install manpages with doman, but let it install texinfo files. |
218 |
- sed -i "s/all install-man install-info/all $(usex doc install-info '')/" "Makefile.local" || die |
219 |
- |
220 |
- use test && append-flags '-g' |
221 |
- |
222 |
- # Non-autoconf configure |
223 |
- [[ ${CHOST} == *-solaris* ]] && append-ldflags '-lnsl' '-lsocket' |
224 |
- |
225 |
- # sphinx-4 broke everything. https://bugs.gentoo.org/789492 |
226 |
- echo 'man_make_section_directory = False' >> doc/conf.py || die |
227 |
-} |
228 |
- |
229 |
-src_configure() { |
230 |
- python_setup # For sphinx |
231 |
- |
232 |
- tc-export CC CXX |
233 |
- |
234 |
- local myconf=( |
235 |
- --bashcompletiondir="$(get_bashcompdir)" |
236 |
- --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" |
237 |
- --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" |
238 |
- --without-desktop |
239 |
- --without-ruby |
240 |
- --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" |
241 |
- $(use_with apidoc api-docs) |
242 |
- $(use_with doc docs) |
243 |
- $(use_with emacs) |
244 |
- ) |
245 |
- |
246 |
- econf "${myconf[@]}" |
247 |
-} |
248 |
- |
249 |
-python_compile() { |
250 |
- pushd bindings/python-cffi > /dev/null || die |
251 |
- distutils-r1_python_compile |
252 |
- popd > /dev/null || die |
253 |
- |
254 |
- # TODO: we want to drop those, research revdeps |
255 |
- pushd bindings/python > /dev/null || die |
256 |
- distutils-r1_python_compile |
257 |
- popd > /dev/null || die |
258 |
-} |
259 |
- |
260 |
-python_compile_all() { |
261 |
- use doc && emake -C bindings/python/docs html |
262 |
-} |
263 |
- |
264 |
-src_compile() { |
265 |
- python_setup # For sphinx |
266 |
- |
267 |
- # prevent race in emacs doc generation |
268 |
- # FileNotFoundError: [Errno 2] No such file or directory: '..work/notmuch-0.31/emacs/notmuch.rsti' |
269 |
- if use emacs; then |
270 |
- use doc && emake -j1 -C emacs docstring.stamp V=1 #nowarn |
271 |
- fi |
272 |
- |
273 |
- emake V=1 |
274 |
- |
275 |
- use python && distutils-r1_src_compile |
276 |
- |
277 |
- if use mutt; then |
278 |
- pushd contrib/notmuch-mutt > /dev/null || die |
279 |
- emake notmuch-mutt.1 |
280 |
- popd > /dev/null || die |
281 |
- fi |
282 |
-} |
283 |
- |
284 |
-python_test() { |
285 |
- # we only have tests for cffi bindings |
286 |
- pushd bindings/python-cffi > /dev/null || die |
287 |
- rm -f tox.ini || die |
288 |
- pytest -vv || die "Tests failed with ${EPYTHON}" |
289 |
- popd > /dev/null || die |
290 |
-} |
291 |
- |
292 |
-src_test() { |
293 |
- local test_failures=() |
294 |
- # NOTMUCH_TEST_SERIALIZE is needed to avoid using gnu parallel (if it's installed) |
295 |
- pax-mark -m notmuch |
296 |
- NOTMUCH_TEST_SERIALIZE=1 \ |
297 |
- LD_LIBRARY_PATH="${S}/lib" \ |
298 |
- nonfatal emake test V=1 OPTIONS="--verbose --tee" || test_failures+=( "'emake tests'" ) |
299 |
- pax-mark -ze notmuch |
300 |
- |
301 |
- # both lib and bin needed for testsuite. |
302 |
- if use python; then |
303 |
- LD_LIBRARY_PATH="${S}/lib" \ |
304 |
- PATH="${S}:${PATH}" \ |
305 |
- nonfatal distutils-r1_src_test || test_failures+=( "'python tests'" ) |
306 |
- fi |
307 |
- |
308 |
- [[ ${test_failures} ]] && die "Tests failed: ${test_failures[@]}" |
309 |
-} |
310 |
- |
311 |
-python_install() { |
312 |
- pushd bindings/python-cffi > /dev/null || die |
313 |
- distutils-r1_python_install |
314 |
- popd > /dev/null || die |
315 |
- |
316 |
- pushd bindings/python > /dev/null || die |
317 |
- distutils-r1_python_install |
318 |
- popd > /dev/null || die |
319 |
-} |
320 |
- |
321 |
-src_install() { |
322 |
- default |
323 |
- |
324 |
- if use doc; then |
325 |
- pushd doc/_build/man/man1 > /dev/null || die |
326 |
- ln notmuch.1 notmuch-setup.1 || die |
327 |
- popd > /dev/null || die |
328 |
- if use apidoc; then |
329 |
- # rename overly generic manpage to avoid clashes |
330 |
- mv doc/_build/man/man3/deprecated.3 \ |
331 |
- doc/_build/man/man3/notmuch-deprecated.3 || die |
332 |
- fi |
333 |
- doman doc/_build/man/man?/*.? |
334 |
- fi |
335 |
- |
336 |
- if use emacs; then |
337 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
338 |
- domenu emacs/notmuch-emacs-mua.desktop |
339 |
- fi |
340 |
- |
341 |
- if use nmbug; then |
342 |
- # TODO: those guys need proper deps |
343 |
- python_fix_shebang devel/nmbug/{nmbug,notmuch-report} |
344 |
- dobin devel/nmbug/{nmbug,notmuch-report} |
345 |
- fi |
346 |
- |
347 |
- if use mutt; then |
348 |
- pushd contrib/notmuch-mutt > /dev/null || die |
349 |
- dobin notmuch-mutt |
350 |
- # this manpage is built by pod2man |
351 |
- doman notmuch-mutt.1 |
352 |
- insinto /etc/mutt |
353 |
- doins notmuch-mutt.rc |
354 |
- dodoc README-mutt |
355 |
- popd > /dev/null || die |
356 |
- fi |
357 |
- |
358 |
- local DOCS=( README{,.rst} INSTALL NEWS ) |
359 |
- einstalldocs |
360 |
- |
361 |
- if use python; then |
362 |
- use doc && local HTML_DOCS=( bindings/python/docs/html/. ) |
363 |
- distutils-r1_src_install |
364 |
- fi |
365 |
-} |
366 |
- |
367 |
-pkg_preinst() { |
368 |
- local _rcfile="/etc/mutt/notmuch-mutt.rc" |
369 |
- if use mutt && ! [[ -e "${EROOT}"${_rcfile} ]]; then |
370 |
- elog "To enable notmuch support in mutt, add the following line" |
371 |
- elog "to your mutt config file:" |
372 |
- elog "" |
373 |
- elog " source ${_rcfile}" |
374 |
- fi |
375 |
-} |
376 |
- |
377 |
-pkg_postinst() { |
378 |
- if use emacs; then |
379 |
- elisp-site-regen |
380 |
- xdg_desktop_database_update |
381 |
- fi |
382 |
-} |
383 |
- |
384 |
-pkg_postrm() { |
385 |
- if use emacs; then |
386 |
- elisp-site-regen |
387 |
- xdg_desktop_database_update |
388 |
- fi |
389 |
-} |
390 |
|
391 |
diff --git a/net-mail/notmuch/notmuch-0.32.1-r1.ebuild b/net-mail/notmuch/notmuch-0.32.1-r1.ebuild |
392 |
deleted file mode 100644 |
393 |
index 78bf6a0ccc8..00000000000 |
394 |
--- a/net-mail/notmuch/notmuch-0.32.1-r1.ebuild |
395 |
+++ /dev/null |
396 |
@@ -1,292 +0,0 @@ |
397 |
-# Copyright 1999-2021 Gentoo Authors |
398 |
-# Distributed under the terms of the GNU General Public License v2 |
399 |
- |
400 |
-EAPI=7 |
401 |
- |
402 |
-DISTUTILS_OPTIONAL=1 |
403 |
-DISTUTILS_USE_SETUPTOOLS=manual |
404 |
-NEED_EMACS="24.1" |
405 |
-PYTHON_COMPAT=( python3_{7,8,9} pypy3 ) |
406 |
- |
407 |
-inherit bash-completion-r1 desktop distutils-r1 elisp-common flag-o-matic pax-utils toolchain-funcs xdg-utils |
408 |
- |
409 |
-DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" |
410 |
-HOMEPAGE="https://notmuchmail.org/" |
411 |
-SRC_URI="https://notmuchmail.org/releases/${P}.tar.xz |
412 |
- test? ( https://notmuchmail.org/releases/test-databases/database-v1.tar.xz )" |
413 |
- |
414 |
-LICENSE="GPL-3" |
415 |
-# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is |
416 |
-# meant to be binary backward compatible. |
417 |
-SLOT="0/5" |
418 |
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~ppc64 x86 ~x64-macos" |
419 |
-REQUIRED_USE=" |
420 |
- apidoc? ( doc ) |
421 |
- nmbug? ( python ) |
422 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
423 |
- test? ( crypt emacs python valgrind ) |
424 |
-" |
425 |
-IUSE="apidoc crypt doc emacs mutt nmbug python test valgrind" |
426 |
-RESTRICT="!test? ( test )" |
427 |
- |
428 |
-BDEPEND=" |
429 |
- app-arch/xz-utils[extra-filters(-)] |
430 |
- virtual/pkgconfig |
431 |
- apidoc? ( |
432 |
- app-doc/doxygen |
433 |
- dev-lang/perl |
434 |
- ) |
435 |
- doc? ( |
436 |
- dev-python/sphinx |
437 |
- sys-apps/texinfo |
438 |
- ) |
439 |
- python? ( |
440 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
441 |
- test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
442 |
- ) |
443 |
- test? ( sys-process/parallel ) |
444 |
-" |
445 |
- |
446 |
-COMMON_DEPEND=" |
447 |
- dev-libs/glib |
448 |
- dev-libs/gmime:3.0[crypt] |
449 |
- >=dev-libs/xapian-1.4.0:= |
450 |
- sys-libs/talloc |
451 |
- sys-libs/zlib:= |
452 |
- emacs? ( >=app-editors/emacs-${NEED_EMACS}:* ) |
453 |
- python? ( |
454 |
- ${PYTHON_DEPS} |
455 |
- virtual/python-cffi[${PYTHON_USEDEP}] |
456 |
- ) |
457 |
-" |
458 |
- |
459 |
-DEPEND="${COMMON_DEPEND} |
460 |
- test? ( |
461 |
- >=app-editors/emacs-${NEED_EMACS}:*[libxml2] |
462 |
- app-misc/dtach |
463 |
- sys-devel/gdb |
464 |
- crypt? ( |
465 |
- app-crypt/gnupg |
466 |
- dev-libs/openssl |
467 |
- ) |
468 |
- ) |
469 |
- valgrind? ( dev-util/valgrind ) |
470 |
-" |
471 |
- |
472 |
-RDEPEND="${COMMON_DEPEND} |
473 |
- crypt? ( app-crypt/gnupg ) |
474 |
- mutt? ( |
475 |
- dev-perl/File-Which |
476 |
- dev-perl/Mail-Box |
477 |
- dev-perl/MailTools |
478 |
- dev-perl/String-ShellQuote |
479 |
- dev-perl/Term-ReadLine-Gnu |
480 |
- virtual/perl-Digest-SHA |
481 |
- virtual/perl-File-Path |
482 |
- virtual/perl-Getopt-Long |
483 |
- dev-perl/Pod-Parser |
484 |
- ) |
485 |
- nmbug? ( dev-vcs/git ) |
486 |
-" |
487 |
- |
488 |
-SITEFILE="50${PN}-gentoo.el" |
489 |
- |
490 |
-PATCHES=( |
491 |
- "${FILESDIR}/${P}-tests.patch" |
492 |
-) |
493 |
- |
494 |
-pkg_setup() { |
495 |
- use emacs && elisp-check-emacs-version |
496 |
-} |
497 |
- |
498 |
-src_unpack() { |
499 |
- unpack "${P}".tar.xz |
500 |
- if use test; then |
501 |
- mkdir -p "${S}"/test/test-databases || die |
502 |
- cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die |
503 |
- fi |
504 |
-} |
505 |
- |
506 |
-src_prepare() { |
507 |
- default |
508 |
- |
509 |
- use python && distutils-r1_src_prepare |
510 |
- |
511 |
- mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die |
512 |
- |
513 |
- # Override 'install' target, we want to install manpages with doman, but let it install texinfo files. |
514 |
- sed -i "s/all install-man install-info/all $(usex doc install-info '')/" "Makefile.local" || die |
515 |
- |
516 |
- use test && append-flags '-g' |
517 |
- |
518 |
- # Non-autoconf configure |
519 |
- [[ ${CHOST} == *-solaris* ]] && append-ldflags '-lnsl' '-lsocket' |
520 |
- |
521 |
- # sphinx-4 broke everything. https://bugs.gentoo.org/789492 |
522 |
- echo 'man_make_section_directory = False' >> doc/conf.py || die |
523 |
-} |
524 |
- |
525 |
-src_configure() { |
526 |
- python_setup # For sphinx |
527 |
- |
528 |
- tc-export CC CXX |
529 |
- |
530 |
- local myconf=( |
531 |
- --bashcompletiondir="$(get_bashcompdir)" |
532 |
- --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" |
533 |
- --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" |
534 |
- --without-desktop |
535 |
- --without-ruby |
536 |
- --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" |
537 |
- $(use_with apidoc api-docs) |
538 |
- $(use_with doc docs) |
539 |
- $(use_with emacs) |
540 |
- ) |
541 |
- |
542 |
- econf "${myconf[@]}" |
543 |
-} |
544 |
- |
545 |
-python_compile() { |
546 |
- pushd bindings/python-cffi > /dev/null || die |
547 |
- distutils-r1_python_compile |
548 |
- # copy stuff just in case |
549 |
- if use test; then |
550 |
- mkdir -p build/stage/tests || die |
551 |
- cp -v tests/*.py build/stage/tests || die |
552 |
- fi |
553 |
- popd > /dev/null || die |
554 |
- |
555 |
- # TODO: we want to drop those, research revdeps |
556 |
- pushd bindings/python > /dev/null || die |
557 |
- distutils-r1_python_compile |
558 |
- popd > /dev/null || die |
559 |
-} |
560 |
- |
561 |
-python_compile_all() { |
562 |
- use doc && emake -C bindings/python/docs html |
563 |
-} |
564 |
- |
565 |
-src_compile() { |
566 |
- python_setup # For sphinx |
567 |
- |
568 |
- # prevent race in emacs doc generation |
569 |
- # FileNotFoundError: [Errno 2] No such file or directory: '..work/notmuch-0.31/emacs/notmuch.rsti' |
570 |
- if use emacs; then |
571 |
- use doc && emake -j1 -C emacs docstring.stamp V=1 #nowarn |
572 |
- fi |
573 |
- |
574 |
- emake V=1 |
575 |
- |
576 |
- use python && distutils-r1_src_compile |
577 |
- |
578 |
- if use mutt; then |
579 |
- pushd contrib/notmuch-mutt > /dev/null || die |
580 |
- emake notmuch-mutt.1 |
581 |
- popd > /dev/null || die |
582 |
- fi |
583 |
-} |
584 |
- |
585 |
-python_test() { |
586 |
- # we only have tests for cffi bindings |
587 |
- pushd bindings/python-cffi > /dev/null || die |
588 |
- rm -f tox.ini || die |
589 |
- pytest -vv || die "Tests failed with ${EPYTHON}" |
590 |
- popd > /dev/null || die |
591 |
-} |
592 |
- |
593 |
-src_test() { |
594 |
- local test_failures=() |
595 |
- pax-mark -m notmuch |
596 |
- LD_LIBRARY_PATH="${S}/lib" \ |
597 |
- nonfatal emake test V=1 OPTIONS="--verbose --tee" || test_failures+=( "'emake tests'" ) |
598 |
- pax-mark -ze notmuch |
599 |
- |
600 |
- # both lib and bin needed for testsuite. |
601 |
- if use python; then |
602 |
- LD_LIBRARY_PATH="${S}/lib" \ |
603 |
- PATH="${S}:${PATH}" \ |
604 |
- nonfatal distutils-r1_src_test || test_failures+=( "'python tests'" ) |
605 |
- fi |
606 |
- |
607 |
- [[ ${test_failures} ]] && die "Tests failed: ${test_failures[@]}" |
608 |
-} |
609 |
- |
610 |
-python_install() { |
611 |
- pushd bindings/python-cffi > /dev/null || die |
612 |
- distutils-r1_python_install |
613 |
- popd > /dev/null || die |
614 |
- |
615 |
- pushd bindings/python > /dev/null || die |
616 |
- distutils-r1_python_install |
617 |
- popd > /dev/null || die |
618 |
-} |
619 |
- |
620 |
-src_install() { |
621 |
- default |
622 |
- |
623 |
- if use doc; then |
624 |
- pushd doc/_build/man/man1 > /dev/null || die |
625 |
- ln notmuch.1 notmuch-setup.1 || die |
626 |
- popd > /dev/null || die |
627 |
- if use apidoc; then |
628 |
- # rename overly generic manpage to avoid clashes |
629 |
- mv doc/_build/man/man3/deprecated.3 \ |
630 |
- doc/_build/man/man3/notmuch-deprecated.3 || die |
631 |
- fi |
632 |
- doman doc/_build/man/man?/*.? |
633 |
- fi |
634 |
- |
635 |
- if use emacs; then |
636 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
637 |
- domenu emacs/notmuch-emacs-mua.desktop |
638 |
- fi |
639 |
- |
640 |
- if use nmbug; then |
641 |
- # TODO: those guys need proper deps |
642 |
- python_fix_shebang devel/nmbug/{nmbug,notmuch-report} |
643 |
- dobin devel/nmbug/{nmbug,notmuch-report} |
644 |
- fi |
645 |
- |
646 |
- if use mutt; then |
647 |
- pushd contrib/notmuch-mutt > /dev/null || die |
648 |
- dobin notmuch-mutt |
649 |
- # this manpage is built by pod2man |
650 |
- doman notmuch-mutt.1 |
651 |
- insinto /etc/mutt |
652 |
- doins notmuch-mutt.rc |
653 |
- dodoc README-mutt |
654 |
- popd > /dev/null || die |
655 |
- fi |
656 |
- |
657 |
- local DOCS=( README{,.rst} INSTALL NEWS ) |
658 |
- einstalldocs |
659 |
- |
660 |
- if use python; then |
661 |
- use doc && local HTML_DOCS=( bindings/python/docs/html/. ) |
662 |
- distutils-r1_src_install |
663 |
- fi |
664 |
-} |
665 |
- |
666 |
-pkg_preinst() { |
667 |
- local _rcfile="/etc/mutt/notmuch-mutt.rc" |
668 |
- if use mutt && ! [[ -e "${EROOT}"${_rcfile} ]]; then |
669 |
- elog "To enable notmuch support in mutt, add the following line" |
670 |
- elog "to your mutt config file:" |
671 |
- elog "" |
672 |
- elog " source ${_rcfile}" |
673 |
- fi |
674 |
-} |
675 |
- |
676 |
-pkg_postinst() { |
677 |
- if use emacs; then |
678 |
- elisp-site-regen |
679 |
- xdg_desktop_database_update |
680 |
- fi |
681 |
-} |
682 |
- |
683 |
-pkg_postrm() { |
684 |
- if use emacs; then |
685 |
- elisp-site-regen |
686 |
- xdg_desktop_database_update |
687 |
- fi |
688 |
-} |