2013-10-27 20:14:51 +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:17:53 -05:00
|
|
|
name py-BitArray2D
|
2013-10-27 20:14:51 +00:00
|
|
|
version 2.1
|
|
|
|
|
categories-append math
|
|
|
|
|
platforms darwin
|
|
|
|
|
supported_archs noarch
|
|
|
|
|
|
2018-05-07 06:45:24 -05:00
|
|
|
maintainers {petr @petrrr} openmaintainer
|
2013-10-27 20:14:51 +00:00
|
|
|
|
|
|
|
|
license PSF
|
|
|
|
|
|
|
|
|
|
description A memory-efficient packed representation for 2D bit arrays
|
|
|
|
|
|
|
|
|
|
long_description The BitArray2D class is for a memory-efficient packed \
|
|
|
|
|
representation of 2D bit arrays and for logical and other \
|
|
|
|
|
operations (such as blob dilations, erosions, etc.) on \
|
|
|
|
|
such arrays. The implementation of the class takes \
|
|
|
|
|
advantage of the facilities of the BitVector class for \
|
|
|
|
|
the memory representation and for the allowed operations.
|
|
|
|
|
|
2019-11-16 10:17:53 -05:00
|
|
|
homepage https://engineering.purdue.edu/kak/dist2d/${python.rootname}-${version}.html
|
2013-10-27 20:14:51 +00:00
|
|
|
|
2019-11-16 10:17:53 -05:00
|
|
|
distname ${python.rootname}-${version}
|
2014-02-12 06:48:57 +00:00
|
|
|
master_sites https://engineering.purdue.edu/kak/dist2d/
|
2013-10-27 20:14:51 +00:00
|
|
|
|
2019-11-16 10:17:53 -05:00
|
|
|
checksums rmd160 6b25f62b9ea8ea7f4d680e31fa210d03574e1173 \
|
|
|
|
|
sha256 d0875cb8384a76925981fec18b88bf66927b2dcddea104e954a7874351eb8877 \
|
|
|
|
|
size 213796
|
2013-10-27 20:14:51 +00:00
|
|
|
|
2019-11-16 10:17:53 -05:00
|
|
|
python.versions 27 35 36 37
|
2013-10-27 20:14:51 +00:00
|
|
|
|
2013-12-05 08:44:51 +00:00
|
|
|
if {${name} ne ${subport}} {
|
2013-10-27 20:14:51 +00:00
|
|
|
depends_build-append port:py${python.version}-setuptools
|
|
|
|
|
depends_lib-append port:py${python.version}-BitVector
|
|
|
|
|
|
|
|
|
|
test.run yes
|
|
|
|
|
test.cmd ${python.bin} TestBitArray2D/Test.py
|
|
|
|
|
test.target {}
|
|
|
|
|
|
|
|
|
|
# delete redundant files & avoid testing different version
|
|
|
|
|
pre-patch {
|
2017-11-30 12:30:54 +11:00
|
|
|
delete {*}[glob ${worksrcpath}/*/*.pyc] ;# purge *.pyc files
|
|
|
|
|
delete {*}[glob ${worksrcpath}/*/BitVector.py] ;# .
|
|
|
|
|
delete {*}[glob ${worksrcpath}/*/BitArray2D.py] ;# these copies
|
2013-10-27 20:14:51 +00:00
|
|
|
|
|
|
|
|
# use version installed by dependency instead
|
|
|
|
|
delete ${worksrcpath}/BitVector.py
|
|
|
|
|
|
|
|
|
|
# create link for testing
|
|
|
|
|
ln -s ../BitArray2D.py ${worksrcpath}/TestBitArray2D/BitArray2D.py
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Adding documentation & examples
|
|
|
|
|
post-destroot {
|
|
|
|
|
copy ${worksrcpath}/${distname}.html ${destroot}${prefix}/share/doc/${subport}
|
2019-11-16 10:17:53 -05:00
|
|
|
|
2013-10-27 20:14:51 +00:00
|
|
|
# Avoid creation of example directory
|
|
|
|
|
delete ${destroot}${prefix}/share/doc/${subport}/examples
|
|
|
|
|
copy ${worksrcpath}/Examples ${destroot}${prefix}/share/doc/${subport}/examples
|
|
|
|
|
}
|
2014-02-12 06:48:57 +00:00
|
|
|
|
|
|
|
|
livecheck.type none
|
|
|
|
|
} else {
|
|
|
|
|
livecheck.type regex
|
|
|
|
|
livecheck.url [lindex ${master_sites} 0]
|
2019-11-16 10:17:53 -05:00
|
|
|
livecheck.regex "${python.rootname}-(\\d+(\\.\\d+)+)\\${extract.suffix}"
|
2013-10-27 20:14:51 +00:00
|
|
|
}
|