Ticket #42439: patch-py-bitarray.diff

File patch-py-bitarray.diff, 2.5 KB (added by petrrr, 10 years ago)

patch for py-bitarray/Portfile

  • Portfile

    old new  
    44PortSystem          1.0
    55PortGroup           python 1.0
    66
    7 name                py-bitarray
     7set _name           bitarray
     8set _n              [string index ${_name} 0]
     9
     10name                py-${_name}
    811version             0.8.1
    912categories-append   math
    1013platforms           darwin
     
    1518
    1619description         A efficient implementation of arrays of booleans
    1720
    18 long_description    This module provides an object type which efficiently represents \
    19                     an array of booleans. Bitarrays are sequence types and behave \
    20                     very much like usual lists. Eight bits are represented by one byte \
    21                     in a contiguous block of memory. The user can select between two \
    22                     representations: little-endian and big-endian. Most of the \
    23                     functionality is implemented in C. Methods for accessing the \
    24                     machine representation are provided.
     21long_description    \
     22    This module provides an object type which efficiently represents an array \
     23    of booleans. Bitarrays are sequence types and behave very much like usual \
     24    lists. Eight bits are represented by one byte in a contiguous block of \
     25    memory. The user can select between two representations: little-endian \
     26    and big-endian. Most of the functionality is implemented in C. \
     27    Methods for accessing the machine representation are provided.
    2528
    26 homepage            https://github.com/ilanschnell/bitarray
     29homepage            https://github.com/ilanschnell/${_name}
    2730
    28 distname            bitarray-${version}
    29 master_sites        http://pypi.python.org/packages/source/b/bitarray/
     31distname            ${_name}-${version}
     32master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
    3033
    3134checksums           md5     3825184f54f4d93508a28031b4c65d3b \
    3235                    rmd160  58c2a2665c2759f23bf1ab096de8c34bf7fcfcbb \
    3336                    sha256  7da501356e48a83c61f479393681c1bc4b94e5a34ace7e08cb29e7dd9290ab18
    3437
    35 python.versions     26 27 31 32
     38python.versions     26 27 32 33 34
     39
     40livecheck.type      none
    3641
    3742if {${name} ne ${subport}} {
    3843    depends_build         port:py${python.version}-setuptools
     44} else {
     45    livecheck.type      regex
     46    livecheck.url       [lindex ${master_sites} 0]
     47    livecheck.regex     ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
    3948}
    40