# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-polygon
python.rootname     Polygon3
version             3.0.9.1
revision            0
categories-append   devel math
platforms           darwin
license             LGPL Noncommercial

python.versions     310 311 312

maintainers         {stromnov @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            https://www.j-raedler.de/projects/polygon

checksums           rmd160  49ee566d6abc670d9771f5ca01fc22997ce58f38 \
                    sha256  2ddf8d06975f728d5b40786136c82e5b9d38a846bce236b7e6587bbd6a5e9b49 \
                    size    39121

if {${name} ne ${subport}} {
    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
    }
}
