# -*- 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 # $Id$ PortSystem 1.0 PortGroup python 1.0 set _name future set _n [string index ${_name} 0] name py-${_name} version 0.14.3 categories-append devel platforms darwin supported_archs noarch license MIT maintainers petr 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 https://pypi.python.org/packages/source/${_n}/${_name}/ distname ${_name}-${version} checksums md5 e94079b0bd1fc054929e8769fc0f6083 \ rmd160 f2a8f36782ce65fc078851773b4147cf48487dfe \ sha256 62857d51881d97dd5492b9295b9f51d92108a52a4c88e2c40054c1d3e5995be9 python.versions 27 34 if {${name} ne ${subport}} { depends_build-append port:py${python.version}-setuptools # Add libs/features included in the standard lib with 2.7+ if { ${python.version} == 26 } { depends_lib-append port:py${python.version}-argparse \ port:py${python.version}-importlib \ port:py${python.version}-unittest2 } # 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} eval copy [ glob ${worksrcpath}/docs/*.py ] ${dest_doc} eval 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}\"" }