Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py-clang: Update to clang19 #26236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions python/py-clang/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PortGroup python 1.0

# meta-version; bump whenever underlying variants are updated. Needed to
# support portindex (variants can't have different versions.)
version 11
version 12
# Needed for change to meta-versioning
epoch 1
name py-clang
Expand All @@ -23,7 +23,7 @@ platforms {darwin any}

livecheck.url https://api.github.com/repos/llvm/llvm-project/git/refs/tags
# Update this to the most recent clang supported
livecheck.version 18.1.8
livecheck.version 19.1.2
livecheck.regex {llvmorg-([\d.]+)\"}

if {${name} ne ${subport}} {
Expand All @@ -35,18 +35,18 @@ if {${name} ne ${subport}} {
cfe-3.7.1.src.tar.xz \
rmd160 185b0f75970bc50682766a21794440578db87b5d \
sha256 56e2164c7c2a1772d5ed2a3e57485ff73ff06c97dff12edbeea1acc4412b0674 \
clang-17.0.6.src.tar.xz \
rmd160 1fb51adf1b992220bebb4f066480cd4b0ecc1888 \
sha256 a78f668a726ae1d3d9a7179996d97b12b90fb76ab9442a43110b972ff7ad9029 \
clang-19.1.2.src.tar.xz \
rmd160 cbc65ca6a76b59d4a8827416a0177cca7fabd95d \
sha256 54aa3514c96a28b26482e84c44916fb3eac7c3bca2d1721d67154b52e84433c1 \
clang-18.1.8.src.tar.xz \
rmd160 703b8825a5451db6011e8614dd7bc403877849b8 \
sha256 5724fe0a13087d5579104cedd2f8b3bc10a212fb79a0fcdac98f4880e19f4519

depends_build-append port:py${python.version}-setuptools

# Keeping 37 around for old systems; otherwise two latest releases.
set clanglist {37 17 18}
set clangvlist {3.7.1 17.0.6 18.1.8}
set clanglist {37 19 18}
set clangvlist {3.7.1 19.1.2 18.1.8}

foreach cvnum $clanglist {
# Explictly use (and depend on) the libclang we select during install
Expand Down Expand Up @@ -89,17 +89,17 @@ if {${name} ne ${subport}} {
python.test_framework unittest

if {![variant_isset clang37] &&
![variant_isset clang18] &&
![variant_isset clang17]} {
default_variants +clang18
![variant_isset clang19] &&
![variant_isset clang18]} {
default_variants +clang19
}

pre-extract {
# Will never hit this when installing from packages, which is OK, as
# they will have the default variant set above.
if {![variant_isset clang37] &&
![variant_isset clang18] &&
![variant_isset clang17]} {
![variant_isset clang19] &&
![variant_isset clang18]} {
ui_error "At least one of the clangNN variants must be active."
return -code error "Unsupported (no) variants selected."
}
Expand Down
Loading