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, 27 Oct 2019 19:12:33
Message-Id: 1572203542.073f70bdf380eacce235a413fe75127033915578.aidecoe@gentoo
1 commit: 073f70bdf380eacce235a413fe75127033915578
2 Author: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 27 19:11:46 2019 +0000
4 Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 27 19:12:22 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=073f70bd
7
8 net-mail/notmuch: Bump version
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.16
11 Signed-off-by: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo.org>
12
13 net-mail/notmuch/Manifest | 1 +
14 net-mail/notmuch/notmuch-0.29.2.ebuild | 232 +++++++++++++++++++++++++++++++++
15 2 files changed, 233 insertions(+)
16
17 diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest
18 index 88efb8a8c36..5fccb1523e7 100644
19 --- a/net-mail/notmuch/Manifest
20 +++ b/net-mail/notmuch/Manifest
21 @@ -1,3 +1,4 @@
22 DIST database-v1.tar.xz 204876 BLAKE2B 846a8d2f17edb61ed1c3d3c655becd1f60b4046772058706f13d516f65421a5105593660f1c556907bb2bb9607a3c2521243d1be07bffb70817ad3b8461680ca SHA512 e2d87373e00b65756d7fea40c54fb236d7a37ce839145c3afd99ab26efdc17796e540c021e2c24e521df2d0a01ccbf918994f87a0d83235ff9b109a51555b3d0
23 DIST notmuch-0.28.4.tar.gz 922364 BLAKE2B f22d52ecc982b086b5d2a67d3b9ae4a379bdcb9e9acf3e77060fd7d97439347e3b4cd767f2c9c3c48657b80f63316f6abc09a653d6791e27b4a8996adccf42a9 SHA512 77d7ad81e1f7dc93ae6392346da434f6dc74c21d19be728c2a6ca283c429f36e7081387d223af58eb5f63f5d2a8ad8367f0103f0bb9d052890c07fe419abbee7
24 DIST notmuch-0.29.1.tar.xz 660352 BLAKE2B d145aba2d1a376e8cbcff3d51f9a7093649912a54273f91cce2a56fb414e222c2bbf0aeb510894278bf7dca8a96412400d55897a4d42281ab9c110d9bc8207a6 SHA512 9b76a7c8c62cb67b64a0008f80a82eeecccd20267ddba67d4d96a768815466c305f154769947bb9526e02c7a1696faaf69e94b90007603b185589be0c7c2a5d8
25 +DIST notmuch-0.29.2.tar.xz 660520 BLAKE2B f87889db5fa1049b2b91a9ea8abe917e5645860a5c163c73a57197ede904aa335c0f3b37cc2a7ff2465c30e94eb25b113bebd074aa9e92c84383457600e1de82 SHA512 0e345c4ecca8410eedb14154bcb3c327353a0984f30b7fd6c526deefcfe17aa74ca8fb4b4d28e93decca8c8914f7d60ca2c9485750001b14d67d7d33d4721bb3
26
27 diff --git a/net-mail/notmuch/notmuch-0.29.2.ebuild b/net-mail/notmuch/notmuch-0.29.2.ebuild
28 new file mode 100644
29 index 00000000000..f96e581b17a
30 --- /dev/null
31 +++ b/net-mail/notmuch/notmuch-0.29.2.ebuild
32 @@ -0,0 +1,232 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +DISTUTILS_OPTIONAL=1
39 +PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
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="https://notmuchmail.org/"
46 +SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.xz
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/5"
53 +KEYWORDS="~alpha ~amd64 ~x86 ~x64-solaris"
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-3.0.3:3.0
65 + >=dev-libs/xapian-1.4.8:=
66 + dev-python/sphinx
67 + sys-apps/texinfo
68 + >=sys-libs/zlib-1.2.5.2
69 + sys-libs/talloc
70 + crypt? ( dev-libs/gmime:3.0[crypt] )
71 + emacs? ( >=virtual/emacs-23 )
72 + python? ( ${PYTHON_DEPS} )
73 + "
74 +DEPEND="${CDEPEND}
75 + virtual/pkgconfig
76 + doc? (
77 + app-doc/doxygen
78 + dev-python/mock[${PYTHON_USEDEP}]
79 + )
80 + test? (
81 + app-misc/dtach
82 + || ( >=app-editors/emacs-23[libxml2] >=app-editors/emacs-vcs-23[libxml2] )
83 + sys-devel/gdb
84 + crypt? ( app-crypt/gnupg dev-libs/openssl )
85 + )
86 + valgrind? ( dev-util/valgrind )
87 + "
88 +RDEPEND="${CDEPEND}
89 + crypt? ( app-crypt/gnupg )
90 + nmbug? ( dev-vcs/git )
91 + mutt? (
92 + dev-perl/File-Which
93 + dev-perl/Mail-Box
94 + dev-perl/MailTools
95 + dev-perl/String-ShellQuote
96 + dev-perl/Term-ReadLine-Gnu
97 + virtual/perl-Digest-SHA
98 + virtual/perl-File-Path
99 + virtual/perl-Getopt-Long
100 + virtual/perl-Pod-Parser
101 + )
102 + "
103 +
104 +DOCS=( AUTHORS NEWS README )
105 +SITEFILE="50${PN}-gentoo.el"
106 +MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib"
107 +PATCHES=(
108 + "${FILESDIR}"/${PV}-0001-Use-loopback-IP-address-rather-than-name.patch
109 +)
110 +
111 +bindings() {
112 + local ret=0
113 +
114 + if use $1; then
115 + pushd bindings/$1 || die
116 + shift
117 + "$@"
118 + ret=$?
119 + popd || die
120 + fi
121 +
122 + return $ret
123 +}
124 +
125 +pkg_pretend() {
126 + if has_version '<net-mail/notmuch-0.18'; then
127 + ewarn
128 + ewarn "There are few not backward compatible changes between"
129 + ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file"
130 + ewarn "(0.18 section) for details before first use!"
131 + ewarn
132 + fi
133 +}
134 +
135 +pkg_setup() {
136 + if use emacs; then
137 + elisp-need-emacs 23 || die "Emacs version too low"
138 + fi
139 +}
140 +
141 +src_unpack() {
142 + unpack "${P}".tar.xz
143 + if use test; then
144 + mkdir -p "${S}"/test/test-databases || die
145 + cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die
146 + fi
147 +}
148 +
149 +src_prepare() {
150 + default
151 +
152 + bindings python distutils-r1_src_prepare
153 + bindings python mv README README-python || die
154 + mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die
155 +
156 + # assure that new Makefile.config will be generated
157 + rm -f Makefile.config || die
158 +
159 + sed -e 's@^install: all install-man install-info$@install: all install-info@' -i Makefile.local
160 +
161 + if use test; then
162 + append-cflags -g
163 + append-cxxflags -g
164 + fi
165 +
166 + if [[ ${CHOST} == *-solaris* ]] ; then
167 + append-ldflags -lnsl -lsocket # non-autoconf configure
168 + fi
169 +}
170 +
171 +src_configure() {
172 + python_setup # for sphinx
173 +
174 + local myeconfargs=(
175 + --bashcompletiondir="$(get_bashcompdir)"
176 + --emacslispdir="${EPREFIX}/${SITELISP}/${PN}"
177 + --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}"
178 + --without-desktop
179 + --without-ruby
180 + --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions"
181 + $(use_with emacs)
182 + $(use_with doc api-docs)
183 + )
184 + tc-export CC CXX
185 + econf "${myeconfargs[@]}"
186 +}
187 +
188 +src_compile() {
189 + python_setup # for sphinx
190 +
191 + V=1 default
192 + bindings python distutils-r1_src_compile
193 +
194 + if use mutt; then
195 + pushd contrib/notmuch-mutt || die
196 + emake notmuch-mutt.1
197 + popd || die
198 + fi
199 +
200 + if use doc; then
201 + pydocs() {
202 + pushd docs || die
203 + emake html
204 + rm -r html/_sources || die
205 + rm html/{objects.inv,.buildinfo} || die
206 + mkdir -p ../html && mv html ../html/python || die
207 + popd || die
208 + }
209 + LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs
210 + fi
211 +}
212 +
213 +src_test() {
214 + pax-mark -m notmuch
215 + LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default
216 + pax-mark -ze notmuch
217 +}
218 +
219 +src_install() {
220 + default
221 +
222 + if use doc; then
223 + doman doc/_build/man/man?/*.?
224 + fi
225 +
226 + if use emacs; then
227 + elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
228 + fi
229 +
230 + if use nmbug; then
231 + dobin devel/nmbug/nmbug
232 + dobin devel/nmbug/notmuch-report
233 + fi
234 +
235 + if use mutt; then
236 + pushd contrib/notmuch-mutt || die
237 + dobin notmuch-mutt
238 + doman notmuch-mutt.1
239 + insinto /etc/mutt
240 + doins notmuch-mutt.rc
241 + dodoc README-mutt
242 + popd || die
243 + fi
244 +
245 + DOCS="" bindings python distutils-r1_src_install
246 + use doc && bindings python dodoc -r html
247 +}
248 +
249 +pkg_preinst() {
250 + if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then
251 + elog "To enable notmuch support in mutt, add the following line into"
252 + elog "your mutt config file, please:"
253 + elog ""
254 + elog " source /etc/mutt/notmuch-mutt.rc"
255 + fi
256 +}
257 +
258 +pkg_postinst() {
259 + use emacs && elisp-site-regen
260 +}
261 +
262 +pkg_postrm() {
263 + use emacs && elisp-site-regen
264 +}