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

Last change on this file since 138401 was 138401, checked in by petr@…, 2 years ago

py-BitVector: version bump to 3.4.3, correct reduntant file patch

  • 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 138401 2015-07-07 14:37:45Z petr@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           BitVector
8
9name                py-${_name}
10version             3.4.3
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     97872271c94b0436083eabd7dc9f7fcc \
31                    rmd160  30fdd00ebb81db59e353f1ffd686c1302b3168ec \
32                    sha256  01aed073ac5424b498dd9d4f9ffe9ea361a9a75a3991e6928c055f0fe2884a92
33
34python.versions     27 34
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.