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, 06 Nov 2017 21:52:22
Message-Id: 1510005118.3cccb3a52e307cee68eeb2966132b6393f71bd2c.aidecoe@gentoo
1 commit: 3cccb3a52e307cee68eeb2966132b6393f71bd2c
2 Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 6 21:51:58 2017 +0000
4 Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 6 21:51:58 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cccb3a5
7
8 net-mail/notmuch: Bump version
9
10 Package-Manager: Portage-2.3.11, Repoman-2.3.3
11
12 net-mail/notmuch/Manifest | 1 +
13 net-mail/notmuch/notmuch-0.25.2.ebuild | 208 +++++++++++++++++++++++++++++++++
14 2 files changed, 209 insertions(+)
15
16 diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest
17 index bc3ae38b179..a3346fb4486 100644
18 --- a/net-mail/notmuch/Manifest
19 +++ b/net-mail/notmuch/Manifest
20 @@ -2,4 +2,5 @@ DIST database-v1.tar.xz 204876 SHA256 4299e051b10e1fa7b33ea2862790a09ebfe9685968
21 DIST notmuch-0.23.7.tar.gz 692230 SHA256 f11bb10d71945f6c3f16d23117afc70810aa485878e66bb4bf43cc3f08038913 SHA512 e71da3bd6ce1b344aae79b277b695a4668d4fe1b8838618d6970a0b27df9867bac66a3240473ef31fc30ed8af2b0a558203ed5ffb34da873c991b1ecc6c08522 WHIRLPOOL 0b14cd6fb2b584b27b7893bb9c45724725069a6bc980cfe52f80ec3f6ec95c3a8f631975875f44b46b2799d5a0c31a62ff845b2400b7389cd8aa6f55361a0851
22 DIST notmuch-0.24.2.tar.gz 709272 SHA256 aa76a96684d5c5918d940182b6fe40f7d6745f144476fdda57388479d586cc51 SHA512 fcdc4ad5a65c57dd3077d93aeb384378f8dee105362fa8c2755daf14bbeb5376f8d1580fd79c8bd8e8d2d88cd44846ca9972b2f942133a447eb99d08ef9056dc WHIRLPOOL 679094ca2bd57a3b2f0f4ae5f2022c8bd1922e55fb095780b67de13c75758b4daa5892843e187405f294ed406ce47922bd6b854759984c5518bad8dc058236a6
23 DIST notmuch-0.25.1.tar.gz 882141 SHA256 b4bf09ec9b7b64180704faa26d66cad5f911a5a00ef812da34cb02c3f8872831 SHA512 989acc5eda7d2f9512741c8ae850e34c6fbbdd5fa5fa23f25a6096250d414919007c5cfda68d6f48606c0a024692e082a28cb358e6d3fc2afc0502b5bcbf5f54 WHIRLPOOL 391d0bc17e55967ed6e4c2d9a7876eea93e992b190e083343e488c153697053284cee8d01687c0a23e1063de29d933f358acb6bc723c3307eeb01706e920f79b
24 +DIST notmuch-0.25.2.tar.gz 882672 SHA256 e4b6ba9d4016b10249a4acc24e063d23e0c52ed6f8c1cbe4f98e7f9ef4da262a SHA512 5ee7bded69cbcc980e23f1e1562bf0cc9294c20bddcc3e442030c4f29373ecbbaef79144ad38470bfc97dac87f8dfb3bc7aee2d7eb974f6998f933369aa46006 WHIRLPOOL 4ceda3a3424f1d3dcf298883fab2f6b5449fbc75a81dcff8d267c6d0ceddf048c7e2568f922ff70f6786a86e50c3dc531f46baaf71adc120abbc9c39f7b20a39
25 DIST notmuch-0.25.tar.gz 882093 SHA256 65d28d1f783d02629039f7d15d9a2bada147a7d3809f86fe8d13861b0f6ae60b SHA512 5f4961818c8c0350e3fbbedd86f407a55fecf211971003a770d99ea2db89bb6b98c2294e114d6abff4d40985f506b7f4b52736a7ee5c78390eb4f2363a65c6f5 WHIRLPOOL 94ec2cb30c92b8c88da9b66f2a8afa7c01977671cdc018113a1716414a8555a9bec7d77b933df6dd4c3c339e3a2dfd46319f86725f1b84b608e7066c60b91f1c
26
27 diff --git a/net-mail/notmuch/notmuch-0.25.2.ebuild b/net-mail/notmuch/notmuch-0.25.2.ebuild
28 new file mode 100644
29 index 00000000000..5c7f9d0860e
30 --- /dev/null
31 +++ b/net-mail/notmuch/notmuch-0.25.2.ebuild
32 @@ -0,0 +1,208 @@
33 +# Copyright 1999-2017 Gentoo Foundation
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_4,3_5,3_6} )
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/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-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 + # assure that new Makefile.config will be generated
140 + rm -f Makefile.config || die
141 +
142 + if use test; then
143 + append-cflags -g
144 + append-cxxflags -g
145 + fi
146 +
147 + [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
148 +}
149 +
150 +src_configure() {
151 + local myeconfargs=(
152 + --bashcompletiondir="$(get_bashcompdir)"
153 + --emacslispdir="${EPREFIX}/${SITELISP}/${PN}"
154 + --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}"
155 + --without-desktop
156 + --without-ruby
157 + --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions"
158 + $(use_with emacs)
159 + $(use_with doc api-docs)
160 + )
161 + tc-export CC CXX
162 + econf "${myeconfargs[@]}"
163 +}
164 +
165 +src_compile() {
166 + V=1 default
167 + bindings python distutils-r1_src_compile
168 +
169 + if use mutt; then
170 + pushd contrib/notmuch-mutt || die
171 + emake notmuch-mutt.1
172 + popd || die
173 + fi
174 +
175 + if use doc; then
176 + pydocs() {
177 + pushd docs || die
178 + emake html
179 + rm -r html/_sources || die
180 + rm html/{objects.inv,.buildinfo} || die
181 + mkdir -p ../html && mv html ../html/python || die
182 + popd || die
183 + }
184 + LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs
185 + fi
186 +}
187 +
188 +src_test() {
189 + pax-mark -m notmuch
190 + LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default
191 + pax-mark -ze notmuch
192 +}
193 +
194 +src_install() {
195 + default
196 +
197 + if use emacs; then
198 + elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
199 + fi
200 +
201 + if use nmbug; then
202 + dobin devel/nmbug/nmbug
203 + dobin devel/nmbug/notmuch-report
204 + fi
205 +
206 + if use mutt; then
207 + pushd contrib/notmuch-mutt || die
208 + dobin notmuch-mutt
209 + doman notmuch-mutt.1
210 + insinto /etc/mutt
211 + doins notmuch-mutt.rc
212 + dodoc README-mutt
213 + popd || die
214 + fi
215 +
216 + DOCS="" bindings python distutils-r1_src_install
217 + use doc && bindings python dodoc -r html
218 +}
219 +
220 +pkg_preinst() {
221 + if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then
222 + elog "To enable notmuch support in mutt, add the following line into"
223 + elog "your mutt config file, please:"
224 + elog ""
225 + elog " source /etc/mutt/notmuch-mutt.rc"
226 + fi
227 +}
228 +
229 +pkg_postinst() {
230 + use emacs && elisp-site-regen
231 +
232 + if has_version '<dev-libs/xapian-1.4'; then
233 + elog "Regular expression searches supported for from: and subject:"
234 + elog "require >=dev-libs/xapian-1.4."
235 + fi
236 +}
237 +
238 +pkg_postrm() {
239 + use emacs && elisp-site-regen
240 +}