Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mu/
Date: Fri, 18 Oct 2019 05:26:01
Message-Id: 1571376339.35b54264dd1e1241d0ba39df318ac5493dd8b434.juippis@gentoo
1 commit: 35b54264dd1e1241d0ba39df318ac5493dd8b434
2 Author: Matt Smith <matt <AT> offtopica <DOT> uk>
3 AuthorDate: Sun Oct 13 17:07:38 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 18 05:25:39 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35b54264
7
8 net-mail/mu: bump to 1.3.5
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.16
11 Suggested-by: Arthur Evstifeev <mail <AT> ap4y.me>
12 Signed-off-by: Matt Smith <matt <AT> offtopica.uk>
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 net-mail/mu/Manifest | 1 +
16 net-mail/mu/mu-1.3.5.ebuild | 86 +++++++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 87 insertions(+)
18
19 diff --git a/net-mail/mu/Manifest b/net-mail/mu/Manifest
20 index 8ad2c794d41..80c511a1a96 100644
21 --- a/net-mail/mu/Manifest
22 +++ b/net-mail/mu/Manifest
23 @@ -1,3 +1,4 @@
24 DIST mu-0.9.18.tar.gz 2250319 BLAKE2B 7eb83a797eccff706ac6b264a7d56feae80e40f370e190e0a94f2524dd73a8bfdb35599909f90d0a2b87fc513bbcf2b00fa307a3e4d0b6718ebdc7f7fcdc6df0 SHA512 47104d18547de0871782abc4e1c6dbf1f9b2489410e5716043861bf8d973d33d2138de7d7ac568b300ca86ae9f1a0fda0fa9555ad9a5938771336ef958183546
25 DIST mu-1.0.tar.gz 2273670 BLAKE2B a771b00159142fa4a671d07cf9de6f0f941c432ddee31f19606c260ba3dfef857a36a333f5ede4ca30be88d7b7eae28e996e15a8deebd96971b341f0f72bfbbb SHA512 49b0b86f22e9a6ace1fc3fd6e7a8a523aa9edf092b953d59f59a1ef7311c8c546a261a1a186e3285cea788be20c816c70ac08d1514f700ff97258a2012ad394d
26 DIST mu-1.3.3.tar.gz 2304029 BLAKE2B e2bbf3f7aa22ba2e1fd64b0e35df3e857dd3ec7874d08d36350a5d80abb36c667dee3cb43adf481dfbabd2a7944e84207d1913cb2525e637878a86fa70b213af SHA512 ab7844aef1ee6526a8b4ac1b98f6dc323fa01be6ac999f7b8a57b1c2aee6eec60a5643589c0477e8fede2f5140a8aa9050f00e52a30aaa1cd6b1cdbd66e441bf
27 +DIST mu-1.3.5.tar.gz 2305222 BLAKE2B ff6025cf053d7c2880855ec32953a2881ce8bc7d468082f13e45e7684dd41bd7906cbc9a619fd27bd4860bb953e4a547c3d22ea9a7fb4c645825c755ee33b5f9 SHA512 5d7eccec296affbe6e2e31d2204672f8ecac43f1a0c93673f983378fcf7ad8a050662097ec58603251eed31b499054d6c453a2a4e2c70dfdd896c430559b95c0
28
29 diff --git a/net-mail/mu/mu-1.3.5.ebuild b/net-mail/mu/mu-1.3.5.ebuild
30 new file mode 100644
31 index 00000000000..96b9d511592
32 --- /dev/null
33 +++ b/net-mail/mu/mu-1.3.5.ebuild
34 @@ -0,0 +1,86 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit autotools elisp-common
41 +
42 +DESCRIPTION="Set of tools to deal with Maildirs, in particular, searching and indexing"
43 +HOMEPAGE="http://www.djcbsoftware.nl/code/mu/ https://github.com/djcb/mu"
44 +SRC_URI="https://github.com/djcb/mu/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="GPL-3+"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="emacs guile"
50 +
51 +# net-mail/mailutils also installes /usr/bin/mu. Block it until somebody
52 +# really wants both installed at the same time.
53 +DEPEND="
54 + dev-libs/gmime:3.0
55 + >=dev-libs/xapian-1.4
56 + dev-libs/glib:2
57 + emacs? ( >=virtual/emacs-24.4 )
58 + guile? ( >=dev-scheme/guile-2.0 )
59 + !net-mail/mailutils"
60 +RDEPEND="${DEPEND}"
61 +BDEPEND="virtual/pkgconfig"
62 +
63 +SITEFILE="70mu-gentoo.el"
64 +
65 +src_prepare() {
66 + default
67 + eautoreconf
68 +}
69 +
70 +src_configure() {
71 + # Note: Author recommends that packages do not build the webkit toy
72 + # Todo: Add gtk USE-flag
73 +
74 + econf --disable-gtk \
75 + --disable-webkit \
76 + $(use_enable emacs mu4e) \
77 + $(use_enable guile)
78 +}
79 +
80 +src_install () {
81 + dobin mu/mu
82 + dodoc AUTHORS HACKING NEWS NEWS.org TODO README README.org ChangeLog
83 + if use emacs; then
84 + elisp-install ${PN} mu4e/*.el mu4e/*.elc
85 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
86 + doinfo mu4e/mu4e.info
87 + fi
88 +
89 + doman man/mu-add.1 man/mu-bookmarks.5 man/mu-cfind.1 man/mu-easy.1 \
90 + man/mu-extract.1 man/mu-find.1 man/mu-help.1 man/mu-index.1 \
91 + man/mu-mkdir.1 man/mu-query.7 man/mu-remove.1 \
92 + man/mu-script.1 man/mu-server.1 man/mu-verify.1 \
93 + man/mu-view.1 man/mu.1
94 +
95 + if use guile; then
96 + doinfo guile/mu-guile.info
97 + fi
98 +}
99 +
100 +src_test () {
101 + # Note: Fails with parallel make
102 + emake -j1 check
103 +}
104 +
105 +pkg_postinst() {
106 + if use emacs; then
107 + einfo "To use mu4e you need to configure it in your .emacs file"
108 + einfo "See the manual for more information:"
109 + einfo "http://www.djcbsoftware.nl/code/mu/mu4e/"
110 + fi
111 +
112 + elog "If you upgrade from an older major version,"
113 + elog "then you need to rebuild your mail index."
114 +
115 + use emacs && elisp-site-regen
116 +}
117 +
118 +pkg_postrm() {
119 + use emacs && elisp-site-regen
120 +}