Revision: 99290 http://trac.macports.org//changeset/99290 Author: stromnov@macports.org Date: 2012-10-31 02:32:40 -0700 (Wed, 31 Oct 2012) Log Message: ----------- py-magic: update to version 0.4.3, unify Modified Paths: -------------- trunk/dports/python/py-magic/Portfile Removed Paths: ------------- trunk/dports/python/py-magic/files/ trunk/dports/python/py25-magic/ Modified: trunk/dports/python/py-magic/Portfile =================================================================== --- trunk/dports/python/py-magic/Portfile 2012-10-31 06:59:23 UTC (rev 99289) +++ trunk/dports/python/py-magic/Portfile 2012-10-31 09:32:40 UTC (rev 99290) @@ -1,29 +1,41 @@ +# -*- 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 # $Id$ -PortSystem 1.0 -PortGroup python24 1.0 +PortSystem 1.0 +PortGroup python 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. +name py-magic +version 0.4.3 +revision 0 +categories-append devel +license PSF +platforms darwin -homepage http://www.jsnp.net/code/ -master_sites ${homepage} -distfiles magic.py -dist_subdir python/${name}/${version}_${revision} -checksums md5 baa1b1864c60d3f5482971cff810f8a4 \ - sha1 48c617490ebfa3c1a1cf0445dcb6d8fd4abda236 +maintainers stromnov openmaintainer -extract { - file mkdir ${worksrcpath} - file copy ${distpath}/magic.py ${worksrcpath} - file copy ${filespath}/setup.py ${worksrcpath} - reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py +description File type identification using libmagic + +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://github.com/ahupp/python-magic +master_sites http://pypi.python.org/packages/source/p/python-magic/ + +distname python-magic-${version} + +checksums rmd160 f0ecd397e69782088d63b2ead30ffd04e76f0ac5 \ + sha256 d49a5f1b51dce2b0313bf147a1ff96da25037fe2279cab386731e05f3b232937 + +python.default_version 27 +python.versions 25 26 27 32 33 + +if {$subport != $name} { + depends_lib-append \ + port:file \ + port:py${python.version}-distribute } + +livecheck.type regex +livecheck.url ${master_sites} +livecheck.regex "python-magic-(\\d+(?:\\.\\d+)*)${extract.suffix}"
participants (1)
-
stromnov@macports.org