Ticket #42653: patch-py-construct-Portfile.diff

File patch-py-construct-Portfile.diff, 2.8 KB (added by jul_bsd@…, 10 years ago)
  • python/py-construct/Portfile

    old new  
    33PortSystem 1.0
    44PortGroup python 1.0
    55
    6 name                            py-construct
    7 version                         2.00
    8 platforms                       darwin
    9 supported_archs         noarch
    10 maintainers                     macfreek.nl:software dckd.nl:macports openmaintainer
    11 description                     python module for parsing and building binary or textual data structures
    12 long_description        Construct is a python library for parsing and building of data structures \
    13                                         (binary or textual). It is based on the concept of defining data \
    14                                         structures in a declarative manner, rather than procedural code: more \
    15                                         complex constructs are composed of a hierarchy of simpler ones.
    16 
    17 homepage                        http://construct.wikispaces.com/
    18 master_sites            sourceforge:pyconstruct
    19 distname                        construct-${version}-distro
    20 checksums                       md5 ac374c2fdf6a9351468ad8c149584cf3 \
    21                     sha1 ff1e2f7b90f994f037ac22e490a881bc96e47d30
    22 
    23 python.versions         24 25
    24 
    25 subport py24-construct {
    26     # we download the 2.00-py24 "backport" version, since that is backward compatible in
    27     # Python 2.4 (and it works fine with Python 2.5 too)
    28     distname                    construct-${version}-distro-py24b
    29     checksums                   md5 783c5584a8ea2b7fb7eeada564687aaa
    30 }
    31 
    32 if {${name} ne ${subport}} {
    33     use_zip                             yes
     6name                py-construct
     7version             2.5.1
     8platforms           darwin
     9supported_archs     noarch
     10maintainers         dckd.nl:macports openmaintainer
     11description         python module for parsing and building binary or textual data structures
     12long_description    Construct is a python library for parsing and building of data structures \
     13                    (binary or textual). It is based on the concept of defining data \
     14                    structures in a declarative manner, rather than procedural code: more \
     15                    complex constructs are composed of a hierarchy of simpler ones.
     16license             BSD type
     17
     18homepage            http://construct.readthedocs.org/en/latest/
     19distname            construct-${version}
     20master_sites        https://pypi.python.org/packages/source/c/construct/
    3421
    35     worksrcdir                  construct
     22checksums           rmd160  977d5b3e79631725de5b56566ca49882c5ce7253 \
     23                    sha256  9d123b2590a5645385cf881f25960a2e2a262337e4697dfdbcac4b4496da44b3
    3624
    37     # nothing to build
    38     build                               {}
     25python.versions     25 26 27 31 32 33 34
    3926
    40     destroot {
    41         xinstall -d ${destroot}${python.pkgd}
    42         file copy ${workpath}/construct ${destroot}${python.pkgd}
    43     }
     27if {${name} ne ${subport}} {
     28    use_zip                yes
     29    depends_lib-append  port:py${python.version}-six
    4430}
     31
     32livecheck.type     regex
     33livecheck.url       ${master_sites}
     34livecheck.regex     "construct-(\\d+(?:\\.\\d+)*)${extract.suffix}"