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

Last change on this file was 141841, checked in by petr@…, 2 years 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
RevLine 
[112602]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
[117306]7set _name           BitVector
8
9name                py-${_name}
[141841]10version             3.4.4
[112602]11categories-append   math
12platforms           darwin
[135855]13supported_archs     noarch
[112602]14
[121355]15maintainers         petr openmaintainer
[112602]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
[117306]25homepage            https://engineering.purdue.edu/kak/dist/${_name}-${version}.html
[112602]26
[117306]27distname            ${_name}-${version}
[112602]28master_sites        https://engineering.purdue.edu/kak/dist
29
[141841]30checksums           md5     832b368cd8e4928a1f3b1aa58ac80aa6 \
31                    rmd160  a1a49a681a461a5a526d4e52b18f7b8447fa2dec \
32                    sha256  e528ec6e03bcabe6d7e10d4a13459d644dd6577b73e225f7a686bd1902734186
[112602]33
[141841]34python.versions     27 34 35
[112602]35
[114324]36if {${name} ne ${subport}} {
[112602]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 {
[138401]45        eval delete [ glob ${worksrcpath}/TestBitVector/BitVector.py ]
[112602]46
47        # create link for testing
[138401]48        ln -s ../BitVector/BitVector.py ${worksrcpath}/TestBitVector/BitVector.py
[112602]49    }
50
51    # Adding documentation & examples
52    post-destroot {
[117306]53        set dest_doc ${destroot}${prefix}/share/doc/${subport}
54        copy ${worksrcpath}/${distname}.html ${dest_doc}
[112602]55
56        # Avoid creation of example directory
[117306]57        delete ${dest_doc}/examples
58        copy ${worksrcpath}/Examples ${dest_doc}/examples
[112602]59    }
[117306]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}"
[112602]66}
Note: See TracBrowser for help on using the repository browser.