1 |
commit: e3fe91b5e3c1ecb5b52838189b966d093cb910f3 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 29 20:09:24 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 20:43:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3fe91b5 |
7 |
|
8 |
dev-python/polygon: Switch to PEP 517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/polygon/polygon-3.0.7-r1.ebuild | 45 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 45 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/polygon/polygon-3.0.7-r1.ebuild b/dev-python/polygon/polygon-3.0.7-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..abdaae630441 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/polygon/polygon-3.0.7-r1.ebuild |
20 |
@@ -0,0 +1,45 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..9} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Python package to handle polygonal shapes in 2D" |
32 |
+HOMEPAGE="https://www.j-raedler.de/projects/polygon/" |
33 |
+SRC_URI="https://www.bitbucket.org/jraedler/${PN}3/downloads/Polygon3-${PV}.zip" |
34 |
+S="${WORKDIR}/Polygon3-${PV}" |
35 |
+ |
36 |
+LICENSE="LGPL-2" |
37 |
+SLOT="3" |
38 |
+KEYWORDS="~amd64 ~ppc ~x86" |
39 |
+IUSE="examples" |
40 |
+ |
41 |
+BDEPEND="app-arch/unzip" |
42 |
+ |
43 |
+DOCS=( doc/{Polygon.txt,Polygon.pdf} ) |
44 |
+ |
45 |
+python_prepare_all() { |
46 |
+ if use examples; then |
47 |
+ mkdir examples || die |
48 |
+ mv doc/{Examples.py,testpoly.gpf} examples || die |
49 |
+ fi |
50 |
+ |
51 |
+ distutils-r1_python_prepare_all |
52 |
+} |
53 |
+ |
54 |
+python_test() { |
55 |
+ "${EPYTHON}" test/Test.py -v || die "Tests failed under ${EPYTHON}" |
56 |
+} |
57 |
+ |
58 |
+python_install_all() { |
59 |
+ if use examples; then |
60 |
+ dodoc -r examples |
61 |
+ docompress -x /usr/share/doc/${PF}/examples |
62 |
+ fi |
63 |
+ |
64 |
+ distutils-r1_python_install_all |
65 |
+} |