Ticket #40533: Portfile

File Portfile, 1.9 KB (added by petrrr, 11 years ago)

minor change

Line 
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
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-BitVector
8version             3.3
9categories-append   math
10platforms           darwin
11
12maintainers         bo.ingv.it:Peter.Danecek openmaintainer
13
14license             PSF
15
16description         A memory-efficient packed representation for bit arrays
17
18long_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
22homepage            https://engineering.purdue.edu/kak/dist/BitVector-3.3.html
23
24distname            BitVector-${version}
25master_sites        https://engineering.purdue.edu/kak/dist
26
27checksums           md5     5cd94e48eefabac749edaebf8337fc5a \
28                    rmd160  1228aa6855a8958dd14ecbe5c639f3d343588183 \
29                    sha256  ad82343d3e12f2538a250de3385c2511e980e85478f858659c5280eb988d0484
30
31python.versions     26 27 31 32 33 34
32
33if {${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}