1 |
commit: e705c4ca0409cb296a8e79c5adccc633456d0406 |
2 |
Author: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 1 23:32:54 2020 +0000 |
4 |
Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 1 23:37:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e705c4ca |
7 |
|
8 |
net-mail/notmuch: Remove vulnerable versions |
9 |
|
10 |
Bug: https://bugs.gentoo.org/701350 |
11 |
Package-Manager: Portage-2.3.76, Repoman-2.3.16 |
12 |
Signed-off-by: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo.org> |
13 |
|
14 |
net-mail/notmuch/Manifest | 2 - |
15 |
...-Use-loopback-IP-address-rather-than-name.patch | 61 ------ |
16 |
...-Use-loopback-IP-address-rather-than-name.patch | 62 ------ |
17 |
.../0002-Fix-jobserver-unavailable-warning.patch | 26 --- |
18 |
net-mail/notmuch/notmuch-0.28.4.ebuild | 232 -------------------- |
19 |
net-mail/notmuch/notmuch-0.29.2.ebuild | 233 --------------------- |
20 |
6 files changed, 616 deletions(-) |
21 |
|
22 |
diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest |
23 |
index 8dc7ed23286..f0b08dea803 100644 |
24 |
--- a/net-mail/notmuch/Manifest |
25 |
+++ b/net-mail/notmuch/Manifest |
26 |
@@ -1,4 +1,2 @@ |
27 |
DIST database-v1.tar.xz 204876 BLAKE2B 846a8d2f17edb61ed1c3d3c655becd1f60b4046772058706f13d516f65421a5105593660f1c556907bb2bb9607a3c2521243d1be07bffb70817ad3b8461680ca SHA512 e2d87373e00b65756d7fea40c54fb236d7a37ce839145c3afd99ab26efdc17796e540c021e2c24e521df2d0a01ccbf918994f87a0d83235ff9b109a51555b3d0 |
28 |
-DIST notmuch-0.28.4.tar.gz 922364 BLAKE2B f22d52ecc982b086b5d2a67d3b9ae4a379bdcb9e9acf3e77060fd7d97439347e3b4cd767f2c9c3c48657b80f63316f6abc09a653d6791e27b4a8996adccf42a9 SHA512 77d7ad81e1f7dc93ae6392346da434f6dc74c21d19be728c2a6ca283c429f36e7081387d223af58eb5f63f5d2a8ad8367f0103f0bb9d052890c07fe419abbee7 |
29 |
-DIST notmuch-0.29.2.tar.xz 660520 BLAKE2B f87889db5fa1049b2b91a9ea8abe917e5645860a5c163c73a57197ede904aa335c0f3b37cc2a7ff2465c30e94eb25b113bebd074aa9e92c84383457600e1de82 SHA512 0e345c4ecca8410eedb14154bcb3c327353a0984f30b7fd6c526deefcfe17aa74ca8fb4b4d28e93decca8c8914f7d60ca2c9485750001b14d67d7d33d4721bb3 |
30 |
DIST notmuch-0.29.3.tar.xz 660536 BLAKE2B bd5d62eba06102acbc0615cd97ac9ff5578c1f68d50b24a79ea9fb1ea77850d84e0713fb648cb04e74a61ac3321ea5ef82db714786adf38ea10d00c5846decff SHA512 b1e0b47ebf2d2de0ccd39976782eb8a7b417e36f2f9d78ef19e27e55719a02ee919508843a0eaf258f58138914ab2e8796d2fc1782b9cfe2d8937abb6184be65 |
31 |
|
32 |
diff --git a/net-mail/notmuch/files/0.29.2-0001-Use-loopback-IP-address-rather-than-name.patch b/net-mail/notmuch/files/0.29.2-0001-Use-loopback-IP-address-rather-than-name.patch |
33 |
deleted file mode 100644 |
34 |
index e4722469595..00000000000 |
35 |
--- a/net-mail/notmuch/files/0.29.2-0001-Use-loopback-IP-address-rather-than-name.patch |
36 |
+++ /dev/null |
37 |
@@ -1,61 +0,0 @@ |
38 |
-From 59b5bfb6e2095c62925b31e087571506edae7956 Mon Sep 17 00:00:00 2001 |
39 |
-From: =?UTF-8?q?Amadeusz=20Piotr=20=C5=BBo=C5=82nowski?= |
40 |
- <aidecoe@×××××××.name> |
41 |
-Date: Sun, 7 Jul 2019 11:33:09 +0100 |
42 |
-Subject: [PATCH] Use loopback IP address rather than name |
43 |
- |
44 |
---- |
45 |
- test/smtp-dummy.c | 8 ++++---- |
46 |
- test/test-lib.sh | 2 +- |
47 |
- 2 files changed, 5 insertions(+), 5 deletions(-) |
48 |
- |
49 |
-diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c |
50 |
-index a7c1fe4f..822a986a 100644 |
51 |
---- a/test/smtp-dummy.c |
52 |
-+++ b/test/smtp-dummy.c |
53 |
-@@ -76,7 +76,7 @@ process_command (FILE *peer, FILE *output, const char *command) |
54 |
- fprintf (peer, "502 not implemented\r\n"); |
55 |
- fflush (peer); |
56 |
- } else if (STRNCMP_LITERAL (command, "HELO ") == 0) { |
57 |
-- fprintf (peer, "250 localhost\r\n"); |
58 |
-+ fprintf (peer, "250 127.0.0.1\r\n"); |
59 |
- fflush (peer); |
60 |
- } else if (STRNCMP_LITERAL (command, "MAIL FROM:") == 0 || |
61 |
- STRNCMP_LITERAL (command, "RCPT TO:") == 0) { |
62 |
-@@ -105,7 +105,7 @@ do_smtp_to_file (FILE *peer, FILE *output) |
63 |
- size_t line_size; |
64 |
- ssize_t line_len; |
65 |
- |
66 |
-- fprintf (peer, "220 localhost smtp-dummy\r\n"); |
67 |
-+ fprintf (peer, "220 127.0.0.1 smtp-dummy\r\n"); |
68 |
- fflush (peer); |
69 |
- |
70 |
- while ((line_len = getline (&line, &line_size, peer)) != -1) { |
71 |
-@@ -183,9 +183,9 @@ main (int argc, char *argv[]) |
72 |
- goto DONE; |
73 |
- } |
74 |
- |
75 |
-- hostinfo = gethostbyname ("localhost"); |
76 |
-+ hostinfo = gethostbyname ("127.0.0.1"); |
77 |
- if (hostinfo == NULL) { |
78 |
-- fprintf (stderr, "Unknown host: localhost\n"); |
79 |
-+ fprintf (stderr, "Unknown host: 127.0.0.1\n"); |
80 |
- ret = 1; |
81 |
- goto DONE; |
82 |
- } |
83 |
-diff --git a/test/test-lib.sh b/test/test-lib.sh |
84 |
-index 616cb674..dd887773 100644 |
85 |
---- a/test/test-lib.sh |
86 |
-+++ b/test/test-lib.sh |
87 |
-@@ -336,7 +336,7 @@ emacs_deliver_message () |
88 |
- test_emacs \ |
89 |
- "(let ((message-send-mail-function 'message-smtpmail-send-it) |
90 |
- (mail-host-address \"example.com\") |
91 |
-- (smtpmail-smtp-server \"localhost\") |
92 |
-+ (smtpmail-smtp-server \"127.0.0.1\") |
93 |
- (smtpmail-smtp-service \"${smtp_dummy_port}\")) |
94 |
- (notmuch-mua-mail) |
95 |
- (message-goto-to) |
96 |
--- |
97 |
-2.19.2 |
98 |
- |
99 |
|
100 |
diff --git a/net-mail/notmuch/files/0001-Use-loopback-IP-address-rather-than-name.patch b/net-mail/notmuch/files/0001-Use-loopback-IP-address-rather-than-name.patch |
101 |
deleted file mode 100644 |
102 |
index f7e1d7e05e3..00000000000 |
103 |
--- a/net-mail/notmuch/files/0001-Use-loopback-IP-address-rather-than-name.patch |
104 |
+++ /dev/null |
105 |
@@ -1,62 +0,0 @@ |
106 |
-From 9c15b508819d15d0852d71c2e897550cfaac09ba Mon Sep 17 00:00:00 2001 |
107 |
-From: =?UTF-8?q?Amadeusz=20Piotr=20=C5=BBo=C5=82nowski?= |
108 |
- <aidecoe@×××××××.name> |
109 |
-Date: Thu, 7 Mar 2019 22:47:55 +0000 |
110 |
-Subject: [PATCH] Use loopback IP address rather than name |
111 |
- |
112 |
-With FEATURES="network-sandbox" 'localhost' name lookup fails. |
113 |
---- |
114 |
- test/smtp-dummy.c | 8 ++++---- |
115 |
- test/test-lib.sh | 2 +- |
116 |
- 2 files changed, 5 insertions(+), 5 deletions(-) |
117 |
- |
118 |
-diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c |
119 |
-index 71992edd..e72ba2d0 100644 |
120 |
---- a/test/smtp-dummy.c |
121 |
-+++ b/test/smtp-dummy.c |
122 |
-@@ -76,7 +76,7 @@ process_command (FILE *peer, FILE *output, const char *command) |
123 |
- fprintf (peer, "502 not implemented\r\n"); |
124 |
- fflush (peer); |
125 |
- } else if (STRNCMP_LITERAL (command, "HELO ") == 0) { |
126 |
-- fprintf (peer, "250 localhost\r\n"); |
127 |
-+ fprintf (peer, "250 127.0.0.1\r\n"); |
128 |
- fflush (peer); |
129 |
- } else if (STRNCMP_LITERAL (command, "MAIL FROM:") == 0 || |
130 |
- STRNCMP_LITERAL (command, "RCPT TO:") == 0) { |
131 |
-@@ -105,7 +105,7 @@ do_smtp_to_file (FILE *peer, FILE *output) |
132 |
- size_t line_size; |
133 |
- ssize_t line_len; |
134 |
- |
135 |
-- fprintf (peer, "220 localhost smtp-dummy\r\n"); |
136 |
-+ fprintf (peer, "220 127.0.0.1 smtp-dummy\r\n"); |
137 |
- fflush (peer); |
138 |
- |
139 |
- while ((line_len = getline (&line, &line_size, peer)) != -1) { |
140 |
-@@ -182,9 +182,9 @@ main (int argc, char *argv[]) |
141 |
- goto DONE; |
142 |
- } |
143 |
- |
144 |
-- hostinfo = gethostbyname ("localhost"); |
145 |
-+ hostinfo = gethostbyname ("127.0.0.1"); |
146 |
- if (hostinfo == NULL) { |
147 |
-- fprintf (stderr, "Unknown host: localhost\n"); |
148 |
-+ fprintf (stderr, "Unknown host: 127.0.0.1\n"); |
149 |
- ret = 1; |
150 |
- goto DONE; |
151 |
- } |
152 |
-diff --git a/test/test-lib.sh b/test/test-lib.sh |
153 |
-index fca5277d..fa8fd5bd 100644 |
154 |
---- a/test/test-lib.sh |
155 |
-+++ b/test/test-lib.sh |
156 |
-@@ -320,7 +320,7 @@ emacs_deliver_message () |
157 |
- test_emacs \ |
158 |
- "(let ((message-send-mail-function 'message-smtpmail-send-it) |
159 |
- (mail-host-address \"example.com\") |
160 |
-- (smtpmail-smtp-server \"localhost\") |
161 |
-+ (smtpmail-smtp-server \"127.0.0.1\") |
162 |
- (smtpmail-smtp-service \"25025\")) |
163 |
- (notmuch-mua-mail) |
164 |
- (message-goto-to) |
165 |
--- |
166 |
-2.19.2 |
167 |
- |
168 |
|
169 |
diff --git a/net-mail/notmuch/files/0002-Fix-jobserver-unavailable-warning.patch b/net-mail/notmuch/files/0002-Fix-jobserver-unavailable-warning.patch |
170 |
deleted file mode 100644 |
171 |
index 85ca4b6d4a5..00000000000 |
172 |
--- a/net-mail/notmuch/files/0002-Fix-jobserver-unavailable-warning.patch |
173 |
+++ /dev/null |
174 |
@@ -1,26 +0,0 @@ |
175 |
-From b5e15feee139096720272d2b435ce7c4114fda15 Mon Sep 17 00:00:00 2001 |
176 |
-From: =?UTF-8?q?Amadeusz=20Piotr=20=C5=BBo=C5=82nowski?= |
177 |
- <aidecoe@×××××××.name> |
178 |
-Date: Sat, 9 Mar 2019 22:42:21 +0000 |
179 |
-Subject: [PATCH 2/2] Fix "jobserver unavailable" warning |
180 |
- |
181 |
---- |
182 |
- doc/Makefile.local | 2 +- |
183 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
184 |
- |
185 |
-diff --git a/doc/Makefile.local b/doc/Makefile.local |
186 |
-index bab3d0d2..dfe62295 100644 |
187 |
---- a/doc/Makefile.local |
188 |
-+++ b/doc/Makefile.local |
189 |
-@@ -56,7 +56,7 @@ sphinx-texinfo: |
190 |
- $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(DOCBUILDDIR)/texinfo |
191 |
- |
192 |
- sphinx-info: sphinx-texinfo |
193 |
-- make -C $(DOCBUILDDIR)/texinfo info |
194 |
-+ $(MAKE) -C $(DOCBUILDDIR)/texinfo info |
195 |
- |
196 |
- # Use the man page converter that is available. We should never depend |
197 |
- # on MAN_ROFF_FILES if a converter is not available. |
198 |
--- |
199 |
-2.19.2 |
200 |
- |
201 |
|
202 |
diff --git a/net-mail/notmuch/notmuch-0.28.4.ebuild b/net-mail/notmuch/notmuch-0.28.4.ebuild |
203 |
deleted file mode 100644 |
204 |
index 902126ad239..00000000000 |
205 |
--- a/net-mail/notmuch/notmuch-0.28.4.ebuild |
206 |
+++ /dev/null |
207 |
@@ -1,232 +0,0 @@ |
208 |
-# Copyright 1999-2020 Gentoo Authors |
209 |
-# Distributed under the terms of the GNU General Public License v2 |
210 |
- |
211 |
-EAPI=6 |
212 |
- |
213 |
-DISTUTILS_OPTIONAL=1 |
214 |
-PYTHON_COMPAT=( python{2_7,3_6,3_7} ) |
215 |
- |
216 |
-inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \ |
217 |
- distutils-r1 toolchain-funcs |
218 |
- |
219 |
-DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" |
220 |
-HOMEPAGE="https://notmuchmail.org/" |
221 |
-SRC_URI="https://notmuchmail.org/releases/${P}.tar.gz |
222 |
- test? ( https://notmuchmail.org/releases/test-databases/database-v1.tar.xz )" |
223 |
- |
224 |
-LICENSE="GPL-3" |
225 |
-# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is |
226 |
-# meant to be binary backward compatible. |
227 |
-SLOT="0/5" |
228 |
-KEYWORDS="~alpha amd64 x86 ~x64-solaris" |
229 |
-REQUIRED_USE=" |
230 |
- nmbug? ( python ) |
231 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
232 |
- test? ( crypt emacs python valgrind ) |
233 |
- " |
234 |
-IUSE="crypt doc emacs mutt nmbug python test valgrind" |
235 |
- |
236 |
-RESTRICT="!test? ( test )" |
237 |
- |
238 |
-CDEPEND=" |
239 |
- !!<app-shells/bash-completion-1.9 |
240 |
- >=dev-libs/glib-2.22:2 |
241 |
- >=dev-libs/gmime-3.0.3:3.0 |
242 |
- >=dev-libs/xapian-1.4.8:= |
243 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
244 |
- sys-apps/texinfo |
245 |
- >=sys-libs/zlib-1.2.5.2 |
246 |
- sys-libs/talloc |
247 |
- crypt? ( dev-libs/gmime:3.0[crypt] ) |
248 |
- emacs? ( >=app-editors/emacs-24.1:* ) |
249 |
- python? ( ${PYTHON_DEPS} ) |
250 |
- " |
251 |
-DEPEND="${CDEPEND} |
252 |
- virtual/pkgconfig |
253 |
- doc? ( |
254 |
- app-doc/doxygen |
255 |
- dev-python/mock[${PYTHON_USEDEP}] |
256 |
- ) |
257 |
- test? ( |
258 |
- app-misc/dtach |
259 |
- >=app-editors/emacs-24.1:*[libxml2] |
260 |
- sys-devel/gdb |
261 |
- crypt? ( app-crypt/gnupg dev-libs/openssl ) |
262 |
- ) |
263 |
- valgrind? ( dev-util/valgrind ) |
264 |
- " |
265 |
-RDEPEND="${CDEPEND} |
266 |
- crypt? ( app-crypt/gnupg ) |
267 |
- nmbug? ( dev-vcs/git ) |
268 |
- mutt? ( |
269 |
- dev-perl/File-Which |
270 |
- dev-perl/Mail-Box |
271 |
- dev-perl/MailTools |
272 |
- dev-perl/String-ShellQuote |
273 |
- dev-perl/Term-ReadLine-Gnu |
274 |
- virtual/perl-Digest-SHA |
275 |
- virtual/perl-File-Path |
276 |
- virtual/perl-Getopt-Long |
277 |
- virtual/perl-Pod-Parser |
278 |
- ) |
279 |
- " |
280 |
- |
281 |
-DOCS=( AUTHORS NEWS README ) |
282 |
-NEED_EMACS="24.1" |
283 |
-SITEFILE="50${PN}-gentoo.el" |
284 |
-MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" |
285 |
-PATCHES=( |
286 |
- "${FILESDIR}"/0001-Use-loopback-IP-address-rather-than-name.patch |
287 |
- "${FILESDIR}"/0002-Fix-jobserver-unavailable-warning.patch |
288 |
-) |
289 |
- |
290 |
-bindings() { |
291 |
- local ret=0 |
292 |
- |
293 |
- if use $1; then |
294 |
- pushd bindings/$1 || die |
295 |
- shift |
296 |
- "$@" |
297 |
- ret=$? |
298 |
- popd || die |
299 |
- fi |
300 |
- |
301 |
- return $ret |
302 |
-} |
303 |
- |
304 |
-pkg_pretend() { |
305 |
- if has_version '<net-mail/notmuch-0.18'; then |
306 |
- ewarn |
307 |
- ewarn "There are few not backward compatible changes between" |
308 |
- ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file" |
309 |
- ewarn "(0.18 section) for details before first use!" |
310 |
- ewarn |
311 |
- fi |
312 |
-} |
313 |
- |
314 |
-pkg_setup() { |
315 |
- use emacs && elisp-check-emacs-version |
316 |
-} |
317 |
- |
318 |
-src_unpack() { |
319 |
- unpack "${P}".tar.gz |
320 |
- if use test; then |
321 |
- mkdir -p "${S}"/test/test-databases || die |
322 |
- cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die |
323 |
- fi |
324 |
-} |
325 |
- |
326 |
-src_prepare() { |
327 |
- default |
328 |
- |
329 |
- bindings python distutils-r1_src_prepare |
330 |
- bindings python mv README README-python || die |
331 |
- mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die |
332 |
- |
333 |
- # assure that new Makefile.config will be generated |
334 |
- rm -f Makefile.config || die |
335 |
- |
336 |
- sed -e 's@^install: all install-man install-info$@install: all install-info@' -i Makefile.local |
337 |
- |
338 |
- if use test; then |
339 |
- append-cflags -g |
340 |
- append-cxxflags -g |
341 |
- fi |
342 |
- |
343 |
- [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket |
344 |
-} |
345 |
- |
346 |
-src_configure() { |
347 |
- python_setup # for sphinx |
348 |
- |
349 |
- local myeconfargs=( |
350 |
- --bashcompletiondir="$(get_bashcompdir)" |
351 |
- --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" |
352 |
- --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" |
353 |
- --without-desktop |
354 |
- --without-ruby |
355 |
- --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" |
356 |
- $(use_with emacs) |
357 |
- $(use_with doc api-docs) |
358 |
- ) |
359 |
- tc-export CC CXX |
360 |
- econf "${myeconfargs[@]}" |
361 |
-} |
362 |
- |
363 |
-src_compile() { |
364 |
- python_setup # for sphinx |
365 |
- |
366 |
- V=1 default |
367 |
- bindings python distutils-r1_src_compile |
368 |
- |
369 |
- if use mutt; then |
370 |
- pushd contrib/notmuch-mutt || die |
371 |
- emake notmuch-mutt.1 |
372 |
- popd || die |
373 |
- fi |
374 |
- |
375 |
- if use doc; then |
376 |
- pydocs() { |
377 |
- pushd docs || die |
378 |
- emake html |
379 |
- rm -r html/_sources || die |
380 |
- rm html/{objects.inv,.buildinfo} || die |
381 |
- mkdir -p ../html && mv html ../html/python || die |
382 |
- popd || die |
383 |
- } |
384 |
- LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs |
385 |
- fi |
386 |
-} |
387 |
- |
388 |
-src_test() { |
389 |
- pax-mark -m notmuch |
390 |
- LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default |
391 |
- pax-mark -ze notmuch |
392 |
-} |
393 |
- |
394 |
-src_install() { |
395 |
- default |
396 |
- |
397 |
- if use doc; then |
398 |
- doman doc/_build/man/man?/*.? |
399 |
- fi |
400 |
- |
401 |
- if use emacs; then |
402 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
403 |
- fi |
404 |
- |
405 |
- if use nmbug; then |
406 |
- dobin devel/nmbug/nmbug |
407 |
- dobin devel/nmbug/notmuch-report |
408 |
- fi |
409 |
- |
410 |
- if use mutt; then |
411 |
- pushd contrib/notmuch-mutt || die |
412 |
- dobin notmuch-mutt |
413 |
- doman notmuch-mutt.1 |
414 |
- insinto /etc/mutt |
415 |
- doins notmuch-mutt.rc |
416 |
- dodoc README-mutt |
417 |
- popd || die |
418 |
- fi |
419 |
- |
420 |
- DOCS="" bindings python distutils-r1_src_install |
421 |
- use doc && bindings python dodoc -r html |
422 |
-} |
423 |
- |
424 |
-pkg_preinst() { |
425 |
- if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then |
426 |
- elog "To enable notmuch support in mutt, add the following line into" |
427 |
- elog "your mutt config file, please:" |
428 |
- elog "" |
429 |
- elog " source /etc/mutt/notmuch-mutt.rc" |
430 |
- fi |
431 |
-} |
432 |
- |
433 |
-pkg_postinst() { |
434 |
- use emacs && elisp-site-regen |
435 |
-} |
436 |
- |
437 |
-pkg_postrm() { |
438 |
- use emacs && elisp-site-regen |
439 |
-} |
440 |
|
441 |
diff --git a/net-mail/notmuch/notmuch-0.29.2.ebuild b/net-mail/notmuch/notmuch-0.29.2.ebuild |
442 |
deleted file mode 100644 |
443 |
index b10795cfe09..00000000000 |
444 |
--- a/net-mail/notmuch/notmuch-0.29.2.ebuild |
445 |
+++ /dev/null |
446 |
@@ -1,233 +0,0 @@ |
447 |
-# Copyright 1999-2020 Gentoo Authors |
448 |
-# Distributed under the terms of the GNU General Public License v2 |
449 |
- |
450 |
-EAPI=6 |
451 |
- |
452 |
-DISTUTILS_OPTIONAL=1 |
453 |
-PYTHON_COMPAT=( python{2_7,3_6,3_7} ) |
454 |
- |
455 |
-inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \ |
456 |
- distutils-r1 toolchain-funcs |
457 |
- |
458 |
-DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" |
459 |
-HOMEPAGE="https://notmuchmail.org/" |
460 |
-SRC_URI="https://notmuchmail.org/releases/${P}.tar.xz |
461 |
- test? ( https://notmuchmail.org/releases/test-databases/database-v1.tar.xz )" |
462 |
- |
463 |
-LICENSE="GPL-3" |
464 |
-# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is |
465 |
-# meant to be binary backward compatible. |
466 |
-SLOT="0/5" |
467 |
-KEYWORDS="~alpha ~amd64 ~x86 ~x64-solaris" |
468 |
-REQUIRED_USE=" |
469 |
- nmbug? ( python ) |
470 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
471 |
- test? ( crypt emacs python valgrind ) |
472 |
- " |
473 |
-IUSE="crypt doc emacs mutt nmbug python test valgrind" |
474 |
- |
475 |
-RESTRICT="!test? ( test )" |
476 |
- |
477 |
-CDEPEND=" |
478 |
- !!<app-shells/bash-completion-1.9 |
479 |
- >=dev-libs/glib-2.22:2 |
480 |
- >=dev-libs/gmime-3.0.3:3.0 |
481 |
- >=dev-libs/xapian-1.4.8:= |
482 |
- dev-python/sphinx |
483 |
- sys-apps/texinfo |
484 |
- >=sys-libs/zlib-1.2.5.2 |
485 |
- sys-libs/talloc |
486 |
- crypt? ( dev-libs/gmime:3.0[crypt] ) |
487 |
- emacs? ( >=app-editors/emacs-24.1:* ) |
488 |
- python? ( ${PYTHON_DEPS} ) |
489 |
- " |
490 |
-DEPEND="${CDEPEND} |
491 |
- virtual/pkgconfig |
492 |
- doc? ( |
493 |
- app-doc/doxygen |
494 |
- dev-python/mock[${PYTHON_USEDEP}] |
495 |
- ) |
496 |
- test? ( |
497 |
- app-misc/dtach |
498 |
- >=app-editors/emacs-24.1:*[libxml2] |
499 |
- sys-devel/gdb |
500 |
- crypt? ( app-crypt/gnupg dev-libs/openssl ) |
501 |
- ) |
502 |
- valgrind? ( dev-util/valgrind ) |
503 |
- " |
504 |
-RDEPEND="${CDEPEND} |
505 |
- crypt? ( app-crypt/gnupg ) |
506 |
- nmbug? ( dev-vcs/git ) |
507 |
- mutt? ( |
508 |
- dev-perl/File-Which |
509 |
- dev-perl/Mail-Box |
510 |
- dev-perl/MailTools |
511 |
- dev-perl/String-ShellQuote |
512 |
- dev-perl/Term-ReadLine-Gnu |
513 |
- virtual/perl-Digest-SHA |
514 |
- virtual/perl-File-Path |
515 |
- virtual/perl-Getopt-Long |
516 |
- virtual/perl-Pod-Parser |
517 |
- ) |
518 |
- " |
519 |
- |
520 |
-DOCS=( AUTHORS NEWS README ) |
521 |
-NEED_EMACS="24.1" |
522 |
-SITEFILE="50${PN}-gentoo.el" |
523 |
-MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" |
524 |
-PATCHES=( |
525 |
- "${FILESDIR}"/${PV}-0001-Use-loopback-IP-address-rather-than-name.patch |
526 |
-) |
527 |
- |
528 |
-bindings() { |
529 |
- local ret=0 |
530 |
- |
531 |
- if use $1; then |
532 |
- pushd bindings/$1 || die |
533 |
- shift |
534 |
- "$@" |
535 |
- ret=$? |
536 |
- popd || die |
537 |
- fi |
538 |
- |
539 |
- return $ret |
540 |
-} |
541 |
- |
542 |
-pkg_pretend() { |
543 |
- if has_version '<net-mail/notmuch-0.18'; then |
544 |
- ewarn |
545 |
- ewarn "There are few not backward compatible changes between" |
546 |
- ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file" |
547 |
- ewarn "(0.18 section) for details before first use!" |
548 |
- ewarn |
549 |
- fi |
550 |
-} |
551 |
- |
552 |
-pkg_setup() { |
553 |
- use emacs && elisp-check-emacs-version |
554 |
-} |
555 |
- |
556 |
-src_unpack() { |
557 |
- unpack "${P}".tar.xz |
558 |
- if use test; then |
559 |
- mkdir -p "${S}"/test/test-databases || die |
560 |
- cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die |
561 |
- fi |
562 |
-} |
563 |
- |
564 |
-src_prepare() { |
565 |
- default |
566 |
- |
567 |
- bindings python distutils-r1_src_prepare |
568 |
- bindings python mv README README-python || die |
569 |
- mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die |
570 |
- |
571 |
- # assure that new Makefile.config will be generated |
572 |
- rm -f Makefile.config || die |
573 |
- |
574 |
- sed -e 's@^install: all install-man install-info$@install: all install-info@' -i Makefile.local |
575 |
- |
576 |
- if use test; then |
577 |
- append-cflags -g |
578 |
- append-cxxflags -g |
579 |
- fi |
580 |
- |
581 |
- if [[ ${CHOST} == *-solaris* ]] ; then |
582 |
- append-ldflags -lnsl -lsocket # non-autoconf configure |
583 |
- fi |
584 |
-} |
585 |
- |
586 |
-src_configure() { |
587 |
- python_setup # for sphinx |
588 |
- |
589 |
- local myeconfargs=( |
590 |
- --bashcompletiondir="$(get_bashcompdir)" |
591 |
- --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" |
592 |
- --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" |
593 |
- --without-desktop |
594 |
- --without-ruby |
595 |
- --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" |
596 |
- $(use_with emacs) |
597 |
- $(use_with doc api-docs) |
598 |
- ) |
599 |
- tc-export CC CXX |
600 |
- econf "${myeconfargs[@]}" |
601 |
-} |
602 |
- |
603 |
-src_compile() { |
604 |
- python_setup # for sphinx |
605 |
- |
606 |
- V=1 default |
607 |
- bindings python distutils-r1_src_compile |
608 |
- |
609 |
- if use mutt; then |
610 |
- pushd contrib/notmuch-mutt || die |
611 |
- emake notmuch-mutt.1 |
612 |
- popd || die |
613 |
- fi |
614 |
- |
615 |
- if use doc; then |
616 |
- pydocs() { |
617 |
- pushd docs || die |
618 |
- emake html |
619 |
- rm -r html/_sources || die |
620 |
- rm html/{objects.inv,.buildinfo} || die |
621 |
- mkdir -p ../html && mv html ../html/python || die |
622 |
- popd || die |
623 |
- } |
624 |
- LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs |
625 |
- fi |
626 |
-} |
627 |
- |
628 |
-src_test() { |
629 |
- pax-mark -m notmuch |
630 |
- LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default |
631 |
- pax-mark -ze notmuch |
632 |
-} |
633 |
- |
634 |
-src_install() { |
635 |
- default |
636 |
- |
637 |
- if use doc; then |
638 |
- doman doc/_build/man/man?/*.? |
639 |
- fi |
640 |
- |
641 |
- if use emacs; then |
642 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
643 |
- fi |
644 |
- |
645 |
- if use nmbug; then |
646 |
- dobin devel/nmbug/nmbug |
647 |
- dobin devel/nmbug/notmuch-report |
648 |
- fi |
649 |
- |
650 |
- if use mutt; then |
651 |
- pushd contrib/notmuch-mutt || die |
652 |
- dobin notmuch-mutt |
653 |
- doman notmuch-mutt.1 |
654 |
- insinto /etc/mutt |
655 |
- doins notmuch-mutt.rc |
656 |
- dodoc README-mutt |
657 |
- popd || die |
658 |
- fi |
659 |
- |
660 |
- DOCS="" bindings python distutils-r1_src_install |
661 |
- use doc && bindings python dodoc -r html |
662 |
-} |
663 |
- |
664 |
-pkg_preinst() { |
665 |
- if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then |
666 |
- elog "To enable notmuch support in mutt, add the following line into" |
667 |
- elog "your mutt config file, please:" |
668 |
- elog "" |
669 |
- elog " source /etc/mutt/notmuch-mutt.rc" |
670 |
- fi |
671 |
-} |
672 |
- |
673 |
-pkg_postinst() { |
674 |
- use emacs && elisp-site-regen |
675 |
-} |
676 |
- |
677 |
-pkg_postrm() { |
678 |
- use emacs && elisp-site-regen |
679 |
-} |