Files
macports-ports/python/py-zopeinterface/Portfile
T
2025-03-06 06:53:50 +11:00

64 lines
2.2 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-zopeinterface
python.rootname zope.interface
version 7.2
revision 0
python.versions 27 35 36 37 38 39 310 311 312 313
categories-append zope
license ZPL-2.1
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description Python interfaces for Zope
long_description {*}${description}
homepage https://zopetoolkit.readthedocs.io/
checksums rmd160 6e1d8ef7701429a244352e0344d7a10a6e3c469a \
sha256 8b49f1a3d1ee4cdaf5b32d2e738362c7f5e40ac8b46dd7d1a65e82a4872728fe \
size 252960
if {${name} ne ${subport}} {
depends_build port:py${python.version}-setuptools
if {${python.version} <= 36} {
version 5.5.2
revision 0
checksums rmd160 b56a9e93853ccc43993cf3b6f893a9d1986e6917 \
sha256 bfee1f3ff62143819499e348f5b8a7f3aa0259f9aca5e0ddae7391d059dce671 \
size 300533
livecheck.type none
} elseif {${python.version} == 37} {
version 6.4.post2
revision 0
checksums rmd160 59e3047c059e30e0c7afee248cb3b6b7e301e7ba \
sha256 1c207e6f6dfd5749a26f5a5fd966602d6b824ec00d2df84a7e9a924e8933654e \
size 294539
} else {
post-patch {
reinplace {s|"setuptools[[:space:]]*<.*"|"setuptools"|} ${worksrcpath}/pyproject.toml
}
}
if {${python.version} >= 37} {
# Probably fails due to lack of port for zope.testing
depends_test port:py${python.version}-zope-event
test.run yes
test.args --pyargs zope.interface.common.tests
}
post-destroot {
xinstall -d ${destroot}${prefix}/share/doc/${subport}
xinstall -m 0644 -W ${worksrcpath} \
CHANGES.rst README.rst \
${destroot}${prefix}/share/doc/${subport}
}
livecheck.type none
}