Ticket #42452: Portfile

File Portfile, 2.0 KB (added by petrrr, 10 years ago)

Portfile for python/py-future

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$
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           future
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             0.11.2
12categories-append   devel
13platforms           darwin
14supported_archs     noarch
15license             MIT
16
17maintainers         bo.ingv.it:Peter.Danecek openmaintainer
18
19description         Provides clean single-source support for Python 3 and 2
20
21long_description    \
22    The Python package future is the missing compatibility layer between \
23    Python 3 and Python 2. It allows you to use a single, clean Python \
24    3.x-compatible codebase to support both Python 3 and Python 2 with \
25    minimal overhead. The futurize script aids in converting code from \
26    either Python 2 or Python 3 to code compatible with both platforms.
27
28homepage            http://python-future.org/
29
30distname            ${_name}-${version}
31master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
32
33checksums           md5     b85a7097b331641883ab8832d768cef4 \
34                    rmd160  1c02f6436b965537f07d2fb56f1bb8747cd757f5 \
35                    sha256  b2465f2d14acc3b279d1e6fab9bd8b2e89992c9ddaad37cdf10347a5ee14369a
36
37python.versions     26 27 33 34
38
39if {${name} ne ${subport}} {
40    depends_build-append    port:py${python.version}-setuptools
41
42    # Adding documentation
43    post-destroot {
44        set dest_doc ${destroot}${prefix}/share/doc/${subport}
45        xinstall -${dest_doc}
46        xinstall -m 755 -W ${worksrcpath} \
47            README.rst \
48            LICENSE.txt \
49                ${dest_doc}
50        eval copy [ glob ${worksrcpath}/docs/*.py  ] ${dest_doc}
51        eval copy [ glob ${worksrcpath}/docs/*.rst ] ${dest_doc}
52    }
53
54    livecheck.type  none
55} else {
56    livecheck.type  regex
57    livecheck.url   [lindex ${master_sites} 0]
58    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
59}