Skip to content

Commit

Permalink
app-editors/retext: Depend optionally on qtwebengine
Browse files Browse the repository at this point in the history
To avoid breakage for existing installations the deps are not made optional
but moved into USE flags (bug 772197).

Also there is added a missing dbus dep (bug 772197, too).

Closes: https://bugs.gentoo.org/772197
Signed-off-by: Nils Freydank <[email protected]>
Signed-off-by: Joonas Niilola <[email protected]>
  • Loading branch information
holgersson32644 authored and juippis committed Feb 25, 2021
1 parent 0cb57f5 commit 3b8c75c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ RDEPEND="
dev-python/markups[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]
dev-python/python-markdown-math[${PYTHON_USEDEP}]
dev-python/PyQt5[gui,network,printsupport,widgets,${PYTHON_USEDEP}]
dev-python/PyQtWebEngine[${PYTHON_USEDEP}]
dev-python/PyQt5[dbus,gui,printsupport,widgets,${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
BDEPEND="test? ( dev-python/PyQt5[testlib,${PYTHON_USEDEP}] )"

src_test() {
virtx distutils-r1_src_test
Expand All @@ -55,11 +55,13 @@ pkg_postinst() {
xdg_icon_cache_update

optfeature "dictionary support" dev-python/pyenchant
# See https://bugs.gentoo.org/772197.
optfeature "rendering with webengine" dev-python/PyQtWebEngine

einfo "Starting with retext-7.0.4 the markdown-math plugin is installed."
einfo "Note that you can use different math delimiters, e.g. \(...\) for inline math."
einfo "For more details take a look at:"
einfo "https://github.com/mitya57/python-markdown-math#math-delimiters"
einfo "https://github.com/mitya57/python-markdown-math#math-delimiters"
}

pkg_postrm() {
Expand Down

0 comments on commit 3b8c75c

Please sign in to comment.