[55903] trunk/dports/python
wsiegrist at apple.com
wsiegrist at apple.com
Thu Aug 20 16:54:44 PDT 2009
Revision: 55903
http://trac.macports.org/changeset/55903
Author: wsiegrist at apple.com
Date: 2009-08-20 16:54:43 -0700 (Thu, 20 Aug 2009)
Log Message:
-----------
make a py25 version of py-magic
Added Paths:
-----------
trunk/dports/python/py25-magic/
trunk/dports/python/py25-magic/Portfile
trunk/dports/python/py25-magic/files/
trunk/dports/python/py25-magic/files/setup.py
Added: trunk/dports/python/py25-magic/Portfile
===================================================================
--- trunk/dports/python/py25-magic/Portfile (rev 0)
+++ trunk/dports/python/py25-magic/Portfile 2009-08-20 23:54:43 UTC (rev 55903)
@@ -0,0 +1,29 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup python24 1.0
+
+name py-magic
+version 0.1
+revision 2
+categories python sysutils
+platforms darwin
+maintainers nomaintainer
+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.jsnp.net/code/
+master_sites ${homepage}
+distfiles magic.py
+dist_subdir python/${name}/${version}_${revision}
+checksums md5 baa1b1864c60d3f5482971cff810f8a4 \
+ sha1 48c617490ebfa3c1a1cf0445dcb6d8fd4abda236
+
+extract {
+ file mkdir ${worksrcpath}
+ file copy ${distpath}/magic.py ${worksrcpath}
+ file copy ${filespath}/setup.py ${worksrcpath}
+ reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
+}
Added: trunk/dports/python/py25-magic/files/setup.py
===================================================================
--- trunk/dports/python/py25-magic/files/setup.py (rev 0)
+++ trunk/dports/python/py25-magic/files/setup.py 2009-08-20 23:54:43 UTC (rev 55903)
@@ -0,0 +1,7 @@
+from distutils.core import setup
+
+setup(
+ name = 'magic',
+ version = "VERSION",
+ packages = [''],
+ )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090820/64addee8/attachment.html>
More information about the macports-changes
mailing list