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