Gentoo Archives: gentoo-commits

From: "Amadeusz Piotr Żołnowski" <aidecoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/notmuch/
Date: Thu, 29 Dec 2016 21:39:29
Message-Id: 1483047515.54a1603ee7801fd1251b80531bd375c8c41336aa.aidecoe@gentoo
1 commit: 54a1603ee7801fd1251b80531bd375c8c41336aa
2 Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 29 21:38:01 2016 +0000
4 Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 29 21:38:35 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54a1603e
7
8 net-mail/notmuch: Bump version
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 net-mail/notmuch/Manifest | 1 +
13 net-mail/notmuch/notmuch-0.23.4.ebuild | 200 +++++++++++++++++++++++++++++++++
14 2 files changed, 201 insertions(+)
15
16 diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest
17 index e69e076..6ae6054 100644
18 --- a/net-mail/notmuch/Manifest
19 +++ b/net-mail/notmuch/Manifest
20 @@ -5,3 +5,4 @@ DIST notmuch-0.20.2.tar.gz 652945 SHA256 f741a26345bff389fd8a4a119c4174c6585730f
21 DIST notmuch-0.21.tar.gz 663600 SHA256 d06f8ffed168c7d53ffc449dd611038b5fa90f7ee22d58f3bec3b379571e25b3 SHA512 2485c422433be21f6bf89aaf997e1468c31a52029ddc8336e78a632b292c659569448c29813ea550ed27fb6815558522a451a7fa10e8fb3f87d9538b4dd7b01a WHIRLPOOL 303c6427822272834e3d95ac94760f0fbaf3f2947a984a6770a9b2918fe0fbad289ef95fb9a8300cb6db08ab3ef0ff56810b3a60879c6a2a3eac524689f0a2f0
22 DIST notmuch-0.22.2.tar.gz 683796 SHA256 6cd19c61634079981b2d8f4b7cb4eb953cba2a36272520603682d813d2bd7ed1 SHA512 cc11feb8d1c2c7959a42e032c1e36e828290a8e8477af8936a27654117fbc2e080c71fe69ec92bd80763d9d3b163d45b7c0fa9fe9c4ec649600fa928110da4ee WHIRLPOOL 6aa41fa26a92a11393193b6f7e147b69de00f57fe712486805b2b7019d9bf9887d6d10962ef4144ca9ef07d6f63bbb1ddb2f7104c6eb89841285620d439743be
23 DIST notmuch-0.23.3.tar.gz 691361 SHA256 0f5da5cf0203b774e345c50d56e975a87c2fc5407ef4ea284b6e2b55a8951882 SHA512 232a4133d70d074e6d38b00471145ecec342a5e138822cce01b6915e2b3de29fc1181e116d1df30e2fea04d519f53297fd8ea0e9d0df91bc8d6fce549feed1e3 WHIRLPOOL 82c30f3137132504ed41c42619c3645b74680d01a835e6074122b6ff3ab8d1a5dfe138a583872d09ea9f70a7312021fafa1bd2c08c3b6b9a319f55e5c81f28ff
24 +DIST notmuch-0.23.4.tar.gz 691851 SHA256 106dd6e39c4955871a49a84488d06394c1cecf66c1542b11834f8e8d5c66453b SHA512 a90dcb822a01c1a8e07a3fce6c63f210af482e34cbf329fd56db3ea4934e7950ec641c060104729373fc3fc0b42eb1e2937f653f3a42ddae7e7e15e9927c3dff WHIRLPOOL 3f916356896f1e23a286d8c4207c869ded9b766781fd625ad90c1a24d0fcb8f15bb5c09013424080e382afa69ba59443f394878346696c4f6ff0e91fcdf2cbd1
25
26 diff --git a/net-mail/notmuch/notmuch-0.23.4.ebuild b/net-mail/notmuch/notmuch-0.23.4.ebuild
27 new file mode 100644
28 index 00000000..49aefbf
29 --- /dev/null
30 +++ b/net-mail/notmuch/notmuch-0.23.4.ebuild
31 @@ -0,0 +1,200 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=6
37 +
38 +DISTUTILS_OPTIONAL=1
39 +PYTHON_COMPAT=( python{2_7,3_4} )
40 +
41 +inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \
42 + distutils-r1 toolchain-funcs
43 +
44 +DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging"
45 +HOMEPAGE="http://notmuchmail.org/"
46 +SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz
47 + test? ( ${HOMEPAGE%/}/releases/test-databases/database-v1.tar.xz )"
48 +
49 +LICENSE="GPL-3"
50 +# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is
51 +# meant to be binary backward compatible.
52 +SLOT="0/4"
53 +KEYWORDS="~alpha ~amd64 ~x86"
54 +REQUIRED_USE="
55 + nmbug? ( python )
56 + python? ( ${PYTHON_REQUIRED_USE} )
57 + test? ( crypt emacs python valgrind )
58 + "
59 +IUSE="crypt doc emacs mutt nmbug python test valgrind"
60 +
61 +CDEPEND="
62 + >=app-shells/bash-completion-1.9
63 + >=dev-libs/glib-2.22:2
64 + >=dev-libs/gmime-2.6.20-r2:2.6
65 + >=dev-libs/xapian-1.2.7-r2:=
66 + dev-python/sphinx[${PYTHON_USEDEP}]
67 + >=sys-libs/zlib-1.2.5.2
68 + sys-libs/talloc
69 + crypt? ( >=dev-libs/gmime-2.6.20-r2:2.6[smime] )
70 + emacs? ( >=virtual/emacs-23 )
71 + python? ( ${PYTHON_DEPS} )
72 + "
73 +DEPEND="${CDEPEND}
74 + virtual/pkgconfig
75 + doc? ( app-doc/doxygen )
76 + test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2]
77 + >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb
78 + crypt? ( app-crypt/gnupg dev-libs/openssl ) )
79 + valgrind? ( dev-util/valgrind )
80 + "
81 +RDEPEND="${CDEPEND}
82 + crypt? ( app-crypt/gnupg )
83 + nmbug? ( dev-vcs/git )
84 + mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools
85 + dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu
86 + virtual/perl-Digest-SHA virtual/perl-File-Path virtual/perl-Getopt-Long
87 + virtual/perl-Pod-Parser )
88 + "
89 +
90 +DOCS=( AUTHORS NEWS README )
91 +SITEFILE="50${PN}-gentoo.el"
92 +MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib"
93 +
94 +bindings() {
95 + local ret=0
96 +
97 + if use $1; then
98 + pushd bindings/$1 || die
99 + shift
100 + "$@"
101 + ret=$?
102 + popd || die
103 + fi
104 +
105 + return $ret
106 +}
107 +
108 +pkg_pretend() {
109 + if has_version '<net-mail/notmuch-0.18'; then
110 + ewarn
111 + ewarn "There are few not backward compatible changes between"
112 + ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file"
113 + ewarn "(0.18 section) for details before first use!"
114 + ewarn
115 + fi
116 +}
117 +
118 +pkg_setup() {
119 + if use emacs; then
120 + elisp-need-emacs 23 || die "Emacs version too low"
121 + fi
122 +}
123 +
124 +src_unpack() {
125 + unpack "${P}".tar.gz
126 + if use test; then
127 + mkdir -p "${S}"/test/test-databases || die
128 + cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die
129 + fi
130 +}
131 +
132 +src_prepare() {
133 + default
134 +
135 + bindings python distutils-r1_src_prepare
136 + bindings python mv README README-python || die
137 + mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die
138 +
139 + rm -f Makefile.config # assure that new Makefile.config will be generated
140 +
141 + if use test; then
142 + append-cflags -g
143 + append-cxxflags -g
144 + fi
145 +}
146 +
147 +src_configure() {
148 + local myeconfargs=(
149 + --bashcompletiondir="$(get_bashcompdir)"
150 + --emacslispdir="${EPREFIX}/${SITELISP}/${PN}"
151 + --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}"
152 + --without-ruby
153 + --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions"
154 + $(use_with emacs)
155 + $(use_with doc api-docs)
156 + )
157 + tc-export CC CXX
158 + econf "${myeconfargs[@]}"
159 +}
160 +
161 +src_compile() {
162 + V=1 default
163 + bindings python distutils-r1_src_compile
164 +
165 + if use mutt; then
166 + pushd contrib/notmuch-mutt || die
167 + emake notmuch-mutt.1
168 + popd || die
169 + fi
170 +
171 + if use doc; then
172 + pydocs() {
173 + pushd docs || die
174 + emake html
175 + rm -r html/_sources || die
176 + rm html/{objects.inv,.buildinfo} || die
177 + mkdir -p ../html && mv html ../html/python || die
178 + popd || die
179 + }
180 + LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs
181 + fi
182 +}
183 +
184 +src_test() {
185 + pax-mark -m notmuch
186 + LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default
187 + pax-mark -ze notmuch
188 +}
189 +
190 +src_install() {
191 + default
192 +
193 + if use emacs; then
194 + elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
195 + fi
196 +
197 + if use nmbug; then
198 + dobin devel/nmbug/nmbug
199 + dobin devel/nmbug/notmuch-report
200 + fi
201 +
202 + if use mutt; then
203 + pushd contrib/notmuch-mutt || die
204 + dobin notmuch-mutt
205 + doman notmuch-mutt.1
206 + insinto /etc/mutt
207 + doins notmuch-mutt.rc
208 + dodoc README-mutt
209 + popd || die
210 + fi
211 +
212 + DOCS="" bindings python distutils-r1_src_install
213 + use doc && bindings python dodoc -r html
214 +}
215 +
216 +pkg_preinst() {
217 + if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then
218 + elog "To enable notmuch support in mutt, add the following line into"
219 + elog "your mutt config file, please:"
220 + elog ""
221 + elog " source /etc/mutt/notmuch-mutt.rc"
222 + fi
223 +}
224 +
225 +pkg_postinst() {
226 + use emacs && elisp-site-regen
227 +}
228 +
229 +pkg_postrm() {
230 + use emacs && elisp-site-regen
231 +}