# -*- 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-identify
version             2.6.15
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         File identification library for Python
long_description    {*}${description}

homepage            https://github.com/pre-commit/identify

checksums           rmd160  b2bf73c84b9f2de425f5c759015fe0b0a6587353 \
                    sha256  e4f4864b96c6557ef2a1e1c951771838f4edc9df3a72ec7118b338801b11c7bf \
                    size    99311

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.md LICENSE \
            ${destroot}${docdir}
    }
}
