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: Sun, 01 May 2016 21:35:53
Message-Id: 1462138386.ea17c8f92456f6726f15f7aa63064c84694ae842.aidecoe@gentoo
1 commit: ea17c8f92456f6726f15f7aa63064c84694ae842
2 Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 27 22:07:02 2016 +0000
4 Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
5 CommitDate: Sun May 1 21:33:06 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea17c8f9
7
8 net-mail/notmuch: Bump version
9
10 Simplify deps. Use slots and subslots.
11
12 Package-Manager: portage-2.2.28
13
14 net-mail/notmuch/Manifest | 1 +
15 net-mail/notmuch/notmuch-0.22.ebuild | 189 +++++++++++++++++++++++++++++++++++
16 2 files changed, 190 insertions(+)
17
18 diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest
19 index 1636fc8..64dc7b3 100644
20 --- a/net-mail/notmuch/Manifest
21 +++ b/net-mail/notmuch/Manifest
22 @@ -2,3 +2,4 @@ DIST notmuch-0.18.2.tar.gz 635438 SHA256 e99f7bfee1250aa9f23e05d926ec278316fb8dd
23 DIST notmuch-0.19.tar.gz 659038 SHA256 396fc6548423785ebbbe9a6cce321d957d3b2e856edb8225bb0988470833eeeb SHA512 41eba85d2e6f89693f53d607abdef837973204e709f2c7385e64507a19b316913851f17b3b6dc93d8a622c72756b3e696aad8189570a563df38994cf346791a5 WHIRLPOOL 380d2508f106fc08b31f7928d63587cfc7ed63835a0cde287d7ba09d3f6814070c789aad1d0bf6a3bab387273b2d37a8c783d939c2f4afa475b9785f2618a25a
24 DIST notmuch-0.20.2.tar.gz 652945 SHA256 f741a26345bff389fd8a4a119c4174c6585730f71844809583a54ef2a865adec SHA512 08ab75df324f232edd7c36f73d01d7453c058ffb55c4f548afdf9abe843317c1d7066f21e7600c66c53577f7d31787914bf69743aa5d221e239e182452681c75 WHIRLPOOL 1698cb1b09046f50a57ebf23625a2dd68f86cac7cb1142be81e77b5625e49960cb2311c8acff44de0894238bced48853cdd72b7edf34109ecee0bc53d5b086fc
25 DIST notmuch-0.21.tar.gz 663600 SHA256 d06f8ffed168c7d53ffc449dd611038b5fa90f7ee22d58f3bec3b379571e25b3 SHA512 2485c422433be21f6bf89aaf997e1468c31a52029ddc8336e78a632b292c659569448c29813ea550ed27fb6815558522a451a7fa10e8fb3f87d9538b4dd7b01a WHIRLPOOL 303c6427822272834e3d95ac94760f0fbaf3f2947a984a6770a9b2918fe0fbad289ef95fb9a8300cb6db08ab3ef0ff56810b3a60879c6a2a3eac524689f0a2f0
26 +DIST notmuch-0.22.tar.gz 682458 SHA256 d64118ef926ba06fba814a89a75d20b0c8c8ec07dd65e41bb9f1e9db0dcfb99a SHA512 0fd3860b4bce0fbf2648046a68b92d23d73604e82e05ee1b5913fc82985e67225b0f3a0977f71ad5251e7714a7111e8fd84ae0347f33475dddd8eb8d00fd2ed6 WHIRLPOOL 56e3ebbbf53092a6683b0c6ca945ed634f2e01b63625279a69221688905d0da688689ccc7a68d0af43c7ed9b48e696d85a6cb17a8d01c6e0facb27255ac00d3e
27
28 diff --git a/net-mail/notmuch/notmuch-0.22.ebuild b/net-mail/notmuch/notmuch-0.22.ebuild
29 new file mode 100644
30 index 0000000..2004166
31 --- /dev/null
32 +++ b/net-mail/notmuch/notmuch-0.22.ebuild
33 @@ -0,0 +1,189 @@
34 +# Copyright 1999-2016 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=5
39 +
40 +DISTUTILS_OPTIONAL=1
41 +PYTHON_COMPAT=( python{2_7,3_3,3_4} )
42 +
43 +inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \
44 + distutils-r1 toolchain-funcs
45 +
46 +DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging"
47 +HOMEPAGE="http://notmuchmail.org/"
48 +SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz"
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="~amd64 ~x86"
55 +REQUIRED_USE="
56 + nmbug? ( python )
57 + python? ( ${PYTHON_REQUIRED_USE} )
58 + test? ( crypt debug emacs python )
59 + "
60 +IUSE="crypt debug doc emacs mutt nmbug python test"
61 +
62 +CDEPEND="
63 + >=app-shells/bash-completion-1.9
64 + >=dev-libs/glib-2.22:2
65 + >=dev-libs/gmime-2.6.20: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 + debug? ( dev-util/valgrind )
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 + "
80 +RDEPEND="${CDEPEND}
81 + crypt? ( app-crypt/gnupg )
82 + nmbug? ( dev-vcs/git )
83 + mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools
84 + dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu
85 + virtual/perl-Digest-SHA virtual/perl-File-Path virtual/perl-Getopt-Long
86 + virtual/perl-Pod-Parser
87 + )
88 + "
89 +
90 +DOCS=( AUTHORS NEWS README )
91 +SITEFILE="50${PN}-gentoo.el"
92 +MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib"
93 +MY_PATCHES=( )
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_prepare() {
126 + [[ "${MY_PATCHES[@]}" ]] && epatch "${MY_PATCHES[@]}"
127 +
128 + bindings python distutils-r1_src_prepare
129 + bindings python mv README README-python || die
130 + mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die
131 +
132 + rm -f Makefile.config # assure that new Makefile.config will be generated
133 +
134 + if use debug; then
135 + append-cflags -g
136 + append-cxxflags -g
137 + fi
138 +}
139 +
140 +src_configure() {
141 + local myeconfargs=(
142 + --bashcompletiondir="$(get_bashcompdir)"
143 + --emacslispdir="${EPREFIX}/${SITELISP}/${PN}"
144 + --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}"
145 + --without-ruby
146 + --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions"
147 + $(use_with emacs)
148 + )
149 + tc-export CC CXX
150 + econf "${myeconfargs[@]}"
151 +}
152 +
153 +src_compile() {
154 + V=1 default
155 + bindings python distutils-r1_src_compile
156 +
157 + if use mutt; then
158 + pushd contrib/notmuch-mutt || die
159 + emake notmuch-mutt.1
160 + popd || die
161 + fi
162 +
163 + if use doc; then
164 + pydocs() {
165 + pushd docs || die
166 + emake html
167 + mv html ../python || die
168 + popd || die
169 + }
170 + LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs
171 + fi
172 +}
173 +
174 +src_test() {
175 + pax-mark -m notmuch
176 + emake download-test-databases
177 + LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" default
178 + pax-mark -ze notmuch
179 +}
180 +
181 +src_install() {
182 + default
183 +
184 + if use emacs; then
185 + elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
186 + fi
187 +
188 + if use nmbug; then
189 + dobin devel/nmbug/nmbug
190 + dobin devel/nmbug/nmbug-status
191 + fi
192 +
193 + if use mutt; then
194 + pushd contrib/notmuch-mutt || die
195 + dobin notmuch-mutt
196 + doman notmuch-mutt.1
197 + insinto /etc/mutt
198 + doins notmuch-mutt.rc
199 + dodoc README-mutt
200 + popd || die
201 + fi
202 +
203 + DOCS="" bindings python distutils-r1_src_install
204 + use doc && bindings python dohtml -r python
205 +}
206 +
207 +pkg_preinst() {
208 + if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then
209 + elog "To enable notmuch support in mutt, add the following line into"
210 + elog "your mutt config file, please:"
211 + elog ""
212 + elog " source /etc/mutt/notmuch-mutt.rc"
213 + fi
214 +}
215 +
216 +pkg_postinst() {
217 + use emacs && elisp-site-regen
218 +}
219 +
220 +pkg_postrm() {
221 + use emacs && elisp-site-regen
222 +}