# -*- 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-magic python.rootname python-magic version 0.4.27 revision 0 categories-append devel license MIT supported_archs noarch platforms {darwin any} python.versions 27 38 39 310 311 312 maintainers {stromnov @stromnov} openmaintainer description File type identification using libmagic long_description Determines the mime type of a file using magic \ numbers. Can also operate on arbitrary data streams. \ Much like the Unix file(1) program. homepage https://github.com/ahupp/python-magic checksums rmd160 2fb718747b4642ea2f5de7d4b74f009bc074ce2c \ sha256 c1ba14b08e4a5f5c31a302b7721239695b2f0f058d125bd5ce1ee36b9d9d3c3b \ size 14677 if {${name} ne ${subport}} { depends_build-append \ port:py${python.version}-setuptools depends_lib-append port:file patchfiles patch-magic_loader.py.diff post-patch { reinplace -E "s:__PREFIX__:${prefix}:g" ${worksrcpath}/magic/loader.py } }