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: dev-python/zope-i18nmessageid/
Date: Mon, 07 Nov 2022 05:54:40
Message-Id: 1667799406.0f247019ad9bbe3e96e83e8df46c07b485e09d8e.mgorny@gentoo
1 commit: 0f247019ad9bbe3e96e83e8df46c07b485e09d8e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 7 05:36:46 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 7 05:36:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f247019
7
8 dev-python/zope-i18nmessageid: Bump to 5.1.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/zope-i18nmessageid/Manifest | 1 +
13 .../zope-i18nmessageid-5.1.0.ebuild | 49 ++++++++++++++++++++++
14 2 files changed, 50 insertions(+)
15
16 diff --git a/dev-python/zope-i18nmessageid/Manifest b/dev-python/zope-i18nmessageid/Manifest
17 index 0a3cb3d2c71e..0825c842d99f 100644
18 --- a/dev-python/zope-i18nmessageid/Manifest
19 +++ b/dev-python/zope-i18nmessageid/Manifest
20 @@ -1 +1,2 @@
21 +DIST zope-i18nmessageid-5.1.0.gh.tar.gz 28278 BLAKE2B db376b9915b16b17f290ba3e58492bdc9f89e6ef066b981967f8f39a9734e9ff0d8338099450bdaa362f6404b589452070cf7bf036a643852df7a0abd886a6bc SHA512 4a60c37d10b0593cadc7885ef92ea106b8bf1c89df20388ec657859f95fe19d5c282bf8cd86c6e04ec267b4c826226f0f43e4f1d11883c29dbf4b024075e74dc
22 DIST zope.i18nmessageid-5.0.1.tar.gz 28217 BLAKE2B 67e31a18daa8c2d5ccc16b173d37188fc6154cc75b1fd7cd908d6ee3ebeca0092316546587103f01aa6b39d074aaa207bec86401c4d50f664efba179191c9719 SHA512 31af16581d59ce1b7d5d8fd86c715c56b84aee9a7a0756bb2b7ceac6db30903acc5fdff85d844c0250c0a112cb45ab03be2f56d3d4ca6165272ff76c09d40d8c
23
24 diff --git a/dev-python/zope-i18nmessageid/zope-i18nmessageid-5.1.0.ebuild b/dev-python/zope-i18nmessageid/zope-i18nmessageid-5.1.0.ebuild
25 new file mode 100644
26 index 000000000000..9f8fe11f4a63
27 --- /dev/null
28 +++ b/dev-python/zope-i18nmessageid/zope-i18nmessageid-5.1.0.ebuild
29 @@ -0,0 +1,49 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +MY_P=${P/-/.}
41 +DESCRIPTION="Zope support for i18nmessageid (tagging source of i18n strings)"
42 +HOMEPAGE="
43 + https://pypi.org/project/zope.i18nmessageid/
44 + https://github.com/zopefoundation/zope.i18nmessageid/
45 +"
46 +SRC_URI="
47 + https://github.com/zopefoundation/zope.i18nmessageid/archive/${PV}.tar.gz
48 + -> ${P}.gh.tar.gz
49 +"
50 +S=${WORKDIR}/${MY_P}
51 +
52 +LICENSE="ZPL"
53 +SLOT="0"
54 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
55 +
56 +RDEPEND="
57 + dev-python/six[${PYTHON_USEDEP}]
58 + !dev-python/namespace-zope
59 +"
60 +
61 +distutils_enable_tests unittest
62 +
63 +src_prepare() {
64 + # strip rdep specific to namespaces
65 + sed -i -e "s:'setuptools',::" setup.py || die
66 + distutils-r1_src_prepare
67 +}
68 +
69 +python_compile() {
70 + distutils-r1_python_compile
71 + find "${BUILD_DIR}" -name '*.pth' -delete || die
72 +}
73 +
74 +python_test() {
75 + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
76 + distutils_write_namespace zope
77 + eunittest
78 +}