# $Id: Portfile 20382 2006-11-02 21:38:50Z blair@macports.org $ PortSystem 1.0 PortGroup python24 1.0 name py-magic version 0.1 revision 1 categories python sysutils platforms darwin maintainers mww@opendarwin.org description python module for determining a files or streams magic number 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://www.demonseed.net/~jp/code/ master_sites ${homepage} distfiles magic.py dist_subdir python/${name}/${version} checksums md5 933b7679727d644f82354dd3ac6cdad7 extract { file mkdir ${worksrcpath} file copy ${distpath}/magic.py ${worksrcpath} file copy ${filespath}/setup.py ${worksrcpath} reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py }