Ticket #42439: patch-py-bitarray.diff
File patch-py-bitarray.diff, 2.5 KB (added by petrrr, 11 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 PortGroup python 1.0 6 6 7 name py-bitarray 7 set _name bitarray 8 set _n [string index ${_name} 0] 9 10 name py-${_name} 8 11 version 0.8.1 9 12 categories-append math 10 13 platforms darwin … … 15 18 16 19 description A efficient implementation of arrays of booleans 17 20 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 21 long_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. 25 28 26 homepage https://github.com/ilanschnell/ bitarray29 homepage https://github.com/ilanschnell/${_name} 27 30 28 distname bitarray-${version}29 master_sites http ://pypi.python.org/packages/source/b/bitarray/31 distname ${_name}-${version} 32 master_sites https://pypi.python.org/packages/source/${_n}/${_name}/ 30 33 31 34 checksums md5 3825184f54f4d93508a28031b4c65d3b \ 32 35 rmd160 58c2a2665c2759f23bf1ab096de8c34bf7fcfcbb \ 33 36 sha256 7da501356e48a83c61f479393681c1bc4b94e5a34ace7e08cb29e7dd9290ab18 34 37 35 python.versions 26 27 31 32 38 python.versions 26 27 32 33 34 39 40 livecheck.type none 36 41 37 42 if {${name} ne ${subport}} { 38 43 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}<" 39 48 } 40