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