source: trunk/dports/python/py-magic/Portfile @ 10047

Last change on this file since 10047 was 10047, checked in by mww, 15 years ago

upgrade to python 2.4

  • Property svn:eol-style set to native
File size: 825 bytes
Line 
1# $Id: Portfile,v 1.3 2004/12/29 12:10:58 mww Exp $
2
3PortSystem 1.0
4PortGroup python24 1.0
5
6name                    py-magic
7version                 0.1
8revision                1
9categories              python sysutils
10platforms               darwin
11maintainers             mww@opendarwin.org
12description             python module for determining a files or streams magic number
13long_description        Determines the mime type of a file using magic \
14                                numbers. Can also operate on arbitrary data streams. \
15                                Much like the Unix file(1) program.
16
17homepage                http://www.demonseed.net/~jp/code/
18master_sites    ${homepage}
19distfiles               magic.py
20dist_subdir             python/${name}/${version}
21checksums               md5 933b7679727d644f82354dd3ac6cdad7
22
23extract {
24        file mkdir ${worksrcpath}
25        file copy ${distpath}/magic.py ${worksrcpath}
26        file copy ${filespath}/setup.py ${worksrcpath}
27        reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
28}
Note: See TracBrowser for help on using the repository browser.