Changeset 99290
- Timestamp:
- Oct 31, 2012, 9:32:40 AM (12 years ago)
- Location:
- trunk/dports/python
- Files:
-
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/python/py-magic/Portfile
r43533 r99290 1 # -*- 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 1 2 # $Id$ 2 3 3 PortSystem 1.04 PortGroup python241.04 PortSystem 1.0 5 PortGroup python 1.0 5 6 6 name py-magic 7 version 0.1 8 revision 2 9 categories python sysutils 10 platforms darwin 11 maintainers nomaintainer 12 description python module for determining a files or streams magic number 13 long_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. 7 name py-magic 8 version 0.4.3 9 revision 0 10 categories-append devel 11 license PSF 12 platforms darwin 16 13 17 homepage http://www.jsnp.net/code/ 18 master_sites ${homepage} 19 distfiles magic.py 20 dist_subdir python/${name}/${version}_${revision} 21 checksums md5 baa1b1864c60d3f5482971cff810f8a4 \ 22 sha1 48c617490ebfa3c1a1cf0445dcb6d8fd4abda236 14 maintainers stromnov openmaintainer 23 15 24 extract { 25 file mkdir ${worksrcpath} 26 file copy ${distpath}/magic.py ${worksrcpath} 27 file copy ${filespath}/setup.py ${worksrcpath} 28 reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py 16 description File type identification using libmagic 17 18 long_description Determines the mime type of a file using magic \ 19 numbers. Can also operate on arbitrary data streams. \ 20 Much like the Unix file(1) program. 21 22 homepage http://github.com/ahupp/python-magic 23 master_sites http://pypi.python.org/packages/source/p/python-magic/ 24 25 distname python-magic-${version} 26 27 checksums rmd160 f0ecd397e69782088d63b2ead30ffd04e76f0ac5 \ 28 sha256 d49a5f1b51dce2b0313bf147a1ff96da25037fe2279cab386731e05f3b232937 29 30 python.default_version 27 31 python.versions 25 26 27 32 33 32 33 if {$subport != $name} { 34 depends_lib-append \ 35 port:file \ 36 port:py${python.version}-distribute 29 37 } 38 39 livecheck.type regex 40 livecheck.url ${master_sites} 41 livecheck.regex "python-magic-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracChangeset
for help on using the changeset viewer.