Skip to content

Commit

Permalink
py-py7zr: drop py38 subport; do not require pyobjc on old systems
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Nov 18, 2024
1 parent d35db6e commit 7c8f043
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions python/py-py7zr/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,40 @@ checksums rmd160 3aa2e3e10a71e3fe66f502fed601ba3d078b17a1 \
sha256 c6c7aea5913535184003b73938490f9a4d8418598e533f9ca991d3b8e45a139e \
size 4992926

python.pep517 yes

python.versions 38 39 310 311 312 313
python.versions 39 310 311 312 313

if {${name} ne ${subport}} {
depends_build-append \
port:py${python.version}-setuptools_scm

if {${python.version} < 310} {
depends_build-append \
port:py${python.version}-build \
port:py${python.version}-importlib-metadata
}

depends_lib-append \
port:py${python.version}-brotli \
port:py${python.version}-inflate64 \
port:py${python.version}-multivolumefile \
port:py${python.version}-psutil\
port:py${python.version}-pybcj \
port:py${python.version}-pycryptodomex \
port:py${python.version}-pyppmd \
port:py${python.version}-pyzstd \
port:py${python.version}-texttable

platform darwin {
if {${os.major} > 10} {
depends_lib-append \
port:py${python.version}-pybcj
} elseif {${python.version} <= 310} {
# Legacy fallback, supported up to Python 3.10.
# This does not appear to be a required dependency anyway.
depends_lib-append \
port:py${python.version}-pyobjc6
}
}

depends_test-append \
port:py${python.version}-cpuinfo \
port:py${python.version}-pyannotate \
Expand Down

0 comments on commit 7c8f043

Please sign in to comment.