1 |
commit: 512d556664ea8d0caa7728c16e719b112e6b570b |
2 |
Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 2 21:13:11 2018 +0000 |
4 |
Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 2 21:25:20 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=512d5566 |
7 |
|
8 |
net-mail/notmuch: Bump version |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
net-mail/notmuch/Manifest | 1 + |
13 |
net-mail/notmuch/notmuch-0.26.1.ebuild | 208 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 209 insertions(+) |
15 |
|
16 |
diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest |
17 |
index 3a40e4fcdc0..b4ff35c43f8 100644 |
18 |
--- a/net-mail/notmuch/Manifest |
19 |
+++ b/net-mail/notmuch/Manifest |
20 |
@@ -5,3 +5,4 @@ DIST notmuch-0.25.1.tar.gz 882141 BLAKE2B dfc6c9e62012280e1c72378b39d6b8af3cefa7 |
21 |
DIST notmuch-0.25.2.tar.gz 882672 BLAKE2B 8bd90b87cf60a1eac8c331c4d67cfc511db91b5009c051fdf7d2612560ffaf11f1c51ca171f12f1cd9145ffa25ef402a5b2c72ad8efc4c22d68107ad31bb7d16 SHA512 5ee7bded69cbcc980e23f1e1562bf0cc9294c20bddcc3e442030c4f29373ecbbaef79144ad38470bfc97dac87f8dfb3bc7aee2d7eb974f6998f933369aa46006 |
22 |
DIST notmuch-0.25.3.tar.gz 883151 BLAKE2B 511f93c310e8b82f1b629735cbe626ab1ba8eabf23245ba4aa4c936d4c5d868d9e6d5b0d626f16ce6087245a293cf1acd8bb2e2dd0639729af4b92d558c78051 SHA512 1c0fcfdeb7a7eddcd10a8175676679ef6985407732d5bcc15edd327d9985017696cef3287c0398c628a604ae3fbab5d222d71537e37265cf6a594b4914e4599a |
23 |
DIST notmuch-0.25.tar.gz 882093 BLAKE2B ea0f5568ec0bf6a1d2c177468f4ec25fabfd416162c01a0d861e78164f15f2cc0176e1a012250a2a6bb45a6c7c2f6ffa651ad15776d44fed8ec191026b0f04c7 SHA512 5f4961818c8c0350e3fbbedd86f407a55fecf211971003a770d99ea2db89bb6b98c2294e114d6abff4d40985f506b7f4b52736a7ee5c78390eb4f2363a65c6f5 |
24 |
+DIST notmuch-0.26.1.tar.gz 906523 BLAKE2B da0b06361d586d84bea5c6e28adf7850dcb119e9f70ae67e06ff1438b9d20f4b04707d3e6ee6e755d569d15b8a720506b4c242c0c84258e8f5c8996caa62fc47 SHA512 f0d95a0f03535495037c73ab18d1251ece505284736efa5a535fe9bc8aea33954b5c87e5dcdfd30670c8df53178294be520a63e5b19beac7d90f166e616d19dd |
25 |
|
26 |
diff --git a/net-mail/notmuch/notmuch-0.26.1.ebuild b/net-mail/notmuch/notmuch-0.26.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..bcf492e422d |
29 |
--- /dev/null |
30 |
+++ b/net-mail/notmuch/notmuch-0.26.1.ebuild |
31 |
@@ -0,0 +1,208 @@ |
32 |
+# Copyright 1999-2018 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="https://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 ~x64-solaris" |
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.21: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.21: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 |
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket |
147 |
+} |
148 |
+ |
149 |
+src_configure() { |
150 |
+ local myeconfargs=( |
151 |
+ --bashcompletiondir="$(get_bashcompdir)" |
152 |
+ --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" |
153 |
+ --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" |
154 |
+ --without-desktop |
155 |
+ --without-ruby |
156 |
+ --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" |
157 |
+ $(use_with emacs) |
158 |
+ $(use_with doc api-docs) |
159 |
+ ) |
160 |
+ tc-export CC CXX |
161 |
+ econf "${myeconfargs[@]}" |
162 |
+} |
163 |
+ |
164 |
+src_compile() { |
165 |
+ V=1 default |
166 |
+ bindings python distutils-r1_src_compile |
167 |
+ |
168 |
+ if use mutt; then |
169 |
+ pushd contrib/notmuch-mutt || die |
170 |
+ emake notmuch-mutt.1 |
171 |
+ popd || die |
172 |
+ fi |
173 |
+ |
174 |
+ if use doc; then |
175 |
+ pydocs() { |
176 |
+ pushd docs || die |
177 |
+ emake html |
178 |
+ rm -r html/_sources || die |
179 |
+ rm html/{objects.inv,.buildinfo} || die |
180 |
+ mkdir -p ../html && mv html ../html/python || die |
181 |
+ popd || die |
182 |
+ } |
183 |
+ LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs |
184 |
+ fi |
185 |
+} |
186 |
+ |
187 |
+src_test() { |
188 |
+ pax-mark -m notmuch |
189 |
+ LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default |
190 |
+ pax-mark -ze notmuch |
191 |
+} |
192 |
+ |
193 |
+src_install() { |
194 |
+ default |
195 |
+ |
196 |
+ if use emacs; then |
197 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
198 |
+ fi |
199 |
+ |
200 |
+ if use nmbug; then |
201 |
+ dobin devel/nmbug/nmbug |
202 |
+ dobin devel/nmbug/notmuch-report |
203 |
+ fi |
204 |
+ |
205 |
+ if use mutt; then |
206 |
+ pushd contrib/notmuch-mutt || die |
207 |
+ dobin notmuch-mutt |
208 |
+ doman notmuch-mutt.1 |
209 |
+ insinto /etc/mutt |
210 |
+ doins notmuch-mutt.rc |
211 |
+ dodoc README-mutt |
212 |
+ popd || die |
213 |
+ fi |
214 |
+ |
215 |
+ DOCS="" bindings python distutils-r1_src_install |
216 |
+ use doc && bindings python dodoc -r html |
217 |
+} |
218 |
+ |
219 |
+pkg_preinst() { |
220 |
+ if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then |
221 |
+ elog "To enable notmuch support in mutt, add the following line into" |
222 |
+ elog "your mutt config file, please:" |
223 |
+ elog "" |
224 |
+ elog " source /etc/mutt/notmuch-mutt.rc" |
225 |
+ fi |
226 |
+} |
227 |
+ |
228 |
+pkg_postinst() { |
229 |
+ use emacs && elisp-site-regen |
230 |
+ |
231 |
+ if has_version '<dev-libs/xapian-1.4'; then |
232 |
+ elog "Regular expression searches supported for from: and subject:" |
233 |
+ elog "require >=dev-libs/xapian-1.4." |
234 |
+ fi |
235 |
+} |
236 |
+ |
237 |
+pkg_postrm() { |
238 |
+ use emacs && elisp-site-regen |
239 |
+} |