1 |
commit: b61bde42a9fbddf36c4da4fc43b71f6f63e3ec4c |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 5 16:09:33 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 5 16:50:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b61bde42 |
7 |
|
8 |
dev-python/polygon: add 3.0.9, ebuild cleanup |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/polygon/Manifest | 1 + |
13 |
dev-python/polygon/polygon-3.0.9.ebuild | 48 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 49 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/polygon/Manifest b/dev-python/polygon/Manifest |
17 |
index 59f8efa98cc7..7f1bd9af2495 100644 |
18 |
--- a/dev-python/polygon/Manifest |
19 |
+++ b/dev-python/polygon/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST Polygon3-3.0.7.zip 76193 BLAKE2B 57ef62b6652400be057e8596f705e2112caef09208aafa7e46686f86367181dc078cbfc6ade99af22cce7fc0a76ec1de2995885ba4c11263444ca315029c38d7 SHA512 e30cd8e51ad69a2d76b61a7d92ead4ac352e729093546b965f649866fd9c6a860e3cdcd9fcd7f8cc9f8d7735ccd1128fb5af00b3de89e4efd7128e446a70b33b |
22 |
+DIST polygon-3.0.9.gh.tar.gz 76241 BLAKE2B cb670e595403a4a927c78bcba61fc7f28eaaae3dc16a36b105fda880f25134e187886579f7e986653f05fe3f6f2d552ac5b23c8be8ba61bcc0ce0fb733692882 SHA512 d6ce104df45666f5321cd3ef1582853b47b681a19238eb9772b7688333815ac4f5d9a5ab0aadc56301c10019e196efc6e6062e856f6ef8872d992ecd406f3b87 |
23 |
|
24 |
diff --git a/dev-python/polygon/polygon-3.0.9.ebuild b/dev-python/polygon/polygon-3.0.9.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..715b75f86713 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/polygon/polygon-3.0.9.ebuild |
29 |
@@ -0,0 +1,48 @@ |
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..10} ) |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+# this version is untagged in github, and pypi doesn't has tests |
40 |
+COMMIT=7b2091f77741fa1d94251979bc4a4f2676b4d2d1 |
41 |
+ |
42 |
+DESCRIPTION="Python package to handle polygonal shapes in 2D" |
43 |
+HOMEPAGE="https://www.j-raedler.de/projects/polygon/ |
44 |
+ https://github.com/jraedler/Polygon3" |
45 |
+SRC_URI=" |
46 |
+ https://github.com/jraedler/Polygon3/archive/${COMMIT}.tar.gz |
47 |
+ -> ${P}.gh.tar.gz" |
48 |
+S="${WORKDIR}/Polygon3-${COMMIT}" |
49 |
+ |
50 |
+LICENSE="LGPL-2" |
51 |
+SLOT="3" |
52 |
+KEYWORDS="~amd64 ~ppc ~x86" |
53 |
+IUSE="examples" |
54 |
+ |
55 |
+DOCS=( doc/{Polygon.txt,Polygon.pdf} ) |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ if use examples; then |
59 |
+ mkdir examples || die |
60 |
+ mv doc/{Examples.py,testpoly.gpf} examples || die |
61 |
+ fi |
62 |
+ |
63 |
+ distutils-r1_src_prepare |
64 |
+} |
65 |
+ |
66 |
+python_test() { |
67 |
+ "${EPYTHON}" test/Test.py -v || die "Tests failed under ${EPYTHON}" |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ if use examples; then |
72 |
+ dodoc -r examples |
73 |
+ docompress -x /usr/share/doc/${PF}/examples |
74 |
+ fi |
75 |
+ |
76 |
+ distutils-r1_src_install |
77 |
+} |