# -*- 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 # $Id$ PortSystem 1.0 PortGroup python 1.0 set _name BitVector name py-${_name} version 3.4.4 categories-append math platforms darwin supported_archs noarch maintainers petr openmaintainer license PSF 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. homepage https://engineering.purdue.edu/kak/dist/${_name}-${version}.html distname ${_name}-${version} master_sites https://engineering.purdue.edu/kak/dist checksums md5 832b368cd8e4928a1f3b1aa58ac80aa6 \ rmd160 a1a49a681a461a5a526d4e52b18f7b8447fa2dec \ sha256 e528ec6e03bcabe6d7e10d4a13459d644dd6577b73e225f7a686bd1902734186 python.versions 27 34 35 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 { eval delete [ glob ${worksrcpath}/TestBitVector/BitVector.py ] # create link for testing ln -s ../BitVector/BitVector.py ${worksrcpath}/TestBitVector/BitVector.py } # Adding documentation & examples post-destroot { set dest_doc ${destroot}${prefix}/share/doc/${subport} copy ${worksrcpath}/${distname}.html ${dest_doc} # Avoid creation of example directory delete ${dest_doc}/examples copy ${worksrcpath}/Examples ${dest_doc}/examples } livecheck.type none } else { livecheck.type regex livecheck.url [lindex ${master_sites} 0] livecheck.regex "${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}" }