Revision: 117305 https://trac.macports.org/changeset/117305 Author: g5pw@macports.org Date: 2014-02-21 09:56:54 -0800 (Fri, 21 Feb 2014) Log Message: ----------- python/py-future: new port (fixes #42452) Added Paths: ----------- trunk/dports/python/py-future/ trunk/dports/python/py-future/Portfile Added: trunk/dports/python/py-future/Portfile =================================================================== --- trunk/dports/python/py-future/Portfile (rev 0) +++ trunk/dports/python/py-future/Portfile 2014-02-21 17:56:54 UTC (rev 117305) @@ -0,0 +1,59 @@ +# -*- 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.11.2 +categories-append devel +platforms darwin +supported_archs noarch +license MIT + +maintainers bo.ingv.it:Peter.Danecek 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/ + +distname ${_name}-${version} +master_sites https://pypi.python.org/packages/source/${_n}/${_name}/ + +checksums md5 b85a7097b331641883ab8832d768cef4 \ + rmd160 1c02f6436b965537f07d2fb56f1bb8747cd757f5 \ + sha256 b2465f2d14acc3b279d1e6fab9bd8b2e89992c9ddaad37cdf10347a5ee14369a + +python.versions 26 27 33 34 + +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} + 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 [lindex ${master_sites} 0] + livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<" +} Property changes on: trunk/dports/python/py-future/Portfile ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + native
participants (1)
-
g5pw@macports.org