1 |
commit: edf4715e1799822f1b2df3625c54c2d23f816930 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 2 07:20:07 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 2 07:37:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edf4715e |
7 |
|
8 |
dev-python/python-cstruct: Bump to 4.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/python-cstruct/Manifest | 1 + |
13 |
.../python-cstruct/python-cstruct-4.0.ebuild | 33 ++++++++++++++++++++++ |
14 |
2 files changed, 34 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/python-cstruct/Manifest b/dev-python/python-cstruct/Manifest |
17 |
index 0caaecb913bc..fe4e952644c2 100644 |
18 |
--- a/dev-python/python-cstruct/Manifest |
19 |
+++ b/dev-python/python-cstruct/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST python-cstruct-3.3.gh.tar.gz 27470 BLAKE2B 0403af7085622e26d5faf973bbfd0c7e35f5c51f0597abf079080800055058809a07a795bde37b796809ef13b6e1d030f36a42e45a7f4643202e37fe79df4730 SHA512 fd5d7d42f5458d37a44d5e792b56e5c4f3338ed656b248ec5f4f48e4ecb5b6be7e3561c697d67ce0c6a18fbef62ba4945e287754cb2d6a97fefd65c563d65774 |
22 |
+DIST python-cstruct-4.0.gh.tar.gz 28370 BLAKE2B 48f750849d332d03f1d6424a6c6f5146efacb6af05c82040dd7c39c701fbebb60dbc324db395dbd918ac5b677c63d541f00de871eb47c73b3f56e8aab08d8ff1 SHA512 e8c1345f06ca23bc19bbfad569b9822369eec8957eac504191dbd34f9c4e8197a4150e73d2ae3881b7e9fbf288c81cf320872aaefec8e8e80385e4ea473242c7 |
23 |
|
24 |
diff --git a/dev-python/python-cstruct/python-cstruct-4.0.ebuild b/dev-python/python-cstruct/python-cstruct-4.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..ac6eadb21a2a |
27 |
--- /dev/null |
28 |
+++ b/dev-python/python-cstruct/python-cstruct-4.0.ebuild |
29 |
@@ -0,0 +1,33 @@ |
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} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="C-style structs for Python" |
41 |
+HOMEPAGE=" |
42 |
+ https://github.com/andreax79/python-cstruct/ |
43 |
+ https://pypi.org/project/cstruct/ |
44 |
+" |
45 |
+SRC_URI=" |
46 |
+ https://github.com/andreax79/${PN}/archive/v${PV}.tar.gz |
47 |
+ -> ${P}.gh.tar.gz |
48 |
+" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~x86" |
53 |
+ |
54 |
+DOCS=( README.md ) |
55 |
+ |
56 |
+distutils_enable_tests pytest |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ distutils-r1_src_prepare |
60 |
+ |
61 |
+ sed -e "/find_packages(/s@exclude=\[@&'tests', @" -i setup.py || die |
62 |
+} |