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, 01 Apr 2017 19:46:45
Message-Id: 1491075992.e8f699a64684549b159a4c9f0e99250110bdca16.aidecoe@gentoo
1 commit: e8f699a64684549b159a4c9f0e99250110bdca16
2 Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 1 19:46:19 2017 +0000
4 Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 1 19:46:32 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8f699a6
7
8 net-mail/notmuch: Bump version to 0.24.1
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 net-mail/notmuch/Manifest | 1 +
13 net-mail/notmuch/notmuch-0.24.1.ebuild | 201 +++++++++++++++++++++++++++++++++
14 2 files changed, 202 insertions(+)
15
16 diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest
17 index 89bd5e96083..1f186eafd11 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.21.tar.gz 663600 SHA256 d06f8ffed168c7d53ffc449dd611038b5fa90f7ee22d58f3bec3b379571e25b3 SHA512 2485c422433be21f6bf89aaf997e1468c31a52029ddc8336e78a632b292c659569448c29813ea550ed27fb6815558522a451a7fa10e8fb3f87d9538b4dd7b01a WHIRLPOOL 303c6427822272834e3d95ac94760f0fbaf3f2947a984a6770a9b2918fe0fbad289ef95fb9a8300cb6db08ab3ef0ff56810b3a60879c6a2a3eac524689f0a2f0
23 DIST notmuch-0.23.7.tar.gz 692230 SHA256 f11bb10d71945f6c3f16d23117afc70810aa485878e66bb4bf43cc3f08038913 SHA512 e71da3bd6ce1b344aae79b277b695a4668d4fe1b8838618d6970a0b27df9867bac66a3240473ef31fc30ed8af2b0a558203ed5ffb34da873c991b1ecc6c08522 WHIRLPOOL 0b14cd6fb2b584b27b7893bb9c45724725069a6bc980cfe52f80ec3f6ec95c3a8f631975875f44b46b2799d5a0c31a62ff845b2400b7389cd8aa6f55361a0851
24 +DIST notmuch-0.24.1.tar.gz 709190 SHA256 fa117de2c6096dd896a333b9c770572a939e04a02abe6745b6b07f5363063ca3 SHA512 e2014380de68de3e1a3fd3058a441c6771a92bfffe07c0bd2b374802dd8b2539eddbbb91074738f58f48452a936f2f9427fadca825a165c61a27fe0c3e1fe7fc WHIRLPOOL 75904127fb33ce011aaa22a1c86ac58375c1f8881a1cf384254d5adb7c13316c28436d622c760d8dec150b7442ded475b6f80c5991c5654ca418cd875e9a743b
25 DIST notmuch-0.24.tar.gz 708243 SHA256 f7e44cf67630669d3537c4febd7685ca27d62a134e42f9a5db90d5a6ed4c75fc SHA512 f966b4faf96b165cc04be15a90681fabfe7ce66a0a9255183f9e4542556836adb7acfe8c02033db3ad8af6cb8962d1a64da8cdd03a0485b104a7b40b88b598d5 WHIRLPOOL a64643461bb3f4e97459b76c43700cce5f69d4e9df99c9eadd424f9d8e1fe2f3b8d33cfd19cb2945050bc5018d2a2dabe484723d68fb247084e729f0b778908b
26
27 diff --git a/net-mail/notmuch/notmuch-0.24.1.ebuild b/net-mail/notmuch/notmuch-0.24.1.ebuild
28 new file mode 100644
29 index 00000000000..de47cbb850d
30 --- /dev/null
31 +++ b/net-mail/notmuch/notmuch-0.24.1.ebuild
32 @@ -0,0 +1,201 @@
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/4"
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 +
231 +pkg_postrm() {
232 + use emacs && elisp-site-regen
233 +}