1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_6,3_7} )
9 DESCRIPTION="Tree widgets for urwid"
10 HOMEPAGE="https://github.com/pazz/urwidtrees"
11 SRC_URI="https://github.com/pazz/urwidtrees/archive/${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
18 DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
19 RDEPEND=">=dev-python/urwid-1.1.0[${PYTHON_USEDEP}]"
22 find -name '*.py' -exec \
23 sed -i -e '1i# -*- coding: utf-8 -*-' {} + || die
25 distutils-r1_src_prepare
29 mv "${md}" "${md%.md}" || die
34 distutils-r1_src_compile
36 use doc && emake -C docs html
40 distutils-r1_src_install
43 dodoc -r docs/build/html/.