1 |
commit: 40dc1346d5d1e0a354c17e4608e22328f3bf7006 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 5 00:05:39 2020 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 5 00:18:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40dc1346 |
7 |
|
8 |
media-video/gaupol: remove old |
9 |
|
10 |
Package-Manager: Portage-3.0.3, Repoman-2.3.23 |
11 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
12 |
|
13 |
media-video/gaupol/Manifest | 1 - |
14 |
.../gaupol/files/gaupol-1.7-fix-tests.patch | 132 --------------------- |
15 |
media-video/gaupol/gaupol-1.7.ebuild | 65 ---------- |
16 |
3 files changed, 198 deletions(-) |
17 |
|
18 |
diff --git a/media-video/gaupol/Manifest b/media-video/gaupol/Manifest |
19 |
index 697e55adb20..20bd300ebc3 100644 |
20 |
--- a/media-video/gaupol/Manifest |
21 |
+++ b/media-video/gaupol/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST gaupol-1.7.tar.gz 524231 BLAKE2B 5f1c07a6d633fba53361ad4d9e1cdbc3236614a444bb387378c9e1ec6b358796eb7477168caace4b6101e0e6e0b83f10a2d3052acb5e0b0ab69e75f2b24db7fa SHA512 b0fa7f5216f47075aefddd58ab3aa1186265b5d70f8b4e7f7e252a1cc05bd1c4838c2af8efb4da39c0196f63dc3a64ff2269a458e2d95072606b59b4b8cada1b |
24 |
DIST gaupol-1.8.tar.gz 558627 BLAKE2B a7243310b97fe7187311585762faaff512364ca043630eb43c1ee99c55fa5400e14698e391b410b67f70f1bc7a741adb0737868d7b40c868bb4c6badacd14fb1 SHA512 a6b65316b5750a4d636b39b75393b0b2f2c44d978f1fc8cc3bd2cd2d2bcf9ba68d0161afb41bdca5b381ec39e5a2e06440f4f4676f344019966b297c4112e691 |
25 |
|
26 |
diff --git a/media-video/gaupol/files/gaupol-1.7-fix-tests.patch b/media-video/gaupol/files/gaupol-1.7-fix-tests.patch |
27 |
deleted file mode 100644 |
28 |
index d8a90669de9..00000000000 |
29 |
--- a/media-video/gaupol/files/gaupol-1.7-fix-tests.patch |
30 |
+++ /dev/null |
31 |
@@ -1,132 +0,0 @@ |
32 |
-commit 7778eda0e6e4280fb43aa78721561e43d3e866eb |
33 |
-Author: Osmo Salomaa <otsaloma@×××.fi> |
34 |
-Date: Sun Aug 4 21:19:20 2019 +0300 |
35 |
- |
36 |
- Accept any en* language for spell-check tests |
37 |
- |
38 |
-diff --git a/aeidon/agents/test/test_text.py b/aeidon/agents/test/test_text.py |
39 |
-index bf6c4ac1..a2261595 100644 |
40 |
---- a/aeidon/agents/test/test_text.py |
41 |
-+++ b/aeidon/agents/test/test_text.py |
42 |
-@@ -78,14 +78,16 @@ class TestTextAgent(aeidon.TestCase): |
43 |
- for subtitle in self.project.subtitles: |
44 |
- subtitle.main_text = subtitle.main_text.replace("a", " a") |
45 |
- subtitle.main_text = subtitle.main_text.replace("e", "e ") |
46 |
-+ language = self.get_spell_check_language("en") |
47 |
- self.project.spell_check_join_words(indices=None, |
48 |
- doc=aeidon.documents.MAIN, |
49 |
-- language="en") |
50 |
-+ language=language) |
51 |
- |
52 |
- def test_spell_check_split_words(self): |
53 |
- for subtitle in self.project.subtitles: |
54 |
- subtitle.main_text = subtitle.main_text.replace("s ", "s") |
55 |
- subtitle.main_text = subtitle.main_text.replace("y ", "y") |
56 |
-+ language = self.get_spell_check_language("en") |
57 |
- self.project.spell_check_split_words(indices=None, |
58 |
- doc=aeidon.documents.MAIN, |
59 |
-- language="en") |
60 |
-+ language=language) |
61 |
-diff --git a/aeidon/test/test_spell.py b/aeidon/test/test_spell.py |
62 |
-index 66369e0e..ff94f150 100644 |
63 |
---- a/aeidon/test/test_spell.py |
64 |
-+++ b/aeidon/test/test_spell.py |
65 |
-@@ -21,7 +21,8 @@ import aeidon |
66 |
- class TestSpellChecker(aeidon.TestCase): |
67 |
- |
68 |
- def setup_method(self, method): |
69 |
-- self.checker = aeidon.SpellChecker("en") |
70 |
-+ language = self.get_spell_check_language("en") |
71 |
-+ self.checker = aeidon.SpellChecker(language) |
72 |
- |
73 |
- def test_add_replacement(self): |
74 |
- self.checker.add_replacement("abc", "xyz") |
75 |
-@@ -50,7 +51,8 @@ class TestSpellChecker(aeidon.TestCase): |
76 |
- class TestSpellCheckNavigator(aeidon.TestCase): |
77 |
- |
78 |
- def setup_method(self, method): |
79 |
-- self.navigator = aeidon.SpellCheckNavigator("en") |
80 |
-+ language = language = self.get_spell_check_language("en") |
81 |
-+ self.navigator = aeidon.SpellCheckNavigator(language) |
82 |
- self.navigator.text = "She knows the fighting\ntechniques of Panzer Kunst." |
83 |
- |
84 |
- def test_ignore(self): |
85 |
-diff --git a/aeidon/unittest.py b/aeidon/unittest.py |
86 |
-index 8c384806..d80c5a22 100644 |
87 |
---- a/aeidon/unittest.py |
88 |
-+++ b/aeidon/unittest.py |
89 |
-@@ -50,6 +50,15 @@ class TestCase: |
90 |
- with open(path, "r", encoding="ascii") as f: |
91 |
- return f.read().strip() |
92 |
- |
93 |
-+ def get_spell_check_language(self, language): |
94 |
-+ """Return spell-check language to use in unit tests.""" |
95 |
-+ # Allow any close-enough variant as different systems will have |
96 |
-+ # different spell-check engines and dictionaries installed. |
97 |
-+ for candidate in aeidon.SpellChecker.list_languages(): |
98 |
-+ if candidate.startswith(language): |
99 |
-+ return candidate |
100 |
-+ raise Exception("Spell-check dictionary {}* not found".format(language)) |
101 |
-+ |
102 |
- def new_microdvd_file(self): |
103 |
- """Return path to a new temporary MicroDVD file.""" |
104 |
- return self.new_temp_file(aeidon.formats.MICRODVD) |
105 |
-diff --git a/gaupol/agents/test/test_tools.py b/gaupol/agents/test/test_tools.py |
106 |
-index a9fbdf8f..e1547476 100644 |
107 |
---- a/gaupol/agents/test/test_tools.py |
108 |
-+++ b/gaupol/agents/test/test_tools.py |
109 |
-@@ -36,7 +36,8 @@ class TestToolsAgent(gaupol.TestCase): |
110 |
- |
111 |
- @patch("gaupol.util.flash_dialog", OK) |
112 |
- def test__on_check_spelling_activate(self): |
113 |
-- gaupol.conf.spell_check.language = "en" |
114 |
-+ language = self.get_spell_check_language("en") |
115 |
-+ gaupol.conf.spell_check.language = language |
116 |
- self.application.get_action("check-spelling").activate() |
117 |
- |
118 |
- @patch("gaupol.util.flash_dialog", OK) |
119 |
-diff --git a/gaupol/dialogs/test/test_spell_check.py b/gaupol/dialogs/test/test_spell_check.py |
120 |
-index cbe7d61a..d74860fb 100644 |
121 |
---- a/gaupol/dialogs/test/test_spell_check.py |
122 |
-+++ b/gaupol/dialogs/test/test_spell_check.py |
123 |
-@@ -32,7 +32,8 @@ class TestSpellCheckDialog(gaupol.TestCase): |
124 |
- aeidon.SpellChecker.add_to_personal = aeidon.SpellChecker.add_to_session |
125 |
- aeidon.SpellChecker.read_replacements = lambda *args: None |
126 |
- aeidon.SpellChecker.write_replacements = lambda *args: None |
127 |
-- gaupol.conf.spell_check.language = "en" |
128 |
-+ language = self.get_spell_check_language("en") |
129 |
-+ gaupol.conf.spell_check.language = language |
130 |
- self.application = self.new_application() |
131 |
- for page in self.application.pages: |
132 |
- for subtitle in page.project.subtitles: |
133 |
-diff --git a/gaupol/test/test_spell.py b/gaupol/test/test_spell.py |
134 |
-index 72b74e33..5018abab 100644 |
135 |
---- a/gaupol/test/test_spell.py |
136 |
-+++ b/gaupol/test/test_spell.py |
137 |
-@@ -37,4 +37,5 @@ class TestSpellChecker(aeidon.TestCase): |
138 |
- Gtk.main() |
139 |
- |
140 |
- def setup_method(self, method): |
141 |
-- self.checker = gaupol.SpellChecker("en") |
142 |
-+ language = self.get_spell_check_language("en") |
143 |
-+ self.checker = gaupol.SpellChecker(language) |
144 |
- |
145 |
-commit 340b3bf6bb7cfdf5be9e973f25f5a616ef504702 |
146 |
-Author: Osmo Salomaa <otsaloma@×××.fi> |
147 |
-Date: Mon Aug 5 02:31:32 2019 +0300 |
148 |
- |
149 |
- Set spell-check language for assistant test |
150 |
- |
151 |
-diff --git a/gaupol/test/test_assistants.py b/gaupol/test/test_assistants.py |
152 |
-index 6969b273..4d6dfdcb 100644 |
153 |
---- a/gaupol/test/test_assistants.py |
154 |
-+++ b/gaupol/test/test_assistants.py |
155 |
-@@ -109,6 +109,8 @@ class TestJoinSplitWordsPage(_TestBuilderPage): |
156 |
- |
157 |
- @patch("gaupol.util.flash_dialog", OK) |
158 |
- def test_correct_texts(self): |
159 |
-+ language = self.get_spell_check_language("en") |
160 |
-+ gaupol.conf.spell_check.language = language |
161 |
- self.page.correct_texts(self.project, |
162 |
- None, |
163 |
- aeidon.documents.MAIN) |
164 |
|
165 |
diff --git a/media-video/gaupol/gaupol-1.7.ebuild b/media-video/gaupol/gaupol-1.7.ebuild |
166 |
deleted file mode 100644 |
167 |
index 25b70f293bf..00000000000 |
168 |
--- a/media-video/gaupol/gaupol-1.7.ebuild |
169 |
+++ /dev/null |
170 |
@@ -1,65 +0,0 @@ |
171 |
-# Copyright 1999-2020 Gentoo Authors |
172 |
-# Distributed under the terms of the GNU General Public License v2 |
173 |
- |
174 |
-EAPI=7 |
175 |
- |
176 |
-PYTHON_COMPAT=( python3_{6,7} ) |
177 |
- |
178 |
-inherit distutils-r1 virtualx xdg-utils |
179 |
- |
180 |
-DESCRIPTION="A subtitle editor for text-based subtitles" |
181 |
-HOMEPAGE="https://otsaloma.io/gaupol/" |
182 |
-SRC_URI="https://github.com/otsaloma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
183 |
- |
184 |
-LICENSE="GPL-2+" |
185 |
-SLOT="0" |
186 |
-KEYWORDS="amd64 arm64 x86" |
187 |
-IUSE="spell test" |
188 |
-RESTRICT="!test? ( test )" |
189 |
- |
190 |
-RDEPEND=" |
191 |
- app-text/iso-codes |
192 |
- dev-python/chardet[${PYTHON_USEDEP}] |
193 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
194 |
- x11-libs/gtk+:3[introspection] |
195 |
- spell? ( app-text/gspell[introspection] ) |
196 |
-" |
197 |
-DEPEND=" |
198 |
- sys-devel/gettext |
199 |
- test? ( |
200 |
- ${RDEPEND} |
201 |
- app-dicts/myspell-en |
202 |
- app-text/enchant[hunspell] |
203 |
- app-text/gspell[introspection] |
204 |
- dev-python/pytest[${PYTHON_USEDEP}] |
205 |
- ) |
206 |
-" |
207 |
- |
208 |
-DOCS=( AUTHORS.md NEWS.md TODO.md README.md README.aeidon.md ) |
209 |
- |
210 |
-PATCHES=( "${FILESDIR}/${P}-fix-tests.patch" ) |
211 |
- |
212 |
-python_test() { |
213 |
- virtx pytest -vv |
214 |
-} |
215 |
- |
216 |
-pkg_postinst() { |
217 |
- xdg_desktop_database_update |
218 |
- xdg_icon_cache_update |
219 |
- if [[ -z ${REPLACING_VERSIONS} ]]; then |
220 |
- elog "Previewing support requires MPV, MPlayer or VLC." |
221 |
- if use spell; then |
222 |
- elog "" |
223 |
- elog "Spell-checking requires a dictionary, any of app-dicts/myspell-*" |
224 |
- elog "or app-text/aspell with the appropriate L10N variable." |
225 |
- elog "" |
226 |
- elog "Additionally, make sure that app-text/enchant has the correct flags enabled:" |
227 |
- elog "USE=hunspell for myspell dictionaries and USE=aspell for aspell dictionaries." |
228 |
- fi |
229 |
- fi |
230 |
-} |
231 |
- |
232 |
-pkg_postrm() { |
233 |
- xdg_desktop_database_update |
234 |
- xdg_icon_cache_update |
235 |
-} |