Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/retext/
Date: Fri, 03 Jun 2022 08:27:23
Message-Id: 1654244819.75a0c76e46b055884379160d1adf1e087ef0ad26.sam@gentoo
1 commit: 75a0c76e46b055884379160d1adf1e087ef0ad26
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 3 08:26:59 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 3 08:26:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75a0c76e
7
8 app-editors/retext: add 7.2.3
9
10 Closes: https://bugs.gentoo.org/848999
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 app-editors/retext/Manifest | 1 +
14 .../{retext-9999.ebuild => retext-7.2.3.ebuild} | 26 +++++++++++++---------
15 app-editors/retext/retext-9999.ebuild | 26 +++++++++++++---------
16 3 files changed, 31 insertions(+), 22 deletions(-)
17
18 diff --git a/app-editors/retext/Manifest b/app-editors/retext/Manifest
19 index 613d0808a019..170590d8d240 100644
20 --- a/app-editors/retext/Manifest
21 +++ b/app-editors/retext/Manifest
22 @@ -1 +1,2 @@
23 DIST ReText-7.2.2.tar.gz 522652 BLAKE2B f9b19f985c1381eade324758c4dc6bf2e5f74bc3f5bfc27afa10462b7387f64a3e72edd5875aabf1831f1f0a942f395e43b124c172cac8cec4b9f19334661484 SHA512 68345b57b2c5446158ed3a6f97b5ead103ef1c99a3aea9cbc69ef7d0807fb64546f38ebde2969b94429eeed6450abb345fecc566dcf6e0767fe84c4e27348e53
24 +DIST ReText-7.2.3.tar.gz 527428 BLAKE2B 3c710769a881275d74018ba319b174020dda0b65da22ae926231af56901b56c31b3cff69119a9bb378cd218d7b793f002bb08bf1483cc1e55c95a4963cbe1598 SHA512 eb337866f5dfacad2f23435f09b550f4378df5bb261d6f79b1708fed9e7bd93e96e8f06f940cb7109fe02aa6df0592b151f11dfe13853799f0b1ac2c1065a0da
25
26 diff --git a/app-editors/retext/retext-9999.ebuild b/app-editors/retext/retext-7.2.3.ebuild
27 similarity index 85%
28 copy from app-editors/retext/retext-9999.ebuild
29 copy to app-editors/retext/retext-7.2.3.ebuild
30 index ac4f08fb2467..214372f2d90a 100644
31 --- a/app-editors/retext/retext-9999.ebuild
32 +++ b/app-editors/retext/retext-7.2.3.ebuild
33 @@ -1,14 +1,14 @@
34 # Copyright 1999-2022 Gentoo Authors
35 # Distributed under the terms of the GNU General Public License v2
36
37 -EAPI=7
38 +EAPI=8
39
40 # Please don't add pypy support before testing if it's actually supported. The
41 # old compat matrix is no longer accessible as of 2021-02-13 but stated back
42 # in 2020-07-05 that PyQt5 was explicitly not supported.
43 PYTHON_COMPAT=( python3_{8,9,10} )
44
45 -inherit distutils-r1 optfeature virtualx xdg-utils
46 +inherit distutils-r1 optfeature qmake-utils virtualx xdg
47
48 MY_PN="ReText"
49 MY_P="${MY_PN}-${PV/_/~}"
50 @@ -40,19 +40,28 @@ RDEPEND="
51 dev-python/PyQt5[dbus,gui,printsupport,widgets,${PYTHON_USEDEP}]
52 "
53 DEPEND="${RDEPEND}"
54 -BDEPEND="test? ( dev-python/PyQt5[testlib,${PYTHON_USEDEP}] )"
55 +BDEPEND="
56 + dev-qt/linguist-tools
57 + test? ( dev-python/PyQt5[testlib,${PYTHON_USEDEP}] )
58 +"
59 +
60 +distutils_enable_tests unittest
61 +
62 +pkg_setup() {
63 + # Needed for lrelease
64 + export PATH="$(qt5_get_bindir):${PATH}"
65 +}
66
67 src_test() {
68 virtx distutils-r1_src_test
69 }
70
71 python_test() {
72 - esetup.py test
73 + eunittest || die
74 }
75
76 pkg_postinst() {
77 - xdg_desktop_database_update
78 - xdg_icon_cache_update
79 + xdg_pkg_postinst
80
81 optfeature "dictionary support" dev-python/pyenchant
82 # See https://bugs.gentoo.org/772197.
83 @@ -63,8 +72,3 @@ pkg_postinst() {
84 einfo "For more details take a look at:"
85 einfo "https://github.com/mitya57/python-markdown-math#math-delimiters"
86 }
87 -
88 -pkg_postrm() {
89 - xdg_desktop_database_update
90 - xdg_icon_cache_update
91 -}
92
93 diff --git a/app-editors/retext/retext-9999.ebuild b/app-editors/retext/retext-9999.ebuild
94 index ac4f08fb2467..214372f2d90a 100644
95 --- a/app-editors/retext/retext-9999.ebuild
96 +++ b/app-editors/retext/retext-9999.ebuild
97 @@ -1,14 +1,14 @@
98 # Copyright 1999-2022 Gentoo Authors
99 # Distributed under the terms of the GNU General Public License v2
100
101 -EAPI=7
102 +EAPI=8
103
104 # Please don't add pypy support before testing if it's actually supported. The
105 # old compat matrix is no longer accessible as of 2021-02-13 but stated back
106 # in 2020-07-05 that PyQt5 was explicitly not supported.
107 PYTHON_COMPAT=( python3_{8,9,10} )
108
109 -inherit distutils-r1 optfeature virtualx xdg-utils
110 +inherit distutils-r1 optfeature qmake-utils virtualx xdg
111
112 MY_PN="ReText"
113 MY_P="${MY_PN}-${PV/_/~}"
114 @@ -40,19 +40,28 @@ RDEPEND="
115 dev-python/PyQt5[dbus,gui,printsupport,widgets,${PYTHON_USEDEP}]
116 "
117 DEPEND="${RDEPEND}"
118 -BDEPEND="test? ( dev-python/PyQt5[testlib,${PYTHON_USEDEP}] )"
119 +BDEPEND="
120 + dev-qt/linguist-tools
121 + test? ( dev-python/PyQt5[testlib,${PYTHON_USEDEP}] )
122 +"
123 +
124 +distutils_enable_tests unittest
125 +
126 +pkg_setup() {
127 + # Needed for lrelease
128 + export PATH="$(qt5_get_bindir):${PATH}"
129 +}
130
131 src_test() {
132 virtx distutils-r1_src_test
133 }
134
135 python_test() {
136 - esetup.py test
137 + eunittest || die
138 }
139
140 pkg_postinst() {
141 - xdg_desktop_database_update
142 - xdg_icon_cache_update
143 + xdg_pkg_postinst
144
145 optfeature "dictionary support" dev-python/pyenchant
146 # See https://bugs.gentoo.org/772197.
147 @@ -63,8 +72,3 @@ pkg_postinst() {
148 einfo "For more details take a look at:"
149 einfo "https://github.com/mitya57/python-markdown-math#math-delimiters"
150 }
151 -
152 -pkg_postrm() {
153 - xdg_desktop_database_update
154 - xdg_icon_cache_update
155 -}