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

Last change on this file was 153622, checked in by stromnov@…, 12 months ago

py-blist: add py35 support

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.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 153622 2016-10-06 06:46:43Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-blist
8version             1.3.6
9revision            0
10categories-append   devel
11platforms           darwin
12license             BSD
13
14python.versions     27 34 35
15
16maintainers         stromnov openmaintainer
17
18description         A list-like type with better asymptotic performance.
19long_description    A list-like type with better asymptotic performance \
20                    and similar performance on small lists.
21
22homepage            http://stutzbachenterprises.com/
23master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
24
25distname            ${python.rootname}-${version}
26
27checksums           rmd160  d94195d48b44bba1009ad7e27e6c2e431bef4559 \
28                    sha256  3a12c450b001bdf895b30ae818d4d6d3f1552096b8c995f0fe0c74bef04d1fc3
29
30if {${name} ne ${subport}} {
31    depends_build-append \
32                        port:py${python.version}-setuptools
33
34    # Fix permissions
35    post-extract {
36        fs-traverse item ${worksrcpath} {
37            if {[file isdirectory ${item}]} {
38                file attributes ${item} -permissions a+rx
39            } elseif {[file isfile ${item}]} {
40                file attributes ${item} -permissions a+r
41            }
42        }
43    }
44
45    build.args-append   -f
46
47    post-destroot {
48        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
49        xinstall -m 644 -W ${worksrcpath} README.rst LICENSE ${destroot}${prefix}/share/doc/${subport}
50    }
51
52    livecheck.type      none
53} else {
54    livecheck.type      pypi
55}
Note: See TracBrowser for help on using the repository browser.