# -*- 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 PortSystem 1.0 PortGroup python 1.0 set _name future set _n [string index ${_name} 0] name py-${_name} version 0.16.0 categories-append devel platforms darwin supported_archs noarch license MIT maintainers {petr @petrrr} openmaintainer description Provides clean single-source support for Python 3 and 2 long_description \ The Python package future is the missing compatibility layer between \ Python 3 and Python 2. It allows you to use a single, clean Python \ 3.x-compatible codebase to support both Python 3 and Python 2 with \ minimal overhead. The futurize script aids in converting code from \ either Python 2 or Python 3 to code compatible with both platforms. homepage http://python-future.org/ master_sites pypi:${_n}/${_name}/ distname ${_name}-${version} checksums md5 3e8e88a2bda48d54b1da7634d04760d7 \ rmd160 69456fbc593b4ae123fafca1afb8d58062f44b97 \ sha256 e39ced1ab767b5936646cedba8bcce582398233d6a627067d4c6a454c90cfedb python.versions 27 34 35 36 if {${name} ne ${subport}} { depends_build-append port:py${python.version}-setuptools # Adding documentation post-destroot { set dest_doc ${destroot}${prefix}/share/doc/${subport} xinstall -d ${dest_doc} xinstall -m 755 -W ${worksrcpath} \ README.rst \ LICENSE.txt \ ${dest_doc} copy {*}[glob ${worksrcpath}/docs/*.py] ${dest_doc} copy {*}[glob ${worksrcpath}/docs/*.rst] ${dest_doc} } livecheck.type none } else { livecheck.type regex livecheck.url https://pypi.python.org/pypi/${_name}/json livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\"" }