1 |
commit: a8f3b2c79b740e907c7e312b8f6c47fe4ec0f52e |
2 |
Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 26 20:16:00 2016 +0000 |
4 |
Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 26 20:35:29 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8f3b2c7 |
7 |
|
8 |
net-mail/notmuch: Remove older versions |
9 |
|
10 |
0.22.2 contains bugfixes and supersedes 0.22 and 0.22.1. |
11 |
|
12 |
Package-Manager: portage-2.3.1 |
13 |
|
14 |
net-mail/notmuch/Manifest | 2 - |
15 |
net-mail/notmuch/notmuch-0.22-r2.ebuild | 198 -------------------------------- |
16 |
net-mail/notmuch/notmuch-0.22.1.ebuild | 198 -------------------------------- |
17 |
net-mail/notmuch/notmuch-0.22.ebuild | 189 ------------------------------ |
18 |
4 files changed, 587 deletions(-) |
19 |
|
20 |
diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest |
21 |
index a0c243b..5334138 100644 |
22 |
--- a/net-mail/notmuch/Manifest |
23 |
+++ b/net-mail/notmuch/Manifest |
24 |
@@ -3,6 +3,4 @@ DIST notmuch-0.18.2.tar.gz 635438 SHA256 e99f7bfee1250aa9f23e05d926ec278316fb8dd |
25 |
DIST notmuch-0.19.tar.gz 659038 SHA256 396fc6548423785ebbbe9a6cce321d957d3b2e856edb8225bb0988470833eeeb SHA512 41eba85d2e6f89693f53d607abdef837973204e709f2c7385e64507a19b316913851f17b3b6dc93d8a622c72756b3e696aad8189570a563df38994cf346791a5 WHIRLPOOL 380d2508f106fc08b31f7928d63587cfc7ed63835a0cde287d7ba09d3f6814070c789aad1d0bf6a3bab387273b2d37a8c783d939c2f4afa475b9785f2618a25a |
26 |
DIST notmuch-0.20.2.tar.gz 652945 SHA256 f741a26345bff389fd8a4a119c4174c6585730f71844809583a54ef2a865adec SHA512 08ab75df324f232edd7c36f73d01d7453c058ffb55c4f548afdf9abe843317c1d7066f21e7600c66c53577f7d31787914bf69743aa5d221e239e182452681c75 WHIRLPOOL 1698cb1b09046f50a57ebf23625a2dd68f86cac7cb1142be81e77b5625e49960cb2311c8acff44de0894238bced48853cdd72b7edf34109ecee0bc53d5b086fc |
27 |
DIST notmuch-0.21.tar.gz 663600 SHA256 d06f8ffed168c7d53ffc449dd611038b5fa90f7ee22d58f3bec3b379571e25b3 SHA512 2485c422433be21f6bf89aaf997e1468c31a52029ddc8336e78a632b292c659569448c29813ea550ed27fb6815558522a451a7fa10e8fb3f87d9538b4dd7b01a WHIRLPOOL 303c6427822272834e3d95ac94760f0fbaf3f2947a984a6770a9b2918fe0fbad289ef95fb9a8300cb6db08ab3ef0ff56810b3a60879c6a2a3eac524689f0a2f0 |
28 |
-DIST notmuch-0.22.1.tar.gz 683286 SHA256 e739457794f3c2b363beffa3ed9e8a2786921031c80672f5b06d0880876a974b SHA512 b28ee8aa5af7172664ebc4d50c8830e645ad3e4945f5d162e44b627f3344de71b7525a444ae08f1c0650a7f94071f54cebcf3494214df80452b6ca954818deb9 WHIRLPOOL 85f95c9156a93e7b31d3d80e5b31f7e0a7678ff14e7c803abf9baf21a38edf4512c576ddbe540028aa45691260b0d230bf84c8c87c6eb18071d4f5f29c444a43 |
29 |
DIST notmuch-0.22.2.tar.gz 683796 SHA256 6cd19c61634079981b2d8f4b7cb4eb953cba2a36272520603682d813d2bd7ed1 SHA512 cc11feb8d1c2c7959a42e032c1e36e828290a8e8477af8936a27654117fbc2e080c71fe69ec92bd80763d9d3b163d45b7c0fa9fe9c4ec649600fa928110da4ee WHIRLPOOL 6aa41fa26a92a11393193b6f7e147b69de00f57fe712486805b2b7019d9bf9887d6d10962ef4144ca9ef07d6f63bbb1ddb2f7104c6eb89841285620d439743be |
30 |
-DIST notmuch-0.22.tar.gz 682458 SHA256 d64118ef926ba06fba814a89a75d20b0c8c8ec07dd65e41bb9f1e9db0dcfb99a SHA512 0fd3860b4bce0fbf2648046a68b92d23d73604e82e05ee1b5913fc82985e67225b0f3a0977f71ad5251e7714a7111e8fd84ae0347f33475dddd8eb8d00fd2ed6 WHIRLPOOL 56e3ebbbf53092a6683b0c6ca945ed634f2e01b63625279a69221688905d0da688689ccc7a68d0af43c7ed9b48e696d85a6cb17a8d01c6e0facb27255ac00d3e |
31 |
|
32 |
diff --git a/net-mail/notmuch/notmuch-0.22-r2.ebuild b/net-mail/notmuch/notmuch-0.22-r2.ebuild |
33 |
deleted file mode 100644 |
34 |
index 5748091..00000000 |
35 |
--- a/net-mail/notmuch/notmuch-0.22-r2.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,198 +0,0 @@ |
38 |
-# Copyright 1999-2016 Gentoo Foundation |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
-# $Id$ |
41 |
- |
42 |
-EAPI=5 |
43 |
- |
44 |
-DISTUTILS_OPTIONAL=1 |
45 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
46 |
- |
47 |
-inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \ |
48 |
- distutils-r1 toolchain-funcs |
49 |
- |
50 |
-DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" |
51 |
-HOMEPAGE="http://notmuchmail.org/" |
52 |
-SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz |
53 |
- test? ( ${HOMEPAGE%/}/releases/test-databases/database-v1.tar.xz )" |
54 |
- |
55 |
-LICENSE="GPL-3" |
56 |
-# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is |
57 |
-# meant to be binary backward compatible. |
58 |
-SLOT="0/4" |
59 |
-KEYWORDS="~alpha ~amd64 ~x86" |
60 |
-REQUIRED_USE=" |
61 |
- nmbug? ( python ) |
62 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
63 |
- test? ( crypt emacs python valgrind ) |
64 |
- " |
65 |
-IUSE="crypt doc emacs mutt nmbug python test valgrind" |
66 |
- |
67 |
-CDEPEND=" |
68 |
- >=app-shells/bash-completion-1.9 |
69 |
- >=dev-libs/glib-2.22:2 |
70 |
- >=dev-libs/gmime-2.6.20-r2:2.6 |
71 |
- >=dev-libs/xapian-1.2.7-r2:= |
72 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
73 |
- >=sys-libs/zlib-1.2.5.2 |
74 |
- sys-libs/talloc |
75 |
- crypt? ( >=dev-libs/gmime-2.6.20-r2:2.6[smime] ) |
76 |
- emacs? ( >=virtual/emacs-23 ) |
77 |
- python? ( ${PYTHON_DEPS} ) |
78 |
- " |
79 |
-DEPEND="${CDEPEND} |
80 |
- virtual/pkgconfig |
81 |
- doc? ( app-doc/doxygen ) |
82 |
- test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2] |
83 |
- >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb |
84 |
- crypt? ( app-crypt/gnupg dev-libs/openssl ) ) |
85 |
- valgrind? ( dev-util/valgrind ) |
86 |
- " |
87 |
-RDEPEND="${CDEPEND} |
88 |
- crypt? ( app-crypt/gnupg ) |
89 |
- nmbug? ( dev-vcs/git ) |
90 |
- mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools |
91 |
- dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu |
92 |
- virtual/perl-Digest-SHA virtual/perl-File-Path virtual/perl-Getopt-Long |
93 |
- virtual/perl-Pod-Parser ) |
94 |
- " |
95 |
- |
96 |
-DOCS=( AUTHORS NEWS README ) |
97 |
-SITEFILE="50${PN}-gentoo.el" |
98 |
-MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" |
99 |
-MY_PATCHES=( ) |
100 |
- |
101 |
-bindings() { |
102 |
- local ret=0 |
103 |
- |
104 |
- if use $1; then |
105 |
- pushd bindings/$1 || die |
106 |
- shift |
107 |
- "$@" |
108 |
- ret=$? |
109 |
- popd || die |
110 |
- fi |
111 |
- |
112 |
- return $ret |
113 |
-} |
114 |
- |
115 |
-pkg_pretend() { |
116 |
- if has_version '<net-mail/notmuch-0.18'; then |
117 |
- ewarn |
118 |
- ewarn "There are few not backward compatible changes between" |
119 |
- ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file" |
120 |
- ewarn "(0.18 section) for details before first use!" |
121 |
- ewarn |
122 |
- fi |
123 |
-} |
124 |
- |
125 |
-pkg_setup() { |
126 |
- if use emacs; then |
127 |
- elisp-need-emacs 23 || die "Emacs version too low" |
128 |
- fi |
129 |
-} |
130 |
- |
131 |
-src_unpack() { |
132 |
- unpack "${P}".tar.gz |
133 |
- if use test; then |
134 |
- mkdir -p "${S}"/test/test-databases || die |
135 |
- cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die |
136 |
- fi |
137 |
-} |
138 |
- |
139 |
-src_prepare() { |
140 |
- [[ "${MY_PATCHES[@]}" ]] && epatch "${MY_PATCHES[@]}" |
141 |
- |
142 |
- bindings python distutils-r1_src_prepare |
143 |
- bindings python mv README README-python || die |
144 |
- mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die |
145 |
- |
146 |
- rm -f Makefile.config # assure that new Makefile.config will be generated |
147 |
- |
148 |
- if use test; then |
149 |
- append-cflags -g |
150 |
- append-cxxflags -g |
151 |
- fi |
152 |
-} |
153 |
- |
154 |
-src_configure() { |
155 |
- local myeconfargs=( |
156 |
- --bashcompletiondir="$(get_bashcompdir)" |
157 |
- --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" |
158 |
- --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" |
159 |
- --without-ruby |
160 |
- --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" |
161 |
- $(use_with emacs) |
162 |
- ) |
163 |
- tc-export CC CXX |
164 |
- econf "${myeconfargs[@]}" |
165 |
-} |
166 |
- |
167 |
-src_compile() { |
168 |
- V=1 default |
169 |
- bindings python distutils-r1_src_compile |
170 |
- |
171 |
- if use mutt; then |
172 |
- pushd contrib/notmuch-mutt || die |
173 |
- emake notmuch-mutt.1 |
174 |
- popd || die |
175 |
- fi |
176 |
- |
177 |
- if use doc; then |
178 |
- pydocs() { |
179 |
- pushd docs || die |
180 |
- emake html |
181 |
- mv html ../python || die |
182 |
- popd || die |
183 |
- } |
184 |
- LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs |
185 |
- fi |
186 |
-} |
187 |
- |
188 |
-src_test() { |
189 |
- pax-mark -m notmuch |
190 |
- LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default |
191 |
- pax-mark -ze notmuch |
192 |
-} |
193 |
- |
194 |
-src_install() { |
195 |
- default |
196 |
- |
197 |
- if use emacs; then |
198 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
199 |
- fi |
200 |
- |
201 |
- if use nmbug; then |
202 |
- dobin devel/nmbug/nmbug |
203 |
- dobin devel/nmbug/notmuch-report |
204 |
- fi |
205 |
- |
206 |
- if use mutt; then |
207 |
- pushd contrib/notmuch-mutt || die |
208 |
- dobin notmuch-mutt |
209 |
- doman notmuch-mutt.1 |
210 |
- insinto /etc/mutt |
211 |
- doins notmuch-mutt.rc |
212 |
- dodoc README-mutt |
213 |
- popd || die |
214 |
- fi |
215 |
- |
216 |
- DOCS="" bindings python distutils-r1_src_install |
217 |
- use doc && bindings python dohtml -r python |
218 |
-} |
219 |
- |
220 |
-pkg_preinst() { |
221 |
- if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then |
222 |
- elog "To enable notmuch support in mutt, add the following line into" |
223 |
- elog "your mutt config file, please:" |
224 |
- elog "" |
225 |
- elog " source /etc/mutt/notmuch-mutt.rc" |
226 |
- fi |
227 |
-} |
228 |
- |
229 |
-pkg_postinst() { |
230 |
- use emacs && elisp-site-regen |
231 |
-} |
232 |
- |
233 |
-pkg_postrm() { |
234 |
- use emacs && elisp-site-regen |
235 |
-} |
236 |
|
237 |
diff --git a/net-mail/notmuch/notmuch-0.22.1.ebuild b/net-mail/notmuch/notmuch-0.22.1.ebuild |
238 |
deleted file mode 100644 |
239 |
index 5748091..00000000 |
240 |
--- a/net-mail/notmuch/notmuch-0.22.1.ebuild |
241 |
+++ /dev/null |
242 |
@@ -1,198 +0,0 @@ |
243 |
-# Copyright 1999-2016 Gentoo Foundation |
244 |
-# Distributed under the terms of the GNU General Public License v2 |
245 |
-# $Id$ |
246 |
- |
247 |
-EAPI=5 |
248 |
- |
249 |
-DISTUTILS_OPTIONAL=1 |
250 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
251 |
- |
252 |
-inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \ |
253 |
- distutils-r1 toolchain-funcs |
254 |
- |
255 |
-DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" |
256 |
-HOMEPAGE="http://notmuchmail.org/" |
257 |
-SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz |
258 |
- test? ( ${HOMEPAGE%/}/releases/test-databases/database-v1.tar.xz )" |
259 |
- |
260 |
-LICENSE="GPL-3" |
261 |
-# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is |
262 |
-# meant to be binary backward compatible. |
263 |
-SLOT="0/4" |
264 |
-KEYWORDS="~alpha ~amd64 ~x86" |
265 |
-REQUIRED_USE=" |
266 |
- nmbug? ( python ) |
267 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
268 |
- test? ( crypt emacs python valgrind ) |
269 |
- " |
270 |
-IUSE="crypt doc emacs mutt nmbug python test valgrind" |
271 |
- |
272 |
-CDEPEND=" |
273 |
- >=app-shells/bash-completion-1.9 |
274 |
- >=dev-libs/glib-2.22:2 |
275 |
- >=dev-libs/gmime-2.6.20-r2:2.6 |
276 |
- >=dev-libs/xapian-1.2.7-r2:= |
277 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
278 |
- >=sys-libs/zlib-1.2.5.2 |
279 |
- sys-libs/talloc |
280 |
- crypt? ( >=dev-libs/gmime-2.6.20-r2:2.6[smime] ) |
281 |
- emacs? ( >=virtual/emacs-23 ) |
282 |
- python? ( ${PYTHON_DEPS} ) |
283 |
- " |
284 |
-DEPEND="${CDEPEND} |
285 |
- virtual/pkgconfig |
286 |
- doc? ( app-doc/doxygen ) |
287 |
- test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2] |
288 |
- >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb |
289 |
- crypt? ( app-crypt/gnupg dev-libs/openssl ) ) |
290 |
- valgrind? ( dev-util/valgrind ) |
291 |
- " |
292 |
-RDEPEND="${CDEPEND} |
293 |
- crypt? ( app-crypt/gnupg ) |
294 |
- nmbug? ( dev-vcs/git ) |
295 |
- mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools |
296 |
- dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu |
297 |
- virtual/perl-Digest-SHA virtual/perl-File-Path virtual/perl-Getopt-Long |
298 |
- virtual/perl-Pod-Parser ) |
299 |
- " |
300 |
- |
301 |
-DOCS=( AUTHORS NEWS README ) |
302 |
-SITEFILE="50${PN}-gentoo.el" |
303 |
-MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" |
304 |
-MY_PATCHES=( ) |
305 |
- |
306 |
-bindings() { |
307 |
- local ret=0 |
308 |
- |
309 |
- if use $1; then |
310 |
- pushd bindings/$1 || die |
311 |
- shift |
312 |
- "$@" |
313 |
- ret=$? |
314 |
- popd || die |
315 |
- fi |
316 |
- |
317 |
- return $ret |
318 |
-} |
319 |
- |
320 |
-pkg_pretend() { |
321 |
- if has_version '<net-mail/notmuch-0.18'; then |
322 |
- ewarn |
323 |
- ewarn "There are few not backward compatible changes between" |
324 |
- ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file" |
325 |
- ewarn "(0.18 section) for details before first use!" |
326 |
- ewarn |
327 |
- fi |
328 |
-} |
329 |
- |
330 |
-pkg_setup() { |
331 |
- if use emacs; then |
332 |
- elisp-need-emacs 23 || die "Emacs version too low" |
333 |
- fi |
334 |
-} |
335 |
- |
336 |
-src_unpack() { |
337 |
- unpack "${P}".tar.gz |
338 |
- if use test; then |
339 |
- mkdir -p "${S}"/test/test-databases || die |
340 |
- cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die |
341 |
- fi |
342 |
-} |
343 |
- |
344 |
-src_prepare() { |
345 |
- [[ "${MY_PATCHES[@]}" ]] && epatch "${MY_PATCHES[@]}" |
346 |
- |
347 |
- bindings python distutils-r1_src_prepare |
348 |
- bindings python mv README README-python || die |
349 |
- mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die |
350 |
- |
351 |
- rm -f Makefile.config # assure that new Makefile.config will be generated |
352 |
- |
353 |
- if use test; then |
354 |
- append-cflags -g |
355 |
- append-cxxflags -g |
356 |
- fi |
357 |
-} |
358 |
- |
359 |
-src_configure() { |
360 |
- local myeconfargs=( |
361 |
- --bashcompletiondir="$(get_bashcompdir)" |
362 |
- --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" |
363 |
- --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" |
364 |
- --without-ruby |
365 |
- --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" |
366 |
- $(use_with emacs) |
367 |
- ) |
368 |
- tc-export CC CXX |
369 |
- econf "${myeconfargs[@]}" |
370 |
-} |
371 |
- |
372 |
-src_compile() { |
373 |
- V=1 default |
374 |
- bindings python distutils-r1_src_compile |
375 |
- |
376 |
- if use mutt; then |
377 |
- pushd contrib/notmuch-mutt || die |
378 |
- emake notmuch-mutt.1 |
379 |
- popd || die |
380 |
- fi |
381 |
- |
382 |
- if use doc; then |
383 |
- pydocs() { |
384 |
- pushd docs || die |
385 |
- emake html |
386 |
- mv html ../python || die |
387 |
- popd || die |
388 |
- } |
389 |
- LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs |
390 |
- fi |
391 |
-} |
392 |
- |
393 |
-src_test() { |
394 |
- pax-mark -m notmuch |
395 |
- LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default |
396 |
- pax-mark -ze notmuch |
397 |
-} |
398 |
- |
399 |
-src_install() { |
400 |
- default |
401 |
- |
402 |
- if use emacs; then |
403 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
404 |
- fi |
405 |
- |
406 |
- if use nmbug; then |
407 |
- dobin devel/nmbug/nmbug |
408 |
- dobin devel/nmbug/notmuch-report |
409 |
- fi |
410 |
- |
411 |
- if use mutt; then |
412 |
- pushd contrib/notmuch-mutt || die |
413 |
- dobin notmuch-mutt |
414 |
- doman notmuch-mutt.1 |
415 |
- insinto /etc/mutt |
416 |
- doins notmuch-mutt.rc |
417 |
- dodoc README-mutt |
418 |
- popd || die |
419 |
- fi |
420 |
- |
421 |
- DOCS="" bindings python distutils-r1_src_install |
422 |
- use doc && bindings python dohtml -r python |
423 |
-} |
424 |
- |
425 |
-pkg_preinst() { |
426 |
- if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then |
427 |
- elog "To enable notmuch support in mutt, add the following line into" |
428 |
- elog "your mutt config file, please:" |
429 |
- elog "" |
430 |
- elog " source /etc/mutt/notmuch-mutt.rc" |
431 |
- fi |
432 |
-} |
433 |
- |
434 |
-pkg_postinst() { |
435 |
- use emacs && elisp-site-regen |
436 |
-} |
437 |
- |
438 |
-pkg_postrm() { |
439 |
- use emacs && elisp-site-regen |
440 |
-} |
441 |
|
442 |
diff --git a/net-mail/notmuch/notmuch-0.22.ebuild b/net-mail/notmuch/notmuch-0.22.ebuild |
443 |
deleted file mode 100644 |
444 |
index 3c6dfdd..00000000 |
445 |
--- a/net-mail/notmuch/notmuch-0.22.ebuild |
446 |
+++ /dev/null |
447 |
@@ -1,189 +0,0 @@ |
448 |
-# Copyright 1999-2016 Gentoo Foundation |
449 |
-# Distributed under the terms of the GNU General Public License v2 |
450 |
-# $Id$ |
451 |
- |
452 |
-EAPI=5 |
453 |
- |
454 |
-DISTUTILS_OPTIONAL=1 |
455 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
456 |
- |
457 |
-inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \ |
458 |
- distutils-r1 toolchain-funcs |
459 |
- |
460 |
-DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" |
461 |
-HOMEPAGE="http://notmuchmail.org/" |
462 |
-SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz" |
463 |
- |
464 |
-LICENSE="GPL-3" |
465 |
-# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is |
466 |
-# meant to be binary backward compatible. |
467 |
-SLOT="0/4" |
468 |
-KEYWORDS="~amd64 ~x86" |
469 |
-REQUIRED_USE=" |
470 |
- nmbug? ( python ) |
471 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
472 |
- test? ( crypt debug emacs python ) |
473 |
- " |
474 |
-IUSE="crypt debug doc emacs mutt nmbug python test" |
475 |
- |
476 |
-CDEPEND=" |
477 |
- >=app-shells/bash-completion-1.9 |
478 |
- >=dev-libs/glib-2.22:2 |
479 |
- >=dev-libs/gmime-2.6.20:2.6 |
480 |
- >=dev-libs/xapian-1.2.7-r2:= |
481 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
482 |
- >=sys-libs/zlib-1.2.5.2 |
483 |
- sys-libs/talloc |
484 |
- debug? ( dev-util/valgrind ) |
485 |
- emacs? ( >=virtual/emacs-23 ) |
486 |
- python? ( ${PYTHON_DEPS} ) |
487 |
- " |
488 |
-DEPEND="${CDEPEND} |
489 |
- virtual/pkgconfig |
490 |
- doc? ( app-doc/doxygen ) |
491 |
- test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2] |
492 |
- >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb ) |
493 |
- " |
494 |
-RDEPEND="${CDEPEND} |
495 |
- crypt? ( app-crypt/gnupg ) |
496 |
- nmbug? ( dev-vcs/git ) |
497 |
- mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools |
498 |
- dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu |
499 |
- virtual/perl-Digest-SHA virtual/perl-File-Path virtual/perl-Getopt-Long |
500 |
- virtual/perl-Pod-Parser |
501 |
- ) |
502 |
- " |
503 |
- |
504 |
-DOCS=( AUTHORS NEWS README ) |
505 |
-SITEFILE="50${PN}-gentoo.el" |
506 |
-MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" |
507 |
-MY_PATCHES=( ) |
508 |
- |
509 |
-bindings() { |
510 |
- local ret=0 |
511 |
- |
512 |
- if use $1; then |
513 |
- pushd bindings/$1 || die |
514 |
- shift |
515 |
- "$@" |
516 |
- ret=$? |
517 |
- popd || die |
518 |
- fi |
519 |
- |
520 |
- return $ret |
521 |
-} |
522 |
- |
523 |
-pkg_pretend() { |
524 |
- if has_version '<net-mail/notmuch-0.18'; then |
525 |
- ewarn |
526 |
- ewarn "There are few not backward compatible changes between" |
527 |
- ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file" |
528 |
- ewarn "(0.18 section) for details before first use!" |
529 |
- ewarn |
530 |
- fi |
531 |
-} |
532 |
- |
533 |
-pkg_setup() { |
534 |
- if use emacs; then |
535 |
- elisp-need-emacs 23 || die "Emacs version too low" |
536 |
- fi |
537 |
-} |
538 |
- |
539 |
-src_prepare() { |
540 |
- [[ "${MY_PATCHES[@]}" ]] && epatch "${MY_PATCHES[@]}" |
541 |
- |
542 |
- bindings python distutils-r1_src_prepare |
543 |
- bindings python mv README README-python || die |
544 |
- mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die |
545 |
- |
546 |
- rm -f Makefile.config # assure that new Makefile.config will be generated |
547 |
- |
548 |
- if use debug; then |
549 |
- append-cflags -g |
550 |
- append-cxxflags -g |
551 |
- fi |
552 |
-} |
553 |
- |
554 |
-src_configure() { |
555 |
- local myeconfargs=( |
556 |
- --bashcompletiondir="$(get_bashcompdir)" |
557 |
- --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" |
558 |
- --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" |
559 |
- --without-ruby |
560 |
- --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" |
561 |
- $(use_with emacs) |
562 |
- ) |
563 |
- tc-export CC CXX |
564 |
- econf "${myeconfargs[@]}" |
565 |
-} |
566 |
- |
567 |
-src_compile() { |
568 |
- V=1 default |
569 |
- bindings python distutils-r1_src_compile |
570 |
- |
571 |
- if use mutt; then |
572 |
- pushd contrib/notmuch-mutt || die |
573 |
- emake notmuch-mutt.1 |
574 |
- popd || die |
575 |
- fi |
576 |
- |
577 |
- if use doc; then |
578 |
- pydocs() { |
579 |
- pushd docs || die |
580 |
- emake html |
581 |
- mv html ../python || die |
582 |
- popd || die |
583 |
- } |
584 |
- LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs |
585 |
- fi |
586 |
-} |
587 |
- |
588 |
-src_test() { |
589 |
- pax-mark -m notmuch |
590 |
- emake download-test-databases |
591 |
- LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default |
592 |
- pax-mark -ze notmuch |
593 |
-} |
594 |
- |
595 |
-src_install() { |
596 |
- default |
597 |
- |
598 |
- if use emacs; then |
599 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
600 |
- fi |
601 |
- |
602 |
- if use nmbug; then |
603 |
- dobin devel/nmbug/nmbug |
604 |
- dobin devel/nmbug/notmuch-report |
605 |
- fi |
606 |
- |
607 |
- if use mutt; then |
608 |
- pushd contrib/notmuch-mutt || die |
609 |
- dobin notmuch-mutt |
610 |
- doman notmuch-mutt.1 |
611 |
- insinto /etc/mutt |
612 |
- doins notmuch-mutt.rc |
613 |
- dodoc README-mutt |
614 |
- popd || die |
615 |
- fi |
616 |
- |
617 |
- DOCS="" bindings python distutils-r1_src_install |
618 |
- use doc && bindings python dohtml -r python |
619 |
-} |
620 |
- |
621 |
-pkg_preinst() { |
622 |
- if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then |
623 |
- elog "To enable notmuch support in mutt, add the following line into" |
624 |
- elog "your mutt config file, please:" |
625 |
- elog "" |
626 |
- elog " source /etc/mutt/notmuch-mutt.rc" |
627 |
- fi |
628 |
-} |
629 |
- |
630 |
-pkg_postinst() { |
631 |
- use emacs && elisp-site-regen |
632 |
-} |
633 |
- |
634 |
-pkg_postrm() { |
635 |
- use emacs && elisp-site-regen |
636 |
-} |