Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/alot/, mail-client/alot/files/
Date: Thu, 05 Mar 2020 12:21:15
Message-Id: 1583409510.7b7bc73615399e1282e8b3fca08ac6a36ae73054.juippis@gentoo
1 commit: 7b7bc73615399e1282e8b3fca08ac6a36ae73054
2 Author: Guillaume Seren <guillaumeseren <AT> gmail <DOT> com>
3 AuthorDate: Sun Feb 23 20:31:09 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 5 11:58:30 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b7bc736
7
8 mail-client/alot: version bump 0.9
9
10 Closes: https://bugs.gentoo.org/710610
11 Package-Manager: Portage-2.3.84, Repoman-2.3.20
12 Signed-off-by: Guillaume Seren <guillaumeseren <AT> gmail.com>
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 mail-client/alot/Manifest | 1 +
16 mail-client/alot/alot-0.9.ebuild | 68 ++++++++++++++++++++++
17 .../files/0.9-0001-remove-non-working-test.patch | 31 ++++++++++
18 ....9-0002-update-reference-to-envelope-body.patch | 28 +++++++++
19 4 files changed, 128 insertions(+)
20
21 diff --git a/mail-client/alot/Manifest b/mail-client/alot/Manifest
22 index 45b2450ac39..a09eea03999 100644
23 --- a/mail-client/alot/Manifest
24 +++ b/mail-client/alot/Manifest
25 @@ -1 +1,2 @@
26 DIST alot-0.8.1.tar.gz 220342 BLAKE2B 019f41f1f1fe73aa17a309a73b12883cbbae6a232d912d0e328b3862fc4e8e49ea6a3d0b6e2921ecb4d6ee8a58a9f6826facd7ff4cd6fafc17f6f5fe0195dd2c SHA512 bca4a01636594f0e71c6ea260d74cf26e74dfd7aca1ea7801714b4aaf9602ae7737769e77e3af0363ed2701df1494e0f87ce85b58c47a6380ad1a9098f8501d4
27 +DIST alot-0.9.tar.gz 224932 BLAKE2B 6063b9974ec54b51521ec52db41519bd9f16cc8da611b1a2da7de3f7581a924962a79ca8193ad0bb36633141182c047f32c5ab58132c78e1ec036e4da684181c SHA512 e630ea18702c570630deb10347c52e03aecb297bc1f76ce60318eeb8725274b12eb408cbceb69c8035b1ec9ea778f19a035f48070606bc6540b68a4bc5591860
28
29 diff --git a/mail-client/alot/alot-0.9.ebuild b/mail-client/alot/alot-0.9.ebuild
30 new file mode 100644
31 index 00000000000..248997e5196
32 --- /dev/null
33 +++ b/mail-client/alot/alot-0.9.ebuild
34 @@ -0,0 +1,68 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +DISTUTILS_USE_SETUPTOOLS=rdepend
41 +PYTHON_COMPAT=( python3_{6,7} )
42 +
43 +inherit distutils-r1
44 +
45 +DESCRIPTION="Experimental terminal UI for net-mail/notmuch written in Python"
46 +HOMEPAGE="https://github.com/pazz/alot"
47 +SRC_URI="https://github.com/pazz/alot/archive/${PV}.tar.gz -> ${P}.tar.gz"
48 +
49 +LICENSE="GPL-3"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +IUSE="doc test"
53 +RESTRICT="!test? ( test )"
54 +
55 +RDEPEND="
56 + app-crypt/gpgme[python,${PYTHON_USEDEP}]
57 + dev-python/configobj[${PYTHON_USEDEP}]
58 + dev-python/python-magic[${PYTHON_USEDEP}]
59 + dev-python/urwid[${PYTHON_USEDEP}]
60 + dev-python/urwidtrees[${PYTHON_USEDEP}]
61 + >=dev-python/twisted-18.4[${PYTHON_USEDEP}]
62 + net-mail/mailbase
63 + net-mail/notmuch[crypt,python]
64 + "
65 +DEPEND="
66 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
67 + test? (
68 + ${RDEPEND}
69 + dev-python/mock[${PYTHON_USEDEP}]
70 + )
71 + "
72 +
73 +PATCHES=(
74 + "${FILESDIR}/${PV}-0001-remove-non-working-test.patch"
75 + "${FILESDIR}/${PV}-0002-update-reference-to-envelope-body.patch"
76 + )
77 +
78 +distutils_enable_tests setup.py
79 +
80 +python_compile_all() {
81 + emake -C docs man
82 + use doc && emake -C docs html
83 +}
84 +
85 +python_install_all() {
86 + use doc && local HTML_DOCS=( docs/build/html/. )
87 + doman docs/build/man/*
88 + distutils-r1_python_install_all
89 +
90 + insinto /usr/share/alot
91 + doins -r extra
92 +}
93 +
94 +pkg_postinst() {
95 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
96 + elog ""
97 + elog "If you are new to Alot you may want to take a look at"
98 + elog "the user manual:"
99 + elog " https://alot.readthedocs.io/en/latest/"
100 + elog ""
101 + fi
102 +}
103
104 diff --git a/mail-client/alot/files/0.9-0001-remove-non-working-test.patch b/mail-client/alot/files/0.9-0001-remove-non-working-test.patch
105 new file mode 100644
106 index 00000000000..505f112e504
107 --- /dev/null
108 +++ b/mail-client/alot/files/0.9-0001-remove-non-working-test.patch
109 @@ -0,0 +1,31 @@
110 +From d534d65e1d4855565124906319c54b179dae20bd Mon Sep 17 00:00:00 2001
111 +From: Guillaume Seren <guillaumeseren@×××××.com>
112 +Date: Fri, 3 May 2019 18:17:05 +0200
113 +Subject: [PATCH] Remove non working test
114 +
115 +Some test are not working + fix for master
116 +---
117 + tests/commands/test_global.py | 7 -------
118 + 1 file changed, 7 deletions(-)
119 +
120 +diff --git a/tests/commands/test_global.py b/tests/commands/test_global.py
121 +index 775a822c..ca79443f 100644
122 +--- a/tests/commands/test_global.py
123 ++++ b/tests/commands/test_global.py
124 +@@ -121,13 +121,6 @@ class TestExternalCommand(unittest.TestCase):
125 + await cmd.apply(ui)
126 + ui.notify.assert_not_called()
127 +
128 +- @utilities.async_test
129 +- async def test_no_spawn_no_stdin_attached(self):
130 +- ui = utilities.make_ui()
131 +- cmd = g_commands.ExternalCommand('test -t 0', refocus=False)
132 +- await cmd.apply(ui)
133 +- ui.notify.assert_not_called()
134 +-
135 + @utilities.async_test
136 + async def test_no_spawn_stdin_attached(self):
137 + ui = utilities.make_ui()
138 +--
139 +2.24.1
140 +
141
142 diff --git a/mail-client/alot/files/0.9-0002-update-reference-to-envelope-body.patch b/mail-client/alot/files/0.9-0002-update-reference-to-envelope-body.patch
143 new file mode 100644
144 index 00000000000..8010b50db8a
145 --- /dev/null
146 +++ b/mail-client/alot/files/0.9-0002-update-reference-to-envelope-body.patch
147 @@ -0,0 +1,28 @@
148 +From 67a06f5b9afa132a187956d5f28b0470b84a0235 Mon Sep 17 00:00:00 2001
149 +From: Patrick Totzke <patricktotzke@×××××.com>
150 +Date: Sun, 16 Feb 2020 10:24:59 +0000
151 +Subject: [PATCH] Update reference to envelope.body
152 +
153 +which now should be body_txt as of e067ea2037c10224645f0cb7ab2e020772e612ac
154 +
155 +fixes #1468
156 +---
157 + alot/commands/globals.py | 2 +-
158 + 1 file changed, 1 insertion(+), 1 deletion(-)
159 +
160 +diff --git a/alot/commands/globals.py b/alot/commands/globals.py
161 +index f9dc5812..aa1fd436 100644
162 +--- a/alot/commands/globals.py
163 ++++ b/alot/commands/globals.py
164 +@@ -869,7 +869,7 @@ class ComposeCommand(Command):
165 + mimetype = helper.guess_mimetype(sigcontent)
166 + if mimetype.startswith('text'):
167 + sigcontent = helper.try_decode(sigcontent)
168 +- self.envelope.body += '\n' + sigcontent
169 ++ self.envelope.body_txt += '\n' + sigcontent
170 + else:
171 + ui.notify('could not locate signature: %s' % sig,
172 + priority='error')
173 +--
174 +2.24.1
175 +