1 |
commit: f813fa69cc167dccad6887afd383beea6d636c72 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 2 07:24:10 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 2 07:37:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f813fa69 |
7 |
|
8 |
dev-python/Babel: Bump to 2.11.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/Babel/Babel-2.11.0.ebuild | 62 ++++++++++++++++++++++++++++++++++++ |
13 |
dev-python/Babel/Manifest | 1 + |
14 |
2 files changed, 63 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/Babel/Babel-2.11.0.ebuild b/dev-python/Babel/Babel-2.11.0.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..02e77dc3bc66 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/Babel/Babel-2.11.0.ebuild |
21 |
@@ -0,0 +1,62 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+DISTUTILS_USE_PEP517=setuptools |
28 |
+PYTHON_COMPAT=( pypy3 python3_{8..11} ) |
29 |
+PYTHON_REQ_USE="threads(+)" |
30 |
+ |
31 |
+inherit distutils-r1 |
32 |
+ |
33 |
+# see scripts/download_import_cldr.py |
34 |
+CLDR_PV=41.0 |
35 |
+DESCRIPTION="Collection of tools for internationalizing Python applications" |
36 |
+HOMEPAGE=" |
37 |
+ https://babel.pocoo.org/ |
38 |
+ https://pypi.org/project/Babel/ |
39 |
+ https://github.com/python-babel/babel/ |
40 |
+" |
41 |
+SRC_URI=" |
42 |
+ mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
43 |
+ https://unicode.org/Public/cldr/${CLDR_PV%.*}/cldr-common-${CLDR_PV}.zip |
44 |
+" |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
52 |
+ $(python_gen_cond_dep ' |
53 |
+ dev-python/backports-zoneinfo[${PYTHON_USEDEP}] |
54 |
+ ' 3.8) |
55 |
+" |
56 |
+# RDEPEND in BDEPEND for import_cldr.py usage, bug #852158 |
57 |
+BDEPEND=" |
58 |
+ app-arch/unzip |
59 |
+ ${RDEPEND} |
60 |
+ test? ( |
61 |
+ dev-python/freezegun[${PYTHON_USEDEP}] |
62 |
+ ) |
63 |
+" |
64 |
+ |
65 |
+distutils_enable_sphinx docs |
66 |
+distutils_enable_tests pytest |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ rm babel/locale-data/*.dat || die |
70 |
+ rm babel/global.dat || die |
71 |
+ distutils-r1_src_prepare |
72 |
+} |
73 |
+ |
74 |
+python_configure() { |
75 |
+ if [[ ! -f babel/global.dat ]]; then |
76 |
+ "${EPYTHON}" scripts/import_cldr.py "${WORKDIR}"/common || die |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ local -x TZ=UTC |
82 |
+ epytest |
83 |
+} |
84 |
|
85 |
diff --git a/dev-python/Babel/Manifest b/dev-python/Babel/Manifest |
86 |
index ca0439ebbaa5..80aea76c8015 100644 |
87 |
--- a/dev-python/Babel/Manifest |
88 |
+++ b/dev-python/Babel/Manifest |
89 |
@@ -1,2 +1,3 @@ |
90 |
DIST Babel-2.10.3.tar.gz 9344140 BLAKE2B c21d1e33160de2c98ac26b6ac83102a6249cbaf4b4860cd86e19b461ee66fd815a2972fc3652b411e2030b201bf32db77144fde91efc4e9e6ba51a580cad93b7 SHA512 72a5759d2cfa239df56f3d2809b23367b9691e21de92535b30f9b3455d253682f6c18ca919f3fb039deed2663db9276307f6343cbbab56fca96ff1ac9c214fa7 |
91 |
+DIST Babel-2.11.0.tar.gz 9346097 BLAKE2B 99ae97e4dc16e1757ae6f054f9f346c6728d087bbfba33786d59211ac4b6c12bf861c79ac7c12a3efd89539220126ea1ea9a3578a9008daaa464aed315102b60 SHA512 526368dc5e44f2d93c52f2fcb544130eea6c6b7c78325bd56c6d9a6706890a4cd9daa1498d639aab65059801d87977da626e64585083c58c4b328001991eea0b |
92 |
DIST cldr-common-41.0.zip 29364494 BLAKE2B 1960e860017c3e5f31d935d66a1ff551720975dca0af459adc72b8dc54100938fbd2d2ef00eb457f3fd04d4f1e90a4783229c350b125029dcda5c1e6903f9a54 SHA512 c64f3338e292962817b043dd11e9c47f533c9b70d432f83e80654e20f4937c72b37e66a60485df43f734b1ff94ebf0452547a063076917889303c9653b4d6ce5 |