Files

62 lines
2.1 KiB
Tcl
Raw Permalink Normal View History

# -*- 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:18:59 -05:00
name py-BitVector
version 3.4.9
revision 0
2014-02-21 18:01:25 +00:00
categories-append math
platforms darwin
supported_archs noarch
2019-11-16 10:18:59 -05:00
license PSF
2018-05-07 06:45:24 -05:00
maintainers {petr @petrrr} openmaintainer
description A memory-efficient packed representation for bit arrays
long_description The BitVector class is for a memory-efficient packed \
representation of bit arrays and for logical operations \
on such arrays. It is written in pure Python.
2019-11-16 10:18:59 -05:00
homepage https://engineering.purdue.edu/kak/dist/${python.rootname}-${version}.html
distname ${python.rootname}-${version}
master_sites https://engineering.purdue.edu/kak/dist
2019-11-16 10:18:59 -05:00
checksums rmd160 c037bc5d90011bce25813ee752f1f61b8ad9336a \
sha256 a5e94cbb4804213b1f0c32d84517cd8f0bb8c689b5eb8055d351632e220a5edd \
size 128306
2019-11-16 10:18:59 -05:00
python.versions 27 35 36 37
if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-setuptools
test.run yes
test.cmd ${python.bin} TestBitVector/Test.py
test.target {}
# delete redundant files & avoid testing different version
pre-patch {
2017-11-30 12:30:54 +11:00
delete {*}[glob ${worksrcpath}/TestBitVector/BitVector.py]
# create link for testing
ln -s ../BitVector/BitVector.py ${worksrcpath}/TestBitVector/BitVector.py
}
# Adding documentation & examples
post-destroot {
2014-02-21 18:01:25 +00:00
set dest_doc ${destroot}${prefix}/share/doc/${subport}
copy ${worksrcpath}/${distname}.html ${dest_doc}
# Avoid creation of example directory
2014-02-21 18:01:25 +00:00
delete ${dest_doc}/examples
copy ${worksrcpath}/Examples ${dest_doc}/examples
}
2014-02-21 18:01:25 +00:00
livecheck.type none
} else {
livecheck.type regex
livecheck.url [lindex ${master_sites} 0]
2019-11-16 10:18:59 -05:00
livecheck.regex "${python.rootname}-(\\d+(\\.\\d+)+)\\${extract.suffix}"
}