2013-05-22 14:57:38 +00:00
|
|
|
# -*- 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
|
|
|
|
|
|
|
|
|
|
PortSystem 1.0
|
|
|
|
|
PortGroup python 1.0
|
|
|
|
|
|
2019-11-16 10:27:43 -05:00
|
|
|
name py-bitarray
|
2025-11-17 13:45:30 -05:00
|
|
|
version 3.8.0
|
2019-11-16 10:27:43 -05:00
|
|
|
revision 0
|
2014-02-12 09:01:32 +00:00
|
|
|
|
2013-05-22 14:57:38 +00:00
|
|
|
categories-append math
|
2019-11-16 10:27:43 -05:00
|
|
|
license PSF
|
2018-05-07 06:45:24 -05:00
|
|
|
maintainers {petr @petrrr} openmaintainer
|
2013-05-22 14:57:38 +00:00
|
|
|
|
|
|
|
|
description A efficient implementation of arrays of booleans
|
2014-02-12 09:01:32 +00:00
|
|
|
long_description \
|
|
|
|
|
This module provides an object type which efficiently represents an array \
|
|
|
|
|
of booleans. Bitarrays are sequence types and behave very much like usual \
|
|
|
|
|
lists. Eight bits are represented by one byte in a contiguous block of \
|
|
|
|
|
memory. The user can select between two representations: little-endian \
|
|
|
|
|
and big-endian. Most of the functionality is implemented in C. \
|
|
|
|
|
Methods for accessing the machine representation are provided.
|
2013-05-22 14:57:38 +00:00
|
|
|
|
2019-11-16 10:27:43 -05:00
|
|
|
homepage https://github.com/ilanschnell/bitarray
|
2013-05-22 14:57:38 +00:00
|
|
|
|
2025-11-17 13:45:30 -05:00
|
|
|
checksums rmd160 4751e97c0382222f35b30640e45cdce882946349 \
|
|
|
|
|
sha256 3eae38daffd77c9621ae80c16932eea3fb3a4af141fb7cc724d4ad93eff9210d \
|
|
|
|
|
size 151991
|
2013-05-22 14:57:38 +00:00
|
|
|
|
2025-11-17 13:45:30 -05:00
|
|
|
python.versions 310 311 312 313 314
|
2013-05-22 14:57:38 +00:00
|
|
|
|
2013-12-05 08:44:51 +00:00
|
|
|
if {${name} ne ${subport}} {
|
2019-11-16 10:27:43 -05:00
|
|
|
post-destroot {
|
|
|
|
|
set docdir ${prefix}/share/doc/${subport}
|
|
|
|
|
xinstall -d ${destroot}${docdir}
|
|
|
|
|
xinstall -m 0644 -W ${worksrcpath} README.rst ${destroot}${docdir}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
test.run yes
|
2023-11-11 14:50:02 -05:00
|
|
|
python.test_framework
|
2019-11-16 10:27:43 -05:00
|
|
|
test.cmd ${python.bin} bitarray/test_bitarray.py
|
2013-05-22 14:57:38 +00:00
|
|
|
}
|