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