Files
2026-02-14 18:40:49 +11:00

47 lines
1.8 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-py2app
version 0.28.10
categories-append devel
license {MIT PSF}
platforms {darwin any}
supported_archs noarch
maintainers {jmr @jmroot} openmaintainer
description converts python scripts into executable Mac OS X apps
long_description \
A distutils extension which converts python scripts into executable \
Mac OS X applications, able to run without requiring an existing python \
installation. This is a replacement for bundlebuilder.
homepage https://py2app.readthedocs.io/
checksums md5 b29d80be9b98f709d3f923f17b864b5a \
rmd160 ef1af993f7938f4fe211a9c9e0903aeb67d7d94b \
sha256 fd38f4a0083d4d1e91ea336eaef678b99d9e1b95ac6302315cad22fa5e859cb1
python.versions 37 310 311 312 313 314
if {$subport ne $name} {
depends_lib port:py${python.version}-altgraph \
port:py${python.version}-macholib \
port:py${python.version}-modulegraph \
port:py${python.version}-packaging
if {${python.version} < 38} {
# needs pkg_resources at runtime when importlib.metadata is unavailable
depends_lib-append port:py${python.version}-setuptools
}
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} \
${destroot}${prefix}/share/examples/${subport}
xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.rst \
${destroot}${prefix}/share/doc/${subport}
file copy {*}[glob ${worksrcpath}/examples/*] \
${destroot}${prefix}/share/examples/${subport}
}
livecheck.type none
}