Files
macports-ports/python/py-pyzstd/Portfile
2025-11-19 15:34:53 +02:00

35 lines
1.1 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-pyzstd
version 0.18.0
revision 0
license BSD
maintainers nomaintainer
description Python bindings to Zstandard (zstd) compression library, the API is similar to Python's bz2/lzma/zlib module.
long_description ${description}
homepage https://github.com/animalize/pyzstd
checksums rmd160 5a16470159794d7c1a49f489d6da655bb7c1fe72 \
sha256 81b6851ab1ca2e5f2c709e896a1362e3065a64f271f43db77fb7d5e4a78e9861 \
size 806048
patchfiles-append patch-setuptools_no_version.diff
python.versions 310 311 312 313 314
if {${name} ne ${subport}} {
# https://github.com/Rogdham/pyzstd/issues/22
if {[string match *gcc-4.* ${configure.compiler}]} {
patchfiles-append \
patch-no-flto.diff
}
test.run yes
}