1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
10 DESCRIPTION="Experimental terminal UI for net-mail/notmuch written in Python"
11 HOMEPAGE="https://github.com/pazz/alot"
12 SRC_URI="https://github.com/pazz/alot/archive/${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="~amd64 ~x86"
18 RESTRICT="!test? ( test )"
21 >=app-crypt/gpgme-1.9.0[python,${PYTHON_USEDEP}]
22 >=dev-python/configobj-4.7.0[${PYTHON_USEDEP}]
23 dev-python/python-magic[${PYTHON_USEDEP}]
24 >=dev-python/urwid-1.3.0[${PYTHON_USEDEP}]
25 >=dev-python/urwidtrees-1.0[${PYTHON_USEDEP}]
26 dev-python/twisted[${PYTHON_USEDEP}]
28 >=net-mail/notmuch-0.27[crypt,python]
31 dev-python/setuptools[${PYTHON_USEDEP}]
32 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
35 dev-python/mock[${PYTHON_USEDEP}]
40 "${FILESDIR}/${PV}-0001-remove-non-working-test.patch"
43 python_compile_all() {
46 HTML_DOCS=( docs/build/html/. )
54 python_install_all() {
55 distutils-r1_python_install_all
57 insinto /usr/share/alot
62 if [[ -z ${REPLACING_VERSIONS} ]] ; then
64 elog "If you are new to Alot you may want to take a look at"
65 elog "the user manual:"
66 elog " https://alot.readthedocs.io/en/latest/"
70 for rv in ${REPLACING_VERSIONS} ; do
71 if ver_test "${rv}" -le "0.5.1"; then
73 ewarn "Since 0.6 version the GPG engine has switched to app-crypt/gpgme"
74 ewarn "to use GPG signing operations, you can pass the key id has arg"
75 ewarn "or setup the gpg_key value in your config file, see"
76 ewarn " https://alot.readthedocs.io/en/latest/usage/crypto.html?highlight=gpg"