You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-07-10 12:19:27 -07:00
py-bitarray: update to 1.1.0
- remove py34, add py38 subport - enable tests - use python.rootname, use default PyPI livecheck
This commit is contained in:
+26
-23
@@ -3,20 +3,16 @@
|
||||
PortSystem 1.0
|
||||
PortGroup python 1.0
|
||||
|
||||
set _name bitarray
|
||||
set _n [string index ${_name} 0]
|
||||
name py-bitarray
|
||||
version 1.1.0
|
||||
revision 0
|
||||
|
||||
name py-${_name}
|
||||
version 0.8.3
|
||||
categories-append math
|
||||
platforms darwin
|
||||
|
||||
license PSF
|
||||
maintainers {petr @petrrr} openmaintainer
|
||||
|
||||
license PSF
|
||||
|
||||
description A efficient implementation of arrays of booleans
|
||||
|
||||
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 \
|
||||
@@ -25,23 +21,30 @@ long_description \
|
||||
and big-endian. Most of the functionality is implemented in C. \
|
||||
Methods for accessing the machine representation are provided.
|
||||
|
||||
homepage https://github.com/ilanschnell/${_name}
|
||||
homepage https://github.com/ilanschnell/bitarray
|
||||
distname ${python.rootname}-${version}
|
||||
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
|
||||
|
||||
distname ${_name}-${version}
|
||||
master_sites pypi:${_n}/${_name}/
|
||||
checksums rmd160 7080c4a112fff2169a8751d843a1354745b44a09 \
|
||||
sha256 9f578314c7808eb1416620dc7d7977d4787a65a4f61b4c9685343a860712615b \
|
||||
size 40080
|
||||
|
||||
checksums rmd160 f670f9981592cad78e832edc964dbe0101908c7d \
|
||||
sha256 050cd30b810ddb3aa941e7ddfbe0d8065e793012d0a88cb5739ec23624b9895e \
|
||||
size 36292
|
||||
|
||||
python.versions 27 34 35 36 37
|
||||
|
||||
livecheck.type none
|
||||
python.versions 27 35 36 37 38
|
||||
|
||||
if {${name} ne ${subport}} {
|
||||
depends_build port:py${python.version}-setuptools
|
||||
} else {
|
||||
livecheck.type regex
|
||||
livecheck.url https://pypi.python.org/pypi/${_name}/json
|
||||
livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
|
||||
post-destroot {
|
||||
set docdir ${prefix}/share/doc/${subport}
|
||||
xinstall -d ${destroot}${docdir}
|
||||
xinstall -m 0644 -W ${worksrcpath} README.rst ${destroot}${docdir}
|
||||
}
|
||||
|
||||
pre-test {
|
||||
test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
|
||||
}
|
||||
|
||||
test.run yes
|
||||
test.cmd ${python.bin} bitarray/test_bitarray.py
|
||||
test.target
|
||||
|
||||
livecheck.type none
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user