# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup python 1.0 name py-polygon version 3.0.8 revision 0 categories-append devel math platforms darwin license LGPL Noncommercial python.versions 27 34 35 maintainers stromnov openmaintainer description Python bindings for General Polygon Clipping Library long_description \ Polygon is a python package that simplifies the handling of polygons \ in 2D. It contains Python bindings for gpc, the excellent General \ Polygon Clipping Library by Alan Murta and some extensions written \ in C and pure Python. homepage http://www.j-raedler.de/projects/polygon master_sites pypi:P/Polygon3 distname Polygon3-${version} checksums rmd160 b3604e60d7f9b27eee5b62522568be59e3011c3f \ sha256 382aecaf1b550134aa71cc9c0f880a244e0ac5273e05bf898f5a6cde5bff9e2c if {${name} ne ${subport}} { if {${python.version} < 30} { version 2.0.8 revision 0 master_sites pypi:P/Polygon2 distname Polygon2-${version} checksums rmd160 59352a3a4c1c1ba556282864b9d967479ebe9d18 \ sha256 4ae3b027483daf1e967a96bceca18481d57cfa30480c579c3bac32f5c3fe9c84 } patchfiles-append patch-setup.py.diff variant numpy description {Build with NumPy support} { depends_lib-append port:py${python.version}-numpy patchfiles-delete patch-setup.py.diff } post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} xinstall -m 644 -W ${worksrcpath}/doc \ Examples.py Polygon.txt Polygon.pdf testpoly.gpf \ ${destroot}${prefix}/share/doc/${subport} } livecheck.type none } else { livecheck.type pypi livecheck.name Polygon3 }