1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{6,7} )
8 EGIT_REPO_URI="https://github.com/jrfonseca/${MY_PN}"
10 if [[ ${PV} = 9999* ]]; then
14 KEYWORDS="~amd64 ~x86"
16 S="${WORKDIR}/${MY_P}"
17 SRC_URI="https://github.com/jrfonseca/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
20 inherit ${GIT_ECLASS} distutils-r1
22 DESCRIPTION="Interactive viewer for Graphviz dot files"
23 HOMEPAGE="https://github.com/jrfonseca/xdot.py"
29 dev-python/pycairo[${PYTHON_USEDEP}]
30 dev-python/pygobject:3[${PYTHON_USEDEP}]
31 dev-python/setuptools[${PYTHON_USEDEP}]
38 [[ $PV = 9999* ]] && git-r3_src_unpack
44 # Don't require graphviz python(2) supprt, which xdot doesn't use. This allows xdot to support python3.
45 # For more info, see https://bugs.gentoo.org/643126
46 sed -i "/install_requires=\['graphviz'\],/d" setup.py || die