1 |
commit: 57995b9b5da2f30571e8ef0221616f8f5018d624 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 26 08:09:25 2021 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 26 08:09:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57995b9b |
7 |
|
8 |
mail-client/neomutt: security cleanup |
9 |
|
10 |
Bug: https://bugs.gentoo.org/788391 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
mail-client/neomutt/Manifest | 1 - |
15 |
mail-client/neomutt/neomutt-20201127-r1.ebuild | 152 ------------------------- |
16 |
mail-client/neomutt/neomutt-20201127.ebuild | 152 ------------------------- |
17 |
mail-client/neomutt/neomutt-20210205.ebuild | 152 ------------------------- |
18 |
4 files changed, 457 deletions(-) |
19 |
|
20 |
diff --git a/mail-client/neomutt/Manifest b/mail-client/neomutt/Manifest |
21 |
index b99eaaa1de5..222c371feb0 100644 |
22 |
--- a/mail-client/neomutt/Manifest |
23 |
+++ b/mail-client/neomutt/Manifest |
24 |
@@ -1,3 +1,2 @@ |
25 |
-DIST neomutt-20201127.tar.gz 3456248 BLAKE2B 49d12285e4adfb15cd70f3c6cb06d0d260ccd3f3817ae6902ac5a58105c1fc36f2d6ead3927911b970bf2e72dcd8220340c900c20e011e09ac2159e7c4123987 SHA512 01e45aa00794cfb1c74a45a7f144962c8ab6dee03b0e5ce39a24d0c50817b909cac440a072c5d8b21ee7656c37b77bba4ba818de73710ccc3b0f76fd3ddd71cf |
26 |
DIST neomutt-20210205.tar.gz 3476980 BLAKE2B 2b8f07a957d668f0903ae3f48d72e0b00414b9ed0411723bc725cd2369ed16c31e461799a0161f3b6caecb8b3a182a0ad9ca7bbb5431ed9ff67cae5dc87b11e5 SHA512 4e9faaa989eb17d1f65e835d3ad37bbda3307f9a939f351776d4cb4677d856fa998ba0eff04bf0cf344485977077695e07c55e79e0800888f646c46fbfac8554 |
27 |
DIST neomutt-test-files-8629adab700a75c54e8e28bf05ad092503a98f75.tar.gz 3673 BLAKE2B 50354f19aedc5fc07d59ecb5b38fa65de16119bc0929f47014bd35dab4d3a4e5953c8b35670f3440003cf0cbccc2d0d2b3a869dc929cdc3cd60b02790270fb54 SHA512 3d4962210bc558234d818801dcaa7851a0aef011c96d91c054af535186ffda42059fc61fb148c48e1b076999fe3159b31589a69a29ed1897f8928f52fcc157d3 |
28 |
|
29 |
diff --git a/mail-client/neomutt/neomutt-20201127-r1.ebuild b/mail-client/neomutt/neomutt-20201127-r1.ebuild |
30 |
deleted file mode 100644 |
31 |
index 7bb8a219d5f..00000000000 |
32 |
--- a/mail-client/neomutt/neomutt-20201127-r1.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,152 +0,0 @@ |
35 |
-# Copyright 1999-2021 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=7 |
39 |
- |
40 |
-if [[ ${PV} =~ 99999999$ ]]; then |
41 |
- inherit git-r3 |
42 |
- EGIT_REPO_URI="https://github.com/neomutt/neomutt.git" |
43 |
-else |
44 |
- SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
- KEYWORDS="~amd64 ~ppc64 ~s390 ~x86" |
46 |
-fi |
47 |
- |
48 |
-TEST_FILES_COMMIT=8629adab700a75c54e8e28bf05ad092503a98f75 |
49 |
-SRC_URI+=" test? ( https://github.com/${PN}/neomutt-test-files/archive/${TEST_FILES_COMMIT}.tar.gz -> neomutt-test-files-${TEST_FILES_COMMIT}.tar.gz )" |
50 |
- |
51 |
-DESCRIPTION="A small but very powerful text-based mail client" |
52 |
-HOMEPAGE="https://neomutt.org/" |
53 |
- |
54 |
-LICENSE="GPL-2" |
55 |
-SLOT="0" |
56 |
-IUSE="autocrypt berkdb doc gdbm gnutls gpgme idn kerberos kyotocabinet |
57 |
- lmdb nls notmuch pgp-classic qdbm sasl selinux slang smime-classic |
58 |
- ssl tokyocabinet test" |
59 |
-REQUIRED_USE=" |
60 |
- autocrypt? ( gpgme )" |
61 |
- |
62 |
-CDEPEND=" |
63 |
- app-misc/mime-types |
64 |
- berkdb? ( |
65 |
- || ( |
66 |
- sys-libs/db:6.2 |
67 |
- sys-libs/db:5.3 |
68 |
- sys-libs/db:4.8 |
69 |
- ) |
70 |
- <sys-libs/db-6.3:= |
71 |
- ) |
72 |
- gdbm? ( sys-libs/gdbm:= ) |
73 |
- kyotocabinet? ( dev-db/kyotocabinet ) |
74 |
- lmdb? ( dev-db/lmdb:= ) |
75 |
- nls? ( virtual/libintl ) |
76 |
- qdbm? ( dev-db/qdbm ) |
77 |
- tokyocabinet? ( dev-db/tokyocabinet ) |
78 |
- gnutls? ( >=net-libs/gnutls-1.0.17:= ) |
79 |
- gpgme? ( >=app-crypt/gpgme-1.13.1:= ) |
80 |
- autocrypt? ( >=dev-db/sqlite-3 ) |
81 |
- idn? ( net-dns/libidn:= ) |
82 |
- kerberos? ( virtual/krb5 ) |
83 |
- notmuch? ( net-mail/notmuch:= ) |
84 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
85 |
- !slang? ( sys-libs/ncurses:0= ) |
86 |
- slang? ( sys-libs/slang ) |
87 |
- ssl? ( >=dev-libs/openssl-1.0.2u:0= ) |
88 |
- " |
89 |
-DEPEND="${CDEPEND} |
90 |
- dev-lang/tcl:= |
91 |
- net-mail/mailbase |
92 |
- doc? ( |
93 |
- dev-libs/libxml2 |
94 |
- dev-libs/libxslt |
95 |
- app-text/docbook-xsl-stylesheets |
96 |
- || ( |
97 |
- www-client/lynx |
98 |
- www-client/w3m |
99 |
- www-client/elinks |
100 |
- ) |
101 |
- ) |
102 |
-" |
103 |
-RDEPEND="${CDEPEND} |
104 |
- selinux? ( sec-policy/selinux-mutt ) |
105 |
-" |
106 |
- |
107 |
-RESTRICT="!test? ( test )" |
108 |
- |
109 |
-src_configure() { |
110 |
- local myconf=( |
111 |
- "$(usex doc --full-doc --disable-doc)" |
112 |
- "$(use_enable nls)" |
113 |
- "$(use_enable notmuch)" |
114 |
- |
115 |
- "$(use_enable autocrypt)" |
116 |
- "$(use_enable gpgme)" |
117 |
- "$(use_enable pgp-classic pgp)" |
118 |
- "$(use_enable smime-classic smime)" |
119 |
- |
120 |
- # Database backends. |
121 |
- "$(use_enable berkdb bdb)" |
122 |
- "$(use_enable gdbm)" |
123 |
- "$(use_enable kyotocabinet)" |
124 |
- "$(use_enable qdbm)" |
125 |
- "$(use_enable tokyocabinet)" |
126 |
- |
127 |
- "$(use_enable idn)" |
128 |
- "$(use_enable kerberos gss)" |
129 |
- "$(use_enable lmdb)" |
130 |
- "$(use_enable sasl)" |
131 |
- "--with-ui=$(usex slang slang ncurses)" |
132 |
- "--sysconfdir=${EPREFIX}/etc/${PN}" |
133 |
- "$(use_enable ssl)" |
134 |
- "$(use_enable gnutls)" |
135 |
- |
136 |
- "$(usex test --testing --disable-testing)" |
137 |
- ) |
138 |
- |
139 |
- econf CCACHE=none "${myconf[@]}" |
140 |
-} |
141 |
- |
142 |
-src_test() { |
143 |
- local test_dir="$(readlink --canonicalize ${S}/../neomutt-test-files-${TEST_FILES_COMMIT})" |
144 |
- pushd ${test_dir} || die "Could not cd into test_dir" |
145 |
- NEOMUTT_TEST_DIR="${test_dir}" ./setup.sh \ |
146 |
- || die "Failed to run the setup.sh script" |
147 |
- popd || die "Could not cd back" |
148 |
- NEOMUTT_TEST_DIR="${test_dir}" emake test |
149 |
-} |
150 |
- |
151 |
-src_install() { |
152 |
- emake DESTDIR="${D}" install |
153 |
- |
154 |
- # A man-page is always handy, so fake one - here neomuttrc.5 (neomutt.1 |
155 |
- # already exists) |
156 |
- if use !doc; then |
157 |
- sed -n \ |
158 |
- -e '/^\(CC_FOR_BUILD\|CFLAGS_FOR_BUILD\)\s*=/p' \ |
159 |
- -e '/^\(EXTRA_CFLAGS_FOR_BUILD\|LDFLAGS_FOR_BUILD\)\s*=/p' \ |
160 |
- -e '/^\(EXEEXT\|SRCDIR\)\s*=/p' \ |
161 |
- Makefile > docs/Makefile.fakedoc || die |
162 |
- sed -n \ |
163 |
- -e '/^MAKEDOC_CPP\s*=/,/^\s*$/p' \ |
164 |
- -e '/^docs\/\(makedoc$(EXEEXT)\|neomutt\.1\|neomuttrc\.5\)\s*:/,/^\s*$/p' \ |
165 |
- docs/Makefile.autosetup >> docs/Makefile.fakedoc || die |
166 |
- emake -f docs/Makefile.fakedoc docs/neomutt.1 |
167 |
- emake -f docs/Makefile.fakedoc docs/neomuttrc.5 |
168 |
- doman docs/neomutt.1 docs/neomuttrc.5 |
169 |
- fi |
170 |
- |
171 |
- dodoc LICENSE* ChangeLog* README* |
172 |
-} |
173 |
- |
174 |
-pkg_postinst() { |
175 |
- if use gpgme && ( use pgp-classic || use smime-classic ); then |
176 |
- ewarn " Note that gpgme (old gpg) includes both pgp and smime" |
177 |
- ewarn " support. You can probably remove pgp-classic (old crypt)" |
178 |
- ewarn " and smime-classic (old smime) from your USE-flags and" |
179 |
- ewarn " only enable gpgme." |
180 |
- fi |
181 |
- |
182 |
- if use autocrypt && ! use idn; then |
183 |
- ewarn " It is highly recommended that NeoMutt be also configured" |
184 |
- ewarn " with idn when autocrypt is enabled." |
185 |
- fi |
186 |
-} |
187 |
|
188 |
diff --git a/mail-client/neomutt/neomutt-20201127.ebuild b/mail-client/neomutt/neomutt-20201127.ebuild |
189 |
deleted file mode 100644 |
190 |
index 4e1643d3b1f..00000000000 |
191 |
--- a/mail-client/neomutt/neomutt-20201127.ebuild |
192 |
+++ /dev/null |
193 |
@@ -1,152 +0,0 @@ |
194 |
-# Copyright 1999-2021 Gentoo Authors |
195 |
-# Distributed under the terms of the GNU General Public License v2 |
196 |
- |
197 |
-EAPI=7 |
198 |
- |
199 |
-if [[ ${PV} =~ 99999999$ ]]; then |
200 |
- inherit git-r3 |
201 |
- EGIT_REPO_URI="https://github.com/neomutt/neomutt.git" |
202 |
-else |
203 |
- SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
204 |
- KEYWORDS="amd64 ~ppc64 x86" |
205 |
-fi |
206 |
- |
207 |
-TEST_FILES_COMMIT=8629adab700a75c54e8e28bf05ad092503a98f75 |
208 |
-SRC_URI+=" test? ( https://github.com/${PN}/neomutt-test-files/archive/${TEST_FILES_COMMIT}.tar.gz -> neomutt-test-files-${TEST_FILES_COMMIT}.tar.gz )" |
209 |
- |
210 |
-DESCRIPTION="A small but very powerful text-based mail client" |
211 |
-HOMEPAGE="https://neomutt.org/" |
212 |
- |
213 |
-LICENSE="GPL-2" |
214 |
-SLOT="0" |
215 |
-IUSE="autocrypt berkdb doc gdbm gnutls gpgme idn kerberos kyotocabinet |
216 |
- lmdb nls notmuch pgp-classic qdbm sasl selinux slang smime-classic |
217 |
- ssl tokyocabinet test" |
218 |
-REQUIRED_USE=" |
219 |
- autocrypt? ( gpgme )" |
220 |
- |
221 |
-CDEPEND=" |
222 |
- app-misc/mime-types |
223 |
- berkdb? ( |
224 |
- || ( |
225 |
- sys-libs/db:6.2 |
226 |
- sys-libs/db:5.3 |
227 |
- sys-libs/db:4.8 |
228 |
- ) |
229 |
- <sys-libs/db-6.3:= |
230 |
- ) |
231 |
- gdbm? ( sys-libs/gdbm:= ) |
232 |
- kyotocabinet? ( dev-db/kyotocabinet ) |
233 |
- lmdb? ( dev-db/lmdb:= ) |
234 |
- nls? ( virtual/libintl ) |
235 |
- qdbm? ( dev-db/qdbm ) |
236 |
- tokyocabinet? ( dev-db/tokyocabinet ) |
237 |
- gnutls? ( >=net-libs/gnutls-1.0.17:= ) |
238 |
- gpgme? ( >=app-crypt/gpgme-1.8.0:= ) |
239 |
- autocrypt? ( >=dev-db/sqlite-3 ) |
240 |
- idn? ( net-dns/libidn:= ) |
241 |
- kerberos? ( virtual/krb5 ) |
242 |
- notmuch? ( net-mail/notmuch:= ) |
243 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
244 |
- !slang? ( sys-libs/ncurses:0= ) |
245 |
- slang? ( sys-libs/slang ) |
246 |
- ssl? ( >=dev-libs/openssl-1.0.2u:0= ) |
247 |
-" |
248 |
-DEPEND="${CDEPEND} |
249 |
- dev-lang/tcl:= |
250 |
- net-mail/mailbase |
251 |
- doc? ( |
252 |
- dev-libs/libxml2 |
253 |
- dev-libs/libxslt |
254 |
- app-text/docbook-xsl-stylesheets |
255 |
- || ( |
256 |
- www-client/lynx |
257 |
- www-client/w3m |
258 |
- www-client/elinks |
259 |
- ) |
260 |
- ) |
261 |
-" |
262 |
-RDEPEND="${CDEPEND} |
263 |
- selinux? ( sec-policy/selinux-mutt ) |
264 |
-" |
265 |
- |
266 |
-RESTRICT="!test? ( test )" |
267 |
- |
268 |
-src_configure() { |
269 |
- local myconf=( |
270 |
- "$(usex doc --full-doc --disable-doc)" |
271 |
- "$(use_enable nls)" |
272 |
- "$(use_enable notmuch)" |
273 |
- |
274 |
- "$(use_enable autocrypt)" |
275 |
- "$(use_enable gpgme)" |
276 |
- "$(use_enable pgp-classic pgp)" |
277 |
- "$(use_enable smime-classic smime)" |
278 |
- |
279 |
- # Database backends. |
280 |
- "$(use_enable berkdb bdb)" |
281 |
- "$(use_enable gdbm)" |
282 |
- "$(use_enable kyotocabinet)" |
283 |
- "$(use_enable qdbm)" |
284 |
- "$(use_enable tokyocabinet)" |
285 |
- |
286 |
- "$(use_enable idn)" |
287 |
- "$(use_enable kerberos gss)" |
288 |
- "$(use_enable lmdb)" |
289 |
- "$(use_enable sasl)" |
290 |
- "--with-ui=$(usex slang slang ncurses)" |
291 |
- "--sysconfdir=${EPREFIX}/etc/${PN}" |
292 |
- "$(use_enable ssl)" |
293 |
- "$(use_enable gnutls)" |
294 |
- |
295 |
- "$(usex test --testing --disable-testing)" |
296 |
- ) |
297 |
- |
298 |
- econf CCACHE=none "${myconf[@]}" |
299 |
-} |
300 |
- |
301 |
-src_test() { |
302 |
- local test_dir="$(readlink --canonicalize ${S}/../neomutt-test-files-${TEST_FILES_COMMIT})" |
303 |
- pushd ${test_dir} || die "Could not cd into test_dir" |
304 |
- NEOMUTT_TEST_DIR="${test_dir}" ./setup.sh \ |
305 |
- || die "Failed to run the setup.sh script" |
306 |
- popd || die "Could not cd back" |
307 |
- NEOMUTT_TEST_DIR="${test_dir}" emake test |
308 |
-} |
309 |
- |
310 |
-src_install() { |
311 |
- emake DESTDIR="${D}" install |
312 |
- |
313 |
- # A man-page is always handy, so fake one - here neomuttrc.5 (neomutt.1 |
314 |
- # already exists) |
315 |
- if use !doc; then |
316 |
- sed -n \ |
317 |
- -e '/^\(CC_FOR_BUILD\|CFLAGS_FOR_BUILD\)\s*=/p' \ |
318 |
- -e '/^\(EXTRA_CFLAGS_FOR_BUILD\|LDFLAGS_FOR_BUILD\)\s*=/p' \ |
319 |
- -e '/^\(EXEEXT\|SRCDIR\)\s*=/p' \ |
320 |
- Makefile > docs/Makefile.fakedoc || die |
321 |
- sed -n \ |
322 |
- -e '/^MAKEDOC_CPP\s*=/,/^\s*$/p' \ |
323 |
- -e '/^docs\/\(makedoc$(EXEEXT)\|neomutt\.1\|neomuttrc\.5\)\s*:/,/^\s*$/p' \ |
324 |
- docs/Makefile.autosetup >> docs/Makefile.fakedoc || die |
325 |
- emake -f docs/Makefile.fakedoc docs/neomutt.1 |
326 |
- emake -f docs/Makefile.fakedoc docs/neomuttrc.5 |
327 |
- doman docs/neomutt.1 docs/neomuttrc.5 |
328 |
- fi |
329 |
- |
330 |
- dodoc LICENSE* ChangeLog* README* |
331 |
-} |
332 |
- |
333 |
-pkg_postinst() { |
334 |
- if use gpgme && ( use pgp-classic || use smime-classic ); then |
335 |
- ewarn " Note that gpgme (old gpg) includes both pgp and smime" |
336 |
- ewarn " support. You can probably remove pgp-classic (old crypt)" |
337 |
- ewarn " and smime-classic (old smime) from your USE-flags and" |
338 |
- ewarn " only enable gpgme." |
339 |
- fi |
340 |
- |
341 |
- if use autocrypt && ! use idn; then |
342 |
- ewarn " It is highly recommended that NeoMutt be also configured" |
343 |
- ewarn " with idn when autocrypt is enabled." |
344 |
- fi |
345 |
-} |
346 |
|
347 |
diff --git a/mail-client/neomutt/neomutt-20210205.ebuild b/mail-client/neomutt/neomutt-20210205.ebuild |
348 |
deleted file mode 100644 |
349 |
index ac3c11deb6f..00000000000 |
350 |
--- a/mail-client/neomutt/neomutt-20210205.ebuild |
351 |
+++ /dev/null |
352 |
@@ -1,152 +0,0 @@ |
353 |
-# Copyright 1999-2021 Gentoo Authors |
354 |
-# Distributed under the terms of the GNU General Public License v2 |
355 |
- |
356 |
-EAPI=7 |
357 |
- |
358 |
-if [[ ${PV} =~ 99999999$ ]]; then |
359 |
- inherit git-r3 |
360 |
- EGIT_REPO_URI="https://github.com/neomutt/neomutt.git" |
361 |
-else |
362 |
- SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
363 |
- KEYWORDS="~amd64 ~ppc64 ~s390 ~x86" |
364 |
-fi |
365 |
- |
366 |
-TEST_FILES_COMMIT=8629adab700a75c54e8e28bf05ad092503a98f75 |
367 |
-SRC_URI+=" test? ( https://github.com/${PN}/neomutt-test-files/archive/${TEST_FILES_COMMIT}.tar.gz -> neomutt-test-files-${TEST_FILES_COMMIT}.tar.gz )" |
368 |
- |
369 |
-DESCRIPTION="A small but very powerful text-based mail client" |
370 |
-HOMEPAGE="https://neomutt.org/" |
371 |
- |
372 |
-LICENSE="GPL-2" |
373 |
-SLOT="0" |
374 |
-IUSE="autocrypt berkdb doc gdbm gnutls gpgme idn kerberos kyotocabinet |
375 |
- lmdb nls notmuch pgp-classic qdbm sasl selinux slang smime-classic |
376 |
- ssl tokyocabinet test" |
377 |
-REQUIRED_USE=" |
378 |
- autocrypt? ( gpgme )" |
379 |
- |
380 |
-CDEPEND=" |
381 |
- app-misc/mime-types |
382 |
- berkdb? ( |
383 |
- || ( |
384 |
- sys-libs/db:6.2 |
385 |
- sys-libs/db:5.3 |
386 |
- sys-libs/db:4.8 |
387 |
- ) |
388 |
- <sys-libs/db-6.3:= |
389 |
- ) |
390 |
- gdbm? ( sys-libs/gdbm:= ) |
391 |
- kyotocabinet? ( dev-db/kyotocabinet ) |
392 |
- lmdb? ( dev-db/lmdb:= ) |
393 |
- nls? ( virtual/libintl ) |
394 |
- qdbm? ( dev-db/qdbm ) |
395 |
- tokyocabinet? ( dev-db/tokyocabinet ) |
396 |
- gnutls? ( >=net-libs/gnutls-1.0.17:= ) |
397 |
- gpgme? ( >=app-crypt/gpgme-1.13.1:= ) |
398 |
- autocrypt? ( >=dev-db/sqlite-3 ) |
399 |
- idn? ( net-dns/libidn:= ) |
400 |
- kerberos? ( virtual/krb5 ) |
401 |
- notmuch? ( net-mail/notmuch:= ) |
402 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
403 |
- !slang? ( sys-libs/ncurses:0= ) |
404 |
- slang? ( sys-libs/slang ) |
405 |
- ssl? ( >=dev-libs/openssl-1.0.2u:0= ) |
406 |
-" |
407 |
-DEPEND="${CDEPEND} |
408 |
- dev-lang/tcl:= |
409 |
- net-mail/mailbase |
410 |
- doc? ( |
411 |
- dev-libs/libxml2 |
412 |
- dev-libs/libxslt |
413 |
- app-text/docbook-xsl-stylesheets |
414 |
- || ( |
415 |
- www-client/lynx |
416 |
- www-client/w3m |
417 |
- www-client/elinks |
418 |
- ) |
419 |
- ) |
420 |
-" |
421 |
-RDEPEND="${CDEPEND} |
422 |
- selinux? ( sec-policy/selinux-mutt ) |
423 |
-" |
424 |
- |
425 |
-RESTRICT="!test? ( test )" |
426 |
- |
427 |
-src_configure() { |
428 |
- local myconf=( |
429 |
- "$(usex doc --full-doc --disable-doc)" |
430 |
- "$(use_enable nls)" |
431 |
- "$(use_enable notmuch)" |
432 |
- |
433 |
- "$(use_enable autocrypt)" |
434 |
- "$(use_enable gpgme)" |
435 |
- "$(use_enable pgp-classic pgp)" |
436 |
- "$(use_enable smime-classic smime)" |
437 |
- |
438 |
- # Database backends. |
439 |
- "$(use_enable berkdb bdb)" |
440 |
- "$(use_enable gdbm)" |
441 |
- "$(use_enable kyotocabinet)" |
442 |
- "$(use_enable qdbm)" |
443 |
- "$(use_enable tokyocabinet)" |
444 |
- |
445 |
- "$(use_enable idn)" |
446 |
- "$(use_enable kerberos gss)" |
447 |
- "$(use_enable lmdb)" |
448 |
- "$(use_enable sasl)" |
449 |
- "--with-ui=$(usex slang slang ncurses)" |
450 |
- "--sysconfdir=${EPREFIX}/etc/${PN}" |
451 |
- "$(use_enable ssl)" |
452 |
- "$(use_enable gnutls)" |
453 |
- |
454 |
- "$(usex test --testing --disable-testing)" |
455 |
- ) |
456 |
- |
457 |
- econf CCACHE=none "${myconf[@]}" |
458 |
-} |
459 |
- |
460 |
-src_test() { |
461 |
- local test_dir="$(readlink --canonicalize ${S}/../neomutt-test-files-${TEST_FILES_COMMIT})" |
462 |
- pushd ${test_dir} || die "Could not cd into test_dir" |
463 |
- NEOMUTT_TEST_DIR="${test_dir}" ./setup.sh \ |
464 |
- || die "Failed to run the setup.sh script" |
465 |
- popd || die "Could not cd back" |
466 |
- NEOMUTT_TEST_DIR="${test_dir}" emake test |
467 |
-} |
468 |
- |
469 |
-src_install() { |
470 |
- emake DESTDIR="${D}" install |
471 |
- |
472 |
- # A man-page is always handy, so fake one - here neomuttrc.5 (neomutt.1 |
473 |
- # already exists) |
474 |
- if use !doc; then |
475 |
- sed -n \ |
476 |
- -e '/^\(CC_FOR_BUILD\|CFLAGS_FOR_BUILD\)\s*=/p' \ |
477 |
- -e '/^\(EXTRA_CFLAGS_FOR_BUILD\|LDFLAGS_FOR_BUILD\)\s*=/p' \ |
478 |
- -e '/^\(EXEEXT\|SRCDIR\)\s*=/p' \ |
479 |
- Makefile > docs/Makefile.fakedoc || die |
480 |
- sed -n \ |
481 |
- -e '/^MAKEDOC_CPP\s*=/,/^\s*$/p' \ |
482 |
- -e '/^docs\/\(makedoc$(EXEEXT)\|neomutt\.1\|neomuttrc\.5\)\s*:/,/^\s*$/p' \ |
483 |
- docs/Makefile.autosetup >> docs/Makefile.fakedoc || die |
484 |
- emake -f docs/Makefile.fakedoc docs/neomutt.1 |
485 |
- emake -f docs/Makefile.fakedoc docs/neomuttrc.5 |
486 |
- doman docs/neomutt.1 docs/neomuttrc.5 |
487 |
- fi |
488 |
- |
489 |
- dodoc LICENSE* ChangeLog* README* |
490 |
-} |
491 |
- |
492 |
-pkg_postinst() { |
493 |
- if use gpgme && ( use pgp-classic || use smime-classic ); then |
494 |
- ewarn " Note that gpgme (old gpg) includes both pgp and smime" |
495 |
- ewarn " support. You can probably remove pgp-classic (old crypt)" |
496 |
- ewarn " and smime-classic (old smime) from your USE-flags and" |
497 |
- ewarn " only enable gpgme." |
498 |
- fi |
499 |
- |
500 |
- if use autocrypt && ! use idn; then |
501 |
- ewarn " It is highly recommended that NeoMutt be also configured" |
502 |
- ewarn " with idn when autocrypt is enabled." |
503 |
- fi |
504 |
-} |