# $Id: Portfile,v 1.3 2004/12/29 12:10:58 mww Exp $

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
}
