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, 10 Jan 2020 05:43:58
Message-Id: 1578634140.f444602b0a08ded39327a42118d0da81b60376f3.juippis@gentoo
1 commit: f444602b0a08ded39327a42118d0da81b60376f3
2 Author: Matt Smith <matt <AT> offtopica <DOT> uk>
3 AuthorDate: Tue Dec 31 18:25:34 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 10 05:29:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f444602b
7
8 net-mail/mu: bump to 1.3.6
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Matt Smith <matt <AT> offtopica.uk>
12 Closes: https://github.com/gentoo/gentoo/pull/14200
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 net-mail/mu/Manifest | 1 +
16 net-mail/mu/metadata.xml | 3 +-
17 net-mail/mu/mu-1.3.6.ebuild | 99 +++++++++++++++++++++++++++++++++++++++++++++
18 3 files changed, 102 insertions(+), 1 deletion(-)
19
20 diff --git a/net-mail/mu/Manifest b/net-mail/mu/Manifest
21 index 81283ede139..a531312011d 100644
22 --- a/net-mail/mu/Manifest
23 +++ b/net-mail/mu/Manifest
24 @@ -1,3 +1,4 @@
25 DIST mu-0.9.18.tar.gz 2250319 BLAKE2B 7eb83a797eccff706ac6b264a7d56feae80e40f370e190e0a94f2524dd73a8bfdb35599909f90d0a2b87fc513bbcf2b00fa307a3e4d0b6718ebdc7f7fcdc6df0 SHA512 47104d18547de0871782abc4e1c6dbf1f9b2489410e5716043861bf8d973d33d2138de7d7ac568b300ca86ae9f1a0fda0fa9555ad9a5938771336ef958183546
26 DIST mu-1.0.tar.gz 2273670 BLAKE2B a771b00159142fa4a671d07cf9de6f0f941c432ddee31f19606c260ba3dfef857a36a333f5ede4ca30be88d7b7eae28e996e15a8deebd96971b341f0f72bfbbb SHA512 49b0b86f22e9a6ace1fc3fd6e7a8a523aa9edf092b953d59f59a1ef7311c8c546a261a1a186e3285cea788be20c816c70ac08d1514f700ff97258a2012ad394d
27 DIST mu-1.3.5.tar.gz 2305222 BLAKE2B ff6025cf053d7c2880855ec32953a2881ce8bc7d468082f13e45e7684dd41bd7906cbc9a619fd27bd4860bb953e4a547c3d22ea9a7fb4c645825c755ee33b5f9 SHA512 5d7eccec296affbe6e2e31d2204672f8ecac43f1a0c93673f983378fcf7ad8a050662097ec58603251eed31b499054d6c453a2a4e2c70dfdd896c430559b95c0
28 +DIST mu-1.3.6.tar.gz 2305653 BLAKE2B b9a556c1b374e0b72b6b0c40beba581dc3fe0e0a654a881db3a47582481ef00831e18bcd771e24b231ef843e97f14f7401ad8d041c077617b865f1fa971d1a0f SHA512 c889dc3fc1b7f1333f2adc3891f23ea8977c77ac6af532fec37c6570b4fbb2ce8dda0776568d61dedfa34f0519bb5bba89b90002503c3191a0d633ecfb9d5c87
29
30 diff --git a/net-mail/mu/metadata.xml b/net-mail/mu/metadata.xml
31 index 52409e49115..9d458cfbe1a 100644
32 --- a/net-mail/mu/metadata.xml
33 +++ b/net-mail/mu/metadata.xml
34 @@ -14,7 +14,8 @@
35 are looking for, assuming that you store your e-mails in Maildirs. It also includes an emacs based mail client mu4e.
36 </longdescription>
37 <use>
38 - <flag name="emacs">Install the mu4e mail client.</flag>
39 + <flag name="emacs">Install the mu4e mail client</flag>
40 + <flag name="mug">Install the mug toy client, not for normal use</flag>
41 </use>
42 <upstream>
43 <remote-id type="google-code">mu0</remote-id>
44
45 diff --git a/net-mail/mu/mu-1.3.6.ebuild b/net-mail/mu/mu-1.3.6.ebuild
46 new file mode 100644
47 index 00000000000..d6bea16eed2
48 --- /dev/null
49 +++ b/net-mail/mu/mu-1.3.6.ebuild
50 @@ -0,0 +1,99 @@
51 +# Copyright 1999-2020 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=7
55 +
56 +inherit autotools elisp-common
57 +
58 +DESCRIPTION="Set of tools to deal with Maildirs, in particular, searching and indexing"
59 +HOMEPAGE="http://www.djcbsoftware.nl/code/mu/ https://github.com/djcb/mu"
60 +SRC_URI="https://github.com/djcb/mu/archive/${PV}.tar.gz -> ${P}.tar.gz"
61 +
62 +LICENSE="GPL-3+"
63 +SLOT="0"
64 +KEYWORDS="~amd64 ~x86"
65 +IUSE="emacs guile mug"
66 +
67 +DEPEND="
68 + dev-libs/glib:2
69 + dev-libs/gmime:3.0
70 + >=dev-libs/xapian-1.4
71 + emacs? ( >=app-editors/emacs-24.4:* )
72 + guile? ( >=dev-scheme/guile-2.0 )
73 + mug? (
74 + net-libs/webkit-gtk:4
75 + x11-libs/gtk+:3
76 + )"
77 +# net-mail/mailutils also installes /usr/bin/mu. Block it until somebody
78 +# really wants both installed at the same time.
79 +RDEPEND="
80 + ${DEPEND}
81 + !net-mail/mailutils"
82 +BDEPEND="virtual/pkgconfig"
83 +
84 +SITEFILE="70mu-gentoo.el"
85 +
86 +src_prepare() {
87 + default
88 + eautoreconf
89 +}
90 +
91 +src_configure() {
92 + local myeconfargs=(
93 + $(use_enable emacs mu4e)
94 + $(use_enable mug gtk)
95 + $(use_enable mug webkit)
96 + $(use_enable guile)
97 + )
98 +
99 + econf "${myeconfargs[@]}"
100 +}
101 +
102 +src_install() {
103 + dobin mu/mu
104 + dodoc AUTHORS HACKING NEWS NEWS.org TODO README README.org ChangeLog
105 + if use emacs; then
106 + elisp-install ${PN} mu4e/*.el mu4e/*.elc
107 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
108 + doinfo mu4e/mu4e.info
109 + fi
110 +
111 + doman man/mu-add.1 man/mu-bookmarks.5 man/mu-cfind.1 man/mu-easy.1 \
112 + man/mu-extract.1 man/mu-find.1 man/mu-help.1 man/mu-index.1 \
113 + man/mu-mkdir.1 man/mu-query.7 man/mu-remove.1 \
114 + man/mu-script.1 man/mu-server.1 man/mu-verify.1 \
115 + man/mu-view.1 man/mu.1
116 +
117 + if use guile; then
118 + doinfo guile/mu-guile.info
119 + fi
120 +
121 + if use mug; then
122 + dobin toys/mug/mug
123 + fi
124 +}
125 +
126 +src_test() {
127 + emake check
128 +}
129 +
130 +pkg_preinst() {
131 + if [[ -n ${REPLACING_VERSIONS} ]]; then
132 + elog "After upgrading from an old major version, you should"
133 + elog "rebuild your mail index."
134 + fi
135 +}
136 +
137 +pkg_postinst() {
138 + if use emacs; then
139 + einfo "To use mu4e you need to configure it in your .emacs file"
140 + einfo "See the manual for more information:"
141 + einfo "http://www.djcbsoftware.nl/code/mu/mu4e/"
142 + fi
143 +
144 + use emacs && elisp-site-regen
145 +}
146 +
147 +pkg_postrm() {
148 + use emacs && elisp-site-regen
149 +}