Changeset 99290


Ignore:
Timestamp:
Oct 31, 2012, 9:32:40 AM (12 years ago)
Author:
stromnov@…
Message:

py-magic: update to version 0.4.3, unify

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
    12# $Id$
    23
    3 PortSystem 1.0
    4 PortGroup python24 1.0
     4PortSystem          1.0
     5PortGroup           python 1.0
    56
    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.
     7name                py-magic
     8version             0.4.3
     9revision            0
     10categories-append   devel
     11license             PSF
     12platforms           darwin
    1613
    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
     14maintainers         stromnov openmaintainer
    2315
    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
     16description         File type identification using libmagic
     17
     18long_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
     22homepage            http://github.com/ahupp/python-magic
     23master_sites        http://pypi.python.org/packages/source/p/python-magic/
     24
     25distname            python-magic-${version}
     26
     27checksums           rmd160  f0ecd397e69782088d63b2ead30ffd04e76f0ac5 \
     28                    sha256  d49a5f1b51dce2b0313bf147a1ff96da25037fe2279cab386731e05f3b232937
     29
     30python.default_version  27
     31python.versions     25 26 27 32 33
     32
     33if {$subport != $name} {
     34    depends_lib-append  \
     35                    port:file \
     36                    port:py${python.version}-distribute
    2937}
     38
     39livecheck.type      regex
     40livecheck.url       ${master_sites}
     41livecheck.regex     "python-magic-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracChangeset for help on using the changeset viewer.