app-editors/retext: Update live ebuild
authorNils Freydank <holgersson@posteo.de>
Sat, 17 Nov 2018 12:02:50 +0000 (13:02 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 22 Nov 2018 20:25:25 +0000 (21:25 +0100)
Signed-off-by: Nils Freydank <holgersson@posteo.de>
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Closes: https://github.com/gentoo/gentoo/pull/10166
Signed-off-by: Michał Górny <mgorny@gentoo.org>
app-editors/retext/retext-9999.ebuild

index b69ab5bac2a4a49f80cd1734e917b2c822535903..9067cf820ea2d8b59c64dafd13581feeca68b633 100644 (file)
@@ -1,13 +1,13 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-PYTHON_COMPAT=( python3_{4,5,6} )
+# no pypy{,3} support as PyQt5 does not support it at 2018-11-18
+# https://bitbucket.org/pypy/compatibility/wiki/Home#!gui-library-bindings
+PYTHON_COMPAT=( python3_{4,5,6,7} )
 
-PLOCALES="ca cs cy da de es et eu fr hu it ja pl pt pt_BR ru sk sr sr@latin uk zh_TW"
-
-inherit distutils-r1 virtualx l10n xdg-utils
+inherit distutils-r1 gnome2-utils virtualx xdg-utils
 
 MY_PN="ReText"
 MY_P="${MY_PN}-${PV/_/~}"
@@ -25,38 +25,45 @@ if [[ ${PV} == *9999 ]]
                S="${WORKDIR}"/${MY_P}
 fi
 
-LICENSE="GPL-2"
+LICENSE="GPL-2+"
 SLOT="0"
 IUSE="+spell"
 
 RDEPEND="
+       dev-python/chardet[${PYTHON_USEDEP}]
        dev-python/docutils[${PYTHON_USEDEP}]
        dev-python/markdown[${PYTHON_USEDEP}]
-       >=dev-python/markups-2.0[${PYTHON_USEDEP}]
-       >=dev-python/chardet-2.3[${PYTHON_USEDEP}]
+       dev-python/markups[${PYTHON_USEDEP}]
        dev-python/pygments[${PYTHON_USEDEP}]
+       dev-python/python-markdown-math[${PYTHON_USEDEP}]
        dev-python/PyQt5[gui,network,printsupport,webengine,widgets,${PYTHON_USEDEP}]
        spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] )
 "
+DEPEND="
+       ${RDEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? ( x11-base/xorg-server[xvfb] )
+"
 
-remove_locale() {
-       find "${ED}" -name "retext_${1}.qm" -delete || die "Failed to remove locale ${1}."
+src_test() {
+       virtx distutils-r1_src_test
 }
 
 python_test() {
-       virtx esetup.py test
-}
-
-python_install_all() {
-       distutils-r1_python_install_all
-
-       l10n_for_each_disabled_locale_do remove_locale
+       esetup.py test
 }
 
 pkg_postinst() {
        xdg_desktop_database_update
+       gnome2_icon_cache_update
+
+       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"
 }
 
 pkg_postrm() {
+       gnome2_icon_cache_update
        xdg_desktop_database_update
 }