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 Aug 2017 22:42:25
Message-Id: 1503873116.40e420de0e057ccf087ae3e5e7079c91d326e95d.aidecoe@gentoo
1 commit: 40e420de0e057ccf087ae3e5e7079c91d326e95d
2 Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 27 22:31:56 2017 +0000
4 Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 27 22:31:56 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40e420de
7
8 net-mail/notmuch: Bump version
9
10 Package-Manager: Portage-2.3.7, Repoman-2.3.3
11
12 net-mail/notmuch/Manifest | 1 +
13 net-mail/notmuch/notmuch-0.25.ebuild | 206 +++++++++++++++++++++++++++++++++++
14 2 files changed, 207 insertions(+)
15
16 diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest
17 index 9e2791f4b31..97358714fc1 100644
18 --- a/net-mail/notmuch/Manifest
19 +++ b/net-mail/notmuch/Manifest
20 @@ -2,3 +2,4 @@ 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.1.tar.gz 709190 SHA256 fa117de2c6096dd896a333b9c770572a939e04a02abe6745b6b07f5363063ca3 SHA512 e2014380de68de3e1a3fd3058a441c6771a92bfffe07c0bd2b374802dd8b2539eddbbb91074738f58f48452a936f2f9427fadca825a165c61a27fe0c3e1fe7fc WHIRLPOOL 75904127fb33ce011aaa22a1c86ac58375c1f8881a1cf384254d5adb7c13316c28436d622c760d8dec150b7442ded475b6f80c5991c5654ca418cd875e9a743b
23 DIST notmuch-0.24.2.tar.gz 709272 SHA256 aa76a96684d5c5918d940182b6fe40f7d6745f144476fdda57388479d586cc51 SHA512 fcdc4ad5a65c57dd3077d93aeb384378f8dee105362fa8c2755daf14bbeb5376f8d1580fd79c8bd8e8d2d88cd44846ca9972b2f942133a447eb99d08ef9056dc WHIRLPOOL 679094ca2bd57a3b2f0f4ae5f2022c8bd1922e55fb095780b67de13c75758b4daa5892843e187405f294ed406ce47922bd6b854759984c5518bad8dc058236a6
24 +DIST notmuch-0.25.tar.gz 882093 SHA256 65d28d1f783d02629039f7d15d9a2bada147a7d3809f86fe8d13861b0f6ae60b SHA512 5f4961818c8c0350e3fbbedd86f407a55fecf211971003a770d99ea2db89bb6b98c2294e114d6abff4d40985f506b7f4b52736a7ee5c78390eb4f2363a65c6f5 WHIRLPOOL 94ec2cb30c92b8c88da9b66f2a8afa7c01977671cdc018113a1716414a8555a9bec7d77b933df6dd4c3c339e3a2dfd46319f86725f1b84b608e7066c60b91f1c
25
26 diff --git a/net-mail/notmuch/notmuch-0.25.ebuild b/net-mail/notmuch/notmuch-0.25.ebuild
27 new file mode 100644
28 index 00000000000..a40a43dd00f
29 --- /dev/null
30 +++ b/net-mail/notmuch/notmuch-0.25.ebuild
31 @@ -0,0 +1,206 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +DISTUTILS_OPTIONAL=1
38 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
39 +
40 +inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \
41 + distutils-r1 toolchain-funcs
42 +
43 +DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging"
44 +HOMEPAGE="http://notmuchmail.org/"
45 +SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz
46 + test? ( ${HOMEPAGE%/}/releases/test-databases/database-v1.tar.xz )"
47 +
48 +LICENSE="GPL-3"
49 +# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is
50 +# meant to be binary backward compatible.
51 +SLOT="0/5"
52 +KEYWORDS="~alpha ~amd64 ~x86"
53 +REQUIRED_USE="
54 + nmbug? ( python )
55 + python? ( ${PYTHON_REQUIRED_USE} )
56 + test? ( crypt emacs python valgrind )
57 + "
58 +IUSE="crypt doc emacs mutt nmbug python test valgrind"
59 +
60 +CDEPEND="
61 + !!<app-shells/bash-completion-1.9
62 + >=dev-libs/glib-2.22:2
63 + >=dev-libs/gmime-2.6.20-r2:2.6
64 + >=dev-libs/xapian-1.2.7-r2:=
65 + dev-python/sphinx[${PYTHON_USEDEP}]
66 + >=sys-libs/zlib-1.2.5.2
67 + sys-libs/talloc
68 + crypt? ( >=dev-libs/gmime-2.6.20-r2:2.6[smime] )
69 + emacs? ( >=virtual/emacs-23 )
70 + python? ( ${PYTHON_DEPS} )
71 + "
72 +DEPEND="${CDEPEND}
73 + virtual/pkgconfig
74 + doc? ( app-doc/doxygen )
75 + test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2]
76 + >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb
77 + crypt? ( app-crypt/gnupg dev-libs/openssl ) )
78 + valgrind? ( dev-util/valgrind )
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 +DOCS=( AUTHORS NEWS README )
90 +SITEFILE="50${PN}-gentoo.el"
91 +MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib"
92 +
93 +bindings() {
94 + local ret=0
95 +
96 + if use $1; then
97 + pushd bindings/$1 || die
98 + shift
99 + "$@"
100 + ret=$?
101 + popd || die
102 + fi
103 +
104 + return $ret
105 +}
106 +
107 +pkg_pretend() {
108 + if has_version '<net-mail/notmuch-0.18'; then
109 + ewarn
110 + ewarn "There are few not backward compatible changes between"
111 + ewarn "<notmuch-0.18 and >=notmuch-0.18. See NEWS file"
112 + ewarn "(0.18 section) for details before first use!"
113 + ewarn
114 + fi
115 +}
116 +
117 +pkg_setup() {
118 + if use emacs; then
119 + elisp-need-emacs 23 || die "Emacs version too low"
120 + fi
121 +}
122 +
123 +src_unpack() {
124 + unpack "${P}".tar.gz
125 + if use test; then
126 + mkdir -p "${S}"/test/test-databases || die
127 + cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die
128 + fi
129 +}
130 +
131 +src_prepare() {
132 + default
133 +
134 + bindings python distutils-r1_src_prepare
135 + bindings python mv README README-python || die
136 + mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die
137 +
138 + # assure that new Makefile.config will be generated
139 + rm -f Makefile.config || die
140 +
141 + if use test; then
142 + append-cflags -g
143 + append-cxxflags -g
144 + fi
145 +}
146 +
147 +src_configure() {
148 + local myeconfargs=(
149 + --bashcompletiondir="$(get_bashcompdir)"
150 + --emacslispdir="${EPREFIX}/${SITELISP}/${PN}"
151 + --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}"
152 + --without-desktop
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 + if has_version '<dev-libs/xapian-1.4'; then
230 + elog "Regular expression searches supported for from: and subject:"
231 + elog "require >=dev-libs/xapian-1.4."
232 + fi
233 +}
234 +
235 +pkg_postrm() {
236 + use emacs && elisp-site-regen
237 +}