1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_6 )
9 DESCRIPTION="Python package to handle polygonal shapes in 2D"
10 HOMEPAGE="https://www.j-raedler.de/projects/polygon/"
11 SRC_URI="https://www.bitbucket.org/jraedler/${PN}3/downloads/Polygon3-${PV}.zip"
16 KEYWORDS="amd64 ppc x86"
18 DEPEND="app-arch/unzip"
20 S=${WORKDIR}/Polygon3-${PV}
22 DOCS=( doc/{Polygon.txt,Polygon.pdf} )
24 python_prepare_all() {
27 mv doc/{Examples.py,testpoly.gpf} examples || die
29 distutils-r1_python_prepare_all
33 ${PYTHON} test/Test.py || die "Tests failed under ${EPYTHON}"
36 python_install_all() {
37 use examples && local EXAMPLES=( examples/. )
38 distutils-r1_python_install_all