Skip to content

Commit

Permalink
py-pyobjc: fix Quartz module on macOS 15 (#26229)
Browse files Browse the repository at this point in the history
  • Loading branch information
breun authored Oct 23, 2024
1 parent 97f09e0 commit cb69623
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/py-pyobjc/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PortGroup github 1.0
PortGroup compiler_blacklist_versions 1.0

github.setup ronaldoussoren pyobjc 10.1 v
revision 0
revision 1

checksums rmd160 4ed3e4de68817e52920dc72bc9d2a3e667c56b80 \
sha256 079c59f41c75c36fbbbc9b72f49b6afdaeedbc503f6263c9c8d7542303d93c89 \
Expand Down Expand Up @@ -56,6 +56,12 @@ if {${name} ne ${subport}} {
use_xcode yes
compiler.blacklist-append {clang < 900}

# Quartz module uses CGWindowListCreateImageFromArray which is no longer available on macOS 15
# See https://trac.macports.org/ticket/71103
if {${os.platform} eq "darwin" && [vercmp ${macosx_deployment_target} >= 15.0]} {
macosx_deployment_target 14.0
}

post-patch {
reinplace \
"s/sphinx-build /sphinx-build-${python.branch} /g" \
Expand Down

0 comments on commit cb69623

Please sign in to comment.