commit:     4d4c45e341348864d77e2a817610cad637ed4ce5
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 15 07:15:18 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Jul 15 08:06:36 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d4c45e3

app-editors/retext: use D_U_S, optfeature

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-editors/retext/retext-7.1.0.ebuild | 13 ++++---------
 app-editors/retext/retext-9999.ebuild  | 11 +++--------
 2 files changed, 7 insertions(+), 17 deletions(-)

diff --git a/app-editors/retext/retext-7.1.0.ebuild 
b/app-editors/retext/retext-7.1.0.ebuild
index f06ff35ad24..482db4845ce 100644
--- a/app-editors/retext/retext-7.1.0.ebuild
+++ b/app-editors/retext/retext-7.1.0.ebuild
@@ -7,7 +7,7 @@ EAPI=7
 # https://bitbucket.org/pypy/compatibility/wiki/Home#!gui-library-bindings
 PYTHON_COMPAT=( python3_{7,8,9} )
 
-inherit distutils-r1 virtualx xdg-utils
+inherit distutils-r1 eutils virtualx xdg-utils
 DISTUTILS_USE_SETUPTOOLS=rdepend
 
 MY_PN="ReText"
@@ -28,7 +28,6 @@ fi
 
 LICENSE="GPL-2+"
 SLOT="0"
-IUSE="+spell"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
@@ -40,14 +39,8 @@ RDEPEND="
        dev-python/python-markdown-math[${PYTHON_USEDEP}]
        dev-python/PyQt5[gui,network,printsupport,widgets,${PYTHON_USEDEP}]
        dev-python/PyQtWebEngine[${PYTHON_USEDEP}]
-       spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] )
-"
-DEPEND="
-       ${RDEPEND}
-"
-BDEPEND="
-       dev-python/setuptools[${PYTHON_USEDEP}]
 "
+DEPEND="${RDEPEND}"
 
 src_test() {
        virtx distutils-r1_src_test
@@ -61,6 +54,8 @@ pkg_postinst() {
        xdg_desktop_database_update
        xdg_icon_cache_update
 
+       optfeature "dictionary support" dev-python/pyenchant
+
        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:"

diff --git a/app-editors/retext/retext-9999.ebuild 
b/app-editors/retext/retext-9999.ebuild
index f06ff35ad24..72e36651206 100644
--- a/app-editors/retext/retext-9999.ebuild
+++ b/app-editors/retext/retext-9999.ebuild
@@ -28,7 +28,6 @@ fi
 
 LICENSE="GPL-2+"
 SLOT="0"
-IUSE="+spell"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
@@ -40,14 +39,8 @@ RDEPEND="
        dev-python/python-markdown-math[${PYTHON_USEDEP}]
        dev-python/PyQt5[gui,network,printsupport,widgets,${PYTHON_USEDEP}]
        dev-python/PyQtWebEngine[${PYTHON_USEDEP}]
-       spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] )
-"
-DEPEND="
-       ${RDEPEND}
-"
-BDEPEND="
-       dev-python/setuptools[${PYTHON_USEDEP}]
 "
+DEPEND="${RDEPEND}"
 
 src_test() {
        virtx distutils-r1_src_test
@@ -61,6 +54,8 @@ pkg_postinst() {
        xdg_desktop_database_update
        xdg_icon_cache_update
 
+       optfeature "dictionary support" dev-python/pyenchant
+
        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:"

Reply via email to