Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/retext/
Date: Thu, 22 Nov 2018 20:25:41
Message-Id: 1542918325.c726bf64a7a5626373f961fe18c6f661d5070a05.mgorny@gentoo
1 commit: c726bf64a7a5626373f961fe18c6f661d5070a05
2 Author: Nils Freydank <holgersson <AT> posteo <DOT> de>
3 AuthorDate: Sat Nov 17 12:02:50 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 22 20:25:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c726bf64
7
8 app-editors/retext: Update live ebuild
9
10 Signed-off-by: Nils Freydank <holgersson <AT> posteo.de>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.12
12 Closes: https://github.com/gentoo/gentoo/pull/10166
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 app-editors/retext/retext-9999.ebuild | 41 ++++++++++++++++++++---------------
16 1 file changed, 24 insertions(+), 17 deletions(-)
17
18 diff --git a/app-editors/retext/retext-9999.ebuild b/app-editors/retext/retext-9999.ebuild
19 index b69ab5bac2a..9067cf820ea 100644
20 --- a/app-editors/retext/retext-9999.ebuild
21 +++ b/app-editors/retext/retext-9999.ebuild
22 @@ -1,13 +1,13 @@
23 -# Copyright 1999-2018 Gentoo Foundation
24 +# Copyright 1999-2018 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 EAPI=6
28
29 -PYTHON_COMPAT=( python3_{4,5,6} )
30 +# no pypy{,3} support as PyQt5 does not support it at 2018-11-18
31 +# https://bitbucket.org/pypy/compatibility/wiki/Home#!gui-library-bindings
32 +PYTHON_COMPAT=( python3_{4,5,6,7} )
33
34 -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"
35 -
36 -inherit distutils-r1 virtualx l10n xdg-utils
37 +inherit distutils-r1 gnome2-utils virtualx xdg-utils
38
39 MY_PN="ReText"
40 MY_P="${MY_PN}-${PV/_/~}"
41 @@ -25,38 +25,45 @@ if [[ ${PV} == *9999 ]]
42 S="${WORKDIR}"/${MY_P}
43 fi
44
45 -LICENSE="GPL-2"
46 +LICENSE="GPL-2+"
47 SLOT="0"
48 IUSE="+spell"
49
50 RDEPEND="
51 + dev-python/chardet[${PYTHON_USEDEP}]
52 dev-python/docutils[${PYTHON_USEDEP}]
53 dev-python/markdown[${PYTHON_USEDEP}]
54 - >=dev-python/markups-2.0[${PYTHON_USEDEP}]
55 - >=dev-python/chardet-2.3[${PYTHON_USEDEP}]
56 + dev-python/markups[${PYTHON_USEDEP}]
57 dev-python/pygments[${PYTHON_USEDEP}]
58 + dev-python/python-markdown-math[${PYTHON_USEDEP}]
59 dev-python/PyQt5[gui,network,printsupport,webengine,widgets,${PYTHON_USEDEP}]
60 spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] )
61 "
62 +DEPEND="
63 + ${RDEPEND}
64 + dev-python/setuptools[${PYTHON_USEDEP}]
65 + test? ( x11-base/xorg-server[xvfb] )
66 +"
67
68 -remove_locale() {
69 - find "${ED}" -name "retext_${1}.qm" -delete || die "Failed to remove locale ${1}."
70 +src_test() {
71 + virtx distutils-r1_src_test
72 }
73
74 python_test() {
75 - virtx esetup.py test
76 -}
77 -
78 -python_install_all() {
79 - distutils-r1_python_install_all
80 -
81 - l10n_for_each_disabled_locale_do remove_locale
82 + esetup.py test
83 }
84
85 pkg_postinst() {
86 xdg_desktop_database_update
87 + gnome2_icon_cache_update
88 +
89 + einfo "Starting with retext-7.0.4 the markdown-math plugin is installed."
90 + einfo "Note that you can use different math delimiters, e.g. \(...\) for inline math."
91 + einfo "For more details take a look at:"
92 + einfo "https://github.com/mitya57/python-markdown-math#math-delimiters"
93 }
94
95 pkg_postrm() {
96 + gnome2_icon_cache_update
97 xdg_desktop_database_update
98 }