1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_6 pypy3 )
9 DESCRIPTION="A Python module for making simple text/console-mode user interfaces"
10 HOMEPAGE="http://pythondialog.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/pythondialog//${PV}/python3-${P}.tar.bz2"
15 KEYWORDS="~alpha amd64 ~arm ~ia64 ppc sparc x86"
18 RDEPEND="dev-util/dialog"
19 DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
21 python_prepare_all() {
22 sed -e "/^ 'sphinx.ext.intersphinx',/d" -i doc/conf.py || die
23 distutils-r1_python_prepare_all
26 python_compile_all() {
27 use doc && emake -C doc html
30 python_install_all() {
33 docompress -x /usr/share/doc/${PF}/examples
35 use doc && local HTML_DOCS=( doc/_build/html/. )
37 distutils-r1_python_install_all