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

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

set of py-* ports maintained by petr: enable py35 subports

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 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 143298 2015-12-09 23:36:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           BitArray2D
8
9name                py-${_name}
10version             2.1
11categories-append   math
12platforms           darwin
13supported_archs     noarch
14
15maintainers         petr openmaintainer
16
17license             PSF
18
19description         A memory-efficient packed representation for 2D bit arrays
20
21long_description    The BitArray2D class is for a memory-efficient packed \
22                    representation of 2D bit arrays and for logical and other \
23                    operations (such as blob dilations, erosions, etc.) on \
24                    such arrays. The implementation of the class takes \
25                    advantage of the facilities of the BitVector class for \
26                    the memory representation and for the allowed operations.
27
28homepage            https://engineering.purdue.edu/kak/dist2d/${_name}-${version}.html
29
30distname            ${_name}-${version}
31master_sites        https://engineering.purdue.edu/kak/dist2d/
32
33checksums           md5     24cac608e52df170a5163988b95d9fa3 \
34                    rmd160  6b25f62b9ea8ea7f4d680e31fa210d03574e1173 \
35                    sha256  d0875cb8384a76925981fec18b88bf66927b2dcddea104e954a7874351eb8877
36
37python.versions     27 34 35
38
39if {${name} ne ${subport}} {
40    depends_build-append  port:py${python.version}-setuptools
41    depends_lib-append    port:py${python.version}-BitVector
42
43    test.run            yes
44    test.cmd            ${python.bin} TestBitArray2D/Test.py
45    test.target         {}
46
47    # delete redundant files & avoid testing different version
48    pre-patch {
49        eval delete [ glob ${worksrcpath}/*/*.pyc ]            ;# purge *.pyc files
50        eval delete [ glob ${worksrcpath}/*/BitVector.py ]     ;# .
51        eval delete [ glob ${worksrcpath}/*/BitArray2D.py ]    ;# these copies
52
53        # use version installed by dependency instead
54        delete ${worksrcpath}/BitVector.py
55
56        # create link for testing
57        ln -s ../BitArray2D.py ${worksrcpath}/TestBitArray2D/BitArray2D.py
58    }
59
60    # Adding documentation & examples
61    post-destroot {
62        copy ${worksrcpath}/${distname}.html ${destroot}${prefix}/share/doc/${subport}
63 
64        # Avoid creation of example directory
65        delete  ${destroot}${prefix}/share/doc/${subport}/examples
66        copy ${worksrcpath}/Examples ${destroot}${prefix}/share/doc/${subport}/examples
67    }
68
69    livecheck.type      none
70} else {
71    livecheck.type      regex
72    livecheck.url       [lindex ${master_sites} 0]
73    livecheck.regex     "${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}"
74}
Note: See TracBrowser for help on using the repository browser.