# -*- 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-rrdtool
version             0.1.15
revision            0

license             LGPL-2.1+
maintainers         nomaintainer

description         Python bindings for rrdtool
long_description    {*}${description}

homepage            https://github.com/commx/python-rrdtool

checksums           rmd160  4b4c68b39a5260df851c8b322696b328c3fc8378 \
                    sha256  951d2c23121dbe94859ea46bc9ed54e908e2f2ee60eff3c505db0778a3212732 \
                    size    21864

python.versions     27

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    depends_lib-append \
                    port:rrdtool

    post-patch {
        if {${prefix} ne "/usr/local"} {
            reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/setup.py
        }
    }
}
