Commits
Renee Otten authored 2be2275fb35
1 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 |
2 2 | |
3 3 | PortSystem 1.0 |
4 4 | PortGroup python 1.0 |
5 5 | |
6 - | set _name bitarray |
7 - | set _n [string index ${_name} 0] |
6 + | name py-bitarray |
7 + | version 1.1.0 |
8 + | revision 0 |
8 9 | |
9 - | name py-${_name} |
10 - | version 0.8.3 |
11 10 | categories-append math |
12 11 | platforms darwin |
13 - | |
14 - | maintainers {petr @petrrr} openmaintainer |
15 - | |
16 12 | license PSF |
13 + | maintainers {petr @petrrr} openmaintainer |
17 14 | |
18 15 | description A efficient implementation of arrays of booleans |
19 - | |
20 16 | long_description \ |
21 17 | This module provides an object type which efficiently represents an array \ |
22 18 | of booleans. Bitarrays are sequence types and behave very much like usual \ |
23 19 | lists. Eight bits are represented by one byte in a contiguous block of \ |
24 20 | memory. The user can select between two representations: little-endian \ |
25 21 | and big-endian. Most of the functionality is implemented in C. \ |
26 22 | Methods for accessing the machine representation are provided. |
27 23 | |
28 - | homepage https://github.com/ilanschnell/${_name} |
24 + | homepage https://github.com/ilanschnell/bitarray |
25 + | distname ${python.rootname}-${version} |
26 + | master_sites pypi:[string index ${python.rootname} 0]/${python.rootname} |
27 + | |
28 + | checksums rmd160 7080c4a112fff2169a8751d843a1354745b44a09 \ |
29 + | sha256 9f578314c7808eb1416620dc7d7977d4787a65a4f61b4c9685343a860712615b \ |
30 + | size 40080 |
29 31 | |
30 - | distname ${_name}-${version} |
31 - | master_sites pypi:${_n}/${_name}/ |
32 + | python.versions 27 35 36 37 38 |
32 33 | |
33 - | checksums rmd160 f670f9981592cad78e832edc964dbe0101908c7d \ |
34 - | sha256 050cd30b810ddb3aa941e7ddfbe0d8065e793012d0a88cb5739ec23624b9895e \ |
35 - | size 36292 |
34 + | if {${name} ne ${subport}} { |
35 + | post-destroot { |
36 + | set docdir ${prefix}/share/doc/${subport} |
37 + | xinstall -d ${destroot}${docdir} |
38 + | xinstall -m 0644 -W ${worksrcpath} README.rst ${destroot}${docdir} |
39 + | } |
36 40 | |
37 - | python.versions 27 34 35 36 37 |
41 + | pre-test { |
42 + | test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*] |
43 + | } |
38 44 | |
39 - | livecheck.type none |
45 + | test.run yes |
46 + | test.cmd ${python.bin} bitarray/test_bitarray.py |
47 + | test.target |
40 48 | |
41 - | if {${name} ne ${subport}} { |
42 - | depends_build port:py${python.version}-setuptools |
43 - | } else { |
44 - | livecheck.type regex |
45 - | livecheck.url https://pypi.python.org/pypi/${_name}/json |
46 - | livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\"" |
49 + | livecheck.type none |
47 50 | } |