Files
macports-ports/python/py-zstd/Portfile
David Gilman f99b63d4d6 py-zstd: fix dependencies; drop py39, add py314 subport
- fix system zstd usage
- allow cffi 2.x on older Python versions
2025-11-06 13:56:26 -05:00

45 lines
1.4 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 github 1.0
PortGroup python 1.0
github.setup indygreg python-zstandard 0.25.0
revision 1
github.tarball_from archive
name py-zstd
license BSD
maintainers nomaintainer
description Zstandard compression
long_description This extension allows Zstandard compression from Python
homepage https://github.com/indygreg/python-zstandard
checksums rmd160 925cec59b0943bca6c77b66a397259e4173d8c21 \
sha256 851846ffe25681f7936ab2fd89130acf62b214a77b8c54e4319824f3510ab395 \
size 795455
python.versions 310 311 312 313 314
if {${name} ne ${subport}} {
depends_build-append \
port:py${python.version}-cffi \
port:py${python.version}-packaging
depends_lib-append \
port:zstd
patchfiles-append \
patch-cffideps.diff
build.args-append \
-C='--global-option=--system-zstd'
post-destroot {
xinstall -d ${destroot}${prefix}/share/doc/${subport}
xinstall -m 0644 -W ${worksrcpath} LICENSE README.rst \
${destroot}${prefix}/share/doc/${subport}
}
}