# -*- 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-dpkt
version             1.9.8
revision            0

categories-append   net
license             BSD
maintainers         nomaintainer
description         python packet creation and parsing library
long_description    dpkt provides fast, simple packet creation and \
                    parsing for python programs, with definitions for the \
                    basic TCP/IP protocols.
platforms           {darwin any}
supported_archs     noarch

homepage            https://kbandla.github.io/dpkt/

checksums           md5 0f16de3c0b8caa6ec2261210f08c7b8b \
                    rmd160 d3ff475190bdf029fc694e61b1a176843d0d2521 \
                    sha256 43f8686e455da5052835fd1eda2689d51de3670aac9799b1b00cfd203927ee45

python.versions     310 311

if {$subport ne $name} {
    post-destroot {
        xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} README.md LICENSE \
            ${destroot}${prefix}/share/doc/${subport}
        copy {*}[glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/${subport}/
    }
}
