You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-03-31 14:42:53 -07:00
47 lines
1.6 KiB
Tcl
47 lines
1.6 KiB
Tcl
# -*- 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
|
|
|
|
name py-future
|
|
version 1.0.0
|
|
revision 0
|
|
|
|
categories-append devel
|
|
platforms {darwin any}
|
|
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 https://python-future.org/
|
|
|
|
checksums rmd160 16d5e0c6cc54925bf8c0cb0e56343a5ca63b5459 \
|
|
sha256 bd2968309307861edae1458a4f8a4f3598c03be43b97521076aebf5d94c07b05 \
|
|
size 1228490
|
|
|
|
python.versions 27 310 311 312 313 314
|
|
|
|
if {${name} ne ${subport}} {
|
|
depends_lib-append \
|
|
port:py${python.version}-setuptools
|
|
|
|
post-destroot {
|
|
set dest_doc ${destroot}${prefix}/share/doc/${subport}
|
|
xinstall -d ${dest_doc}
|
|
xinstall -m 0644 -W ${worksrcpath} README.rst \
|
|
LICENSE.txt ${dest_doc}
|
|
copy {*}[glob ${worksrcpath}/docs/*.py] ${dest_doc}
|
|
copy {*}[glob ${worksrcpath}/docs/*.rst] ${dest_doc}
|
|
}
|
|
|
|
test.run yes
|
|
}
|