source: trunk/dports/python/py-BitVector/Portfile

Last change on this file was 141841, checked in by petr@…, 21 months ago

py-BitVector: update to 3.4.4, add py35 subport

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
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: Portfile 141841 2015-10-29 17:39:02Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           BitVector
8
9name                py-${_name}
10version             3.4.4
11categories-append   math
12platforms           darwin
13supported_archs     noarch
14
15maintainers         petr openmaintainer
16
17license             PSF
18
19description         A memory-efficient packed representation for bit arrays
20
21long_description    The BitVector class is for a memory-efficient packed \
22                    representation of bit arrays and for logical operations \
23                    on such arrays. It is written in pure Python.
24
25homepage            https://engineering.purdue.edu/kak/dist/${_name}-${version}.html
26
27distname            ${_name}-${version}
28master_sites        https://engineering.purdue.edu/kak/dist
29
30checksums           md5     832b368cd8e4928a1f3b1aa58ac80aa6 \
31                    rmd160  a1a49a681a461a5a526d4e52b18f7b8447fa2dec \
32                    sha256  e528ec6e03bcabe6d7e10d4a13459d644dd6577b73e225f7a686bd1902734186
33
34python.versions     27 34 35
35
36if {${name} ne ${subport}} {
37    depends_build-append     port:py${python.version}-setuptools
38
39    test.run            yes
40    test.cmd            ${python.bin} TestBitVector/Test.py
41    test.target         {}
42
43    # delete redundant files & avoid testing different version
44    pre-patch {
45        eval delete [ glob ${worksrcpath}/TestBitVector/BitVector.py ]
46
47        # create link for testing
48        ln -s ../BitVector/BitVector.py ${worksrcpath}/TestBitVector/BitVector.py
49    }
50
51    # Adding documentation & examples
52    post-destroot {
53        set dest_doc ${destroot}${prefix}/share/doc/${subport}
54        copy ${worksrcpath}/${distname}.html ${dest_doc}
55
56        # Avoid creation of example directory
57        delete ${dest_doc}/examples
58        copy ${worksrcpath}/Examples ${dest_doc}/examples
59    }
60
61    livecheck.type      none
62} else {
63    livecheck.type      regex
64    livecheck.url       [lindex ${master_sites} 0]
65    livecheck.regex     "${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}"
66}
Note: See TracBrowser for help on using the repository browser.