1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 # no pypy{,3} support as PyQt5 does not support it at 2019-05-15
7 # https://bitbucket.org/pypy/compatibility/wiki/Home#!gui-library-bindings
8 PYTHON_COMPAT=( python3_{6,7} )
10 inherit distutils-r1 virtualx xdg-utils
13 MY_P="${MY_PN}-${PV/_/~}"
15 DESCRIPTION="Simple editor for Markdown and reStructuredText"
16 HOMEPAGE="https://github.com/retext-project/retext https://github.com/retext-project/retext/wiki"
18 if [[ ${PV} == *9999 ]]
21 EGIT_REPO_URI="https://github.com/retext-project/retext.git"
23 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
24 KEYWORDS="~amd64 ~x86"
25 S="${WORKDIR}"/${MY_P}
33 dev-python/chardet[${PYTHON_USEDEP}]
34 dev-python/docutils[${PYTHON_USEDEP}]
35 dev-python/markdown[${PYTHON_USEDEP}]
36 dev-python/markups[${PYTHON_USEDEP}]
37 dev-python/pygments[${PYTHON_USEDEP}]
38 dev-python/python-markdown-math[${PYTHON_USEDEP}]
39 dev-python/PyQt5[gui,network,printsupport,widgets,${PYTHON_USEDEP}]
41 dev-python/PyQtWebEngine[${PYTHON_USEDEP}]
42 <dev-python/PyQt5-5.12[webengine]
44 spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] )
50 dev-python/setuptools[${PYTHON_USEDEP}]
54 virtx distutils-r1_src_test
62 xdg_desktop_database_update
65 einfo "Starting with retext-7.0.4 the markdown-math plugin is installed."
66 einfo "Note that you can use different math delimiters, e.g. \(...\) for inline math."
67 einfo "For more details take a look at:"
68 einfo "https://github.com/mitya57/python-markdown-math#math-delimiters"
72 xdg_desktop_database_update