# -*- 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 # $Id$ PortSystem 1.0 PortGroup python 1.0 name py-magic version 0.4.12 revision 1 categories-append devel platforms darwin license MIT supported_archs noarch python.versions 27 34 35 maintainers 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 http://github.com/ahupp/python-magic master_sites pypi:p/python-magic distname python-magic-${version} checksums rmd160 069b43895b328efffcfebba0de9d5c82d89613f7 \ sha256 a04b20900100884d4fce40a767182a16fcb9d10756c67cdc21f5fa610b7c9d3c patchfiles patch-prefix-lib.diff post-patch { reinplace -E "s:__PREFIX__:${prefix}:g" ${worksrcpath}/magic.py } if {${name} ne ${subport}} { depends_build-append \ port:py${python.version}-setuptools depends_lib-append port:file livecheck.type none } else { livecheck.name python-magic livecheck.type pypi }