# -*- 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
PortGroup           github 1.0

github.setup        drufat triangle 20160203 v

name                py-triangle

categories-append   science math

platforms           darwin
supported_archs     noarch
# See https://github.com/macports/macports-ports/pull/45, the triangle source
# code shipped with py-triangle has a non-free license.
license             LGPL-3 Noncommercial Restrictive
maintainers         {fusion.gat.com:smithsp @smithsp} openmaintainer
description         Python binding to the triangle library
long_description    \
    Documentation at http://dzhelil.info/triangle/index.html

distname            triangle-${version}
checksums           md5     ef7e121d51a8dc2bd5163a0db11b2b16 \
                    rmd160  4aa893ccaf47db733d11bb87b2bd5793e2e8a987 \
                    sha256  419fb6d773e6c187a3b850cfd74970dfd31804a5c9281207fd4198384fb1b27a

python.versions     27 35 36

if {$subport ne $name} {
    depends_lib-append   port:triangle
    depends_build-append port:py${python.version}-setuptools
    depends_build-append port:py${python.version}-cython
    livecheck.type       none
}
