1 |
commit: 2cc1446aab8d066a8a12293482bacf7c445a98bb |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 2 07:17:04 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 2 08:51:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cc1446a |
7 |
|
8 |
dev-python/translate-toolkit: Bump to 3.3.4 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/translate-toolkit/Manifest | 1 + |
13 |
.../translate-toolkit-3.3.4.ebuild | 91 ++++++++++++++++++++++ |
14 |
2 files changed, 92 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/translate-toolkit/Manifest b/dev-python/translate-toolkit/Manifest |
17 |
index 3e0cdf4eadf..1b7203da734 100644 |
18 |
--- a/dev-python/translate-toolkit/Manifest |
19 |
+++ b/dev-python/translate-toolkit/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST translate-toolkit-3.3.2.tar.gz 6123347 BLAKE2B 9bf5f2c84d15043d25744b3bb63526177748c7c38425bd73ad34dcf3b4051c11a3ce28ccaf5c907b6ced27d1fe9ecb06cfde46481a609df64adfedec83b91680 SHA512 53baf7c1203c27335201fbf339e2747d7b22696c219e6911c191b3c89cf6d1c0d84624ffa8c4c687e45fad229d3cb09f52d15d1d80dd914ccc8e2fff34a601be |
22 |
DIST translate-toolkit-3.3.3.tar.gz 5903525 BLAKE2B a21c5d89c808615ff2f3f718e732ce5d5591a9d8a997950ae1066655cc3e4382065f75e7a86f8e37bdd0e146283f9bd941ff20479cb1af635f393e0e7f8fc196 SHA512 41964dc26dfbb983b1c2e4cbb0e9d8eb2a035369a94ef872f7703080b5ca0280a9364916a1e1256cd358b263bc72198e767462cc9065b54556fc481d1b85a836 |
23 |
+DIST translate-toolkit-3.3.4.tar.gz 6060105 BLAKE2B 01f8e718a4a60d0f4d439be14b30b2e3f040045630d6f6254ad291a2558d59718521bfb79761d20933f7bb1abd2229ccce67fd71ccd54f6e43dffa7e7ecedd8c SHA512 6bfc4387aa600610fa2a9e7e58368924768ddcc8eb2a697ef02c59682e1e1304b7096f48a1e6e38cd47c68c644dff01d35ffc988d378dbf4833b41d1c5432c05 |
24 |
|
25 |
diff --git a/dev-python/translate-toolkit/translate-toolkit-3.3.4.ebuild b/dev-python/translate-toolkit/translate-toolkit-3.3.4.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..b209da46f3f |
28 |
--- /dev/null |
29 |
+++ b/dev-python/translate-toolkit/translate-toolkit-3.3.4.ebuild |
30 |
@@ -0,0 +1,91 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{7..9} ) |
37 |
+PYTHON_REQ_USE="sqlite" |
38 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Toolkit to convert between many translation formats" |
42 |
+HOMEPAGE="https://github.com/translate/translate" |
43 |
+SRC_URI="https://github.com/translate/translate/releases/download/${PV}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
48 |
+IUSE="+html +ical +ini +subtitles +yaml" |
49 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
50 |
+ |
51 |
+BDEPEND=">=dev-python/six-1.11.0[${PYTHON_USEDEP}]" |
52 |
+RDEPEND="${BDEPEND} |
53 |
+ !dev-python/pydiff |
54 |
+ app-text/iso-codes |
55 |
+ >=dev-python/chardet-3.0.4[${PYTHON_USEDEP}] |
56 |
+ dev-python/cheroot[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/lxml-4.3.1[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/pycountry-19.8.18[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/python-levenshtein-0.12.0[${PYTHON_USEDEP}] |
60 |
+ dev-python/ruamel-yaml[${PYTHON_USEDEP}] |
61 |
+ sys-devel/gettext |
62 |
+ html? ( dev-python/utidylib[${PYTHON_USEDEP}] ) |
63 |
+ ical? ( dev-python/vobject[${PYTHON_USEDEP}] ) |
64 |
+ ini? ( >=dev-python/iniparse-0.5[${PYTHON_USEDEP}] ) |
65 |
+ subtitles? ( media-video/gaupol[${PYTHON_USEDEP}] ) |
66 |
+ yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] ) |
67 |
+" |
68 |
+BDEPEND+=" |
69 |
+ test? ( dev-python/phply[${PYTHON_USEDEP}] )" |
70 |
+ |
71 |
+distutils_enable_sphinx docs \ |
72 |
+ dev-python/sphinx-bootstrap-theme |
73 |
+distutils_enable_tests pytest |
74 |
+ |
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}"/translate-toolkit-3.3.0-no-install-docs.patch |
77 |
+) |
78 |
+ |
79 |
+python_test() { |
80 |
+ local deselect=( |
81 |
+ # Fails with network-sandbox (and even with it off but w/ softer fail) |
82 |
+ --deselect 'tests/xliff_conformance/test_xliff_conformance.py::test_open_office_to_xliff' |
83 |
+ --deselect 'tests/xliff_conformance/test_xliff_conformance.py::test_po_to_xliff' |
84 |
+ ) |
85 |
+ |
86 |
+ if ! use ini; then |
87 |
+ deselect+=( |
88 |
+ --ignore translate/convert/test_ini2po.py |
89 |
+ --ignore translate/convert/test_po2ini.py |
90 |
+ ) |
91 |
+ fi |
92 |
+ |
93 |
+ if ! use subtitles; then |
94 |
+ deselect+=( |
95 |
+ --ignore translate/storage/test_subtitles.py |
96 |
+ ) |
97 |
+ fi |
98 |
+ |
99 |
+ # translate/storage/test_mo.py needs 'pocompile' |
100 |
+ distutils_install_for_testing |
101 |
+ epytest "${deselect[@]}" |
102 |
+} |
103 |
+ |
104 |
+python_install_all() { |
105 |
+ distutils-r1_python_install_all |
106 |
+ |
107 |
+ if ! use html; then |
108 |
+ rm "${ED}"/usr/bin/{html2po,po2html} || die |
109 |
+ fi |
110 |
+ if ! use ical; then |
111 |
+ rm "${ED}"/usr/bin/{ical2po,po2ical} || die |
112 |
+ fi |
113 |
+ if ! use ini; then |
114 |
+ rm "${ED}"/usr/bin/{ini2po,po2ini} || die |
115 |
+ fi |
116 |
+ if ! use subtitles; then |
117 |
+ rm "${ED}"/usr/bin/{sub2po,po2sub} || die |
118 |
+ fi |
119 |
+ |
120 |
+ python_optimize |
121 |
+} |