1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name py-BitVector |
---|
8 | version 3.3 |
---|
9 | categories-append math |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | maintainers bo.ingv.it:Peter.Danecek openmaintainer |
---|
13 | |
---|
14 | license PSF |
---|
15 | |
---|
16 | description A memory-efficient packed representation for bit arrays |
---|
17 | |
---|
18 | long_description The BitVector class is for a memory-efficient packed \ |
---|
19 | representation of bit arrays and for logical operations \ |
---|
20 | on such arrays. It is written in pure Python. |
---|
21 | |
---|
22 | homepage https://engineering.purdue.edu/kak/dist/BitVector-3.3.html |
---|
23 | |
---|
24 | distname BitVector-${version} |
---|
25 | master_sites https://engineering.purdue.edu/kak/dist |
---|
26 | |
---|
27 | checksums md5 5cd94e48eefabac749edaebf8337fc5a \ |
---|
28 | rmd160 1228aa6855a8958dd14ecbe5c639f3d343588183 \ |
---|
29 | sha256 ad82343d3e12f2538a250de3385c2511e980e85478f858659c5280eb988d0484 |
---|
30 | |
---|
31 | python.versions 26 27 31 32 33 34 |
---|
32 | |
---|
33 | if {${subport} ne ${name}} { |
---|
34 | depends_build-append port:py${python.version}-setuptools |
---|
35 | |
---|
36 | test.run yes |
---|
37 | test.cmd ${python.bin} TestBitVector/Test.py |
---|
38 | test.target {} |
---|
39 | |
---|
40 | # delete redundant files & avoid testing different version |
---|
41 | pre-patch { |
---|
42 | eval delete [ glob ${worksrcpath}/*/BitVector.py ] |
---|
43 | |
---|
44 | # create link for testing |
---|
45 | ln -s ../BitVector.py ${worksrcpath}/TestBitVector/BitVector.py |
---|
46 | } |
---|
47 | |
---|
48 | # Adding documentation & examples |
---|
49 | post-destroot { |
---|
50 | copy ${worksrcpath}/${distname}.html ${destroot}${prefix}/share/doc/${subport} |
---|
51 | |
---|
52 | # Avoid creation of example directory |
---|
53 | delete ${destroot}${prefix}/share/doc/${subport}/examples |
---|
54 | copy ${worksrcpath}/Examples ${destroot}${prefix}/share/doc/${subport}/examples |
---|
55 | } |
---|
56 | } |
---|