# -*- 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-snmp
python.rootname     pysnmp
version             4.4.12
revision            0

categories-append   net
platforms           {darwin any} freebsd
supported_archs     noarch
license             BSD
maintainers         {gmail.com:valyukov @valyukov} openmaintainer

description         SNMP library for Python
long_description    {*}${description}

homepage            http://snmplabs.com/pysnmp/

checksums           rmd160  63c6412d1d733b5d3775d345713baadb6765723a \
                    sha256  0c3dbef2f958caca96071fe5c19de43e9c1b0484ab02a0cf08b190bcee768ba9 \
                    size    442270

python.versions     39 310

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-asn1 \
                    port:py${python.version}-pycryptodome \
                    port:py${python.version}-smi

    post-destroot {
        file delete -force ${destroot}${prefix}/share/doc/${subport}
        file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${subport}
        file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
    }
}
