# -*- 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-ode
version             1.2.1
revision            0
categories-append   games graphics
license             {LGPL-2.1+ BSD}
maintainers         nomaintainer
description         Python bindings for The Open Dynamics Engine
long_description    ${description}, an open-source physics engine.
platforms           darwin
homepage            http://pyode.sourceforge.net/
master_sites        pypi:P/PyODE
distname            PyODE-${version}

checksums           rmd160  ae23ba127a472407aa8fde7e33c5115f3efbacbe \
                    sha256  29062581255e1bf3cd91e5630225f1e5bc3e7e9446f94a325f9467cb9b08be67 \
                    size    233437

python.versions     27
if {${name} ne ${subport}} {
    depends_lib-append  port:ode

    patchfiles      patch-setup-py.diff
    post-patch {
        reinplace   "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
    }
    livecheck.type  none
} else {
    livecheck.name  PyODE
}
