mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
clang-22 does not install c-index-test-mp-22, so selecting mp-clang-22 fails when port select tries to create the c-index-test symlink. Use '-' for that entry in the select file and bump the clang_select-22 revision. The port is not openmaintainer, but the maintainer is inactive and timed out on this months ago without any action. Closes: https://trac.macports.org/ticket/73627
60 lines
1.9 KiB
Tcl
60 lines
1.9 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 select 1.0
|
|
|
|
name clang_select
|
|
version 2.5
|
|
revision 0
|
|
categories sysutils
|
|
supported_archs noarch
|
|
platforms any
|
|
license BSD
|
|
maintainers {jeremyhu @jeremyhu}
|
|
description common files for selecting default clang version
|
|
long_description clang_select installs files that allow 'port select' to \
|
|
switch the default version of clang. \
|
|
It symlinks the standard compiler executables \
|
|
in the MacPorts prefix to the selected version.
|
|
homepage https://www.macports.org/
|
|
|
|
distfiles
|
|
use_configure no
|
|
build {}
|
|
destroot {}
|
|
|
|
if {$subport eq $name} {
|
|
select.entries {clang base} \
|
|
{clang none}
|
|
}
|
|
|
|
foreach v {3.3 3.4 3.7 5.0 6.0 7.0 8.0 9.0 10 11 12 13 14 15 16 17 18 19 20 21 22 devel} {
|
|
subport clang_select-${v} {
|
|
set clangver $v
|
|
}
|
|
}
|
|
if {$subport ne $name} {
|
|
if {$subport eq "clang_select-22"} {
|
|
revision 1
|
|
}
|
|
|
|
depends_run port:clang_select
|
|
select.entries [list clang mp-clang-${clangver}]
|
|
pre-activate {
|
|
if {[file exists ${prefix}/etc/select/clang/mp-clang-${clangver}]} {
|
|
set owner [registry_file_registered ${prefix}/etc/select/clang/mp-clang-${clangver}]
|
|
if {[string match clang-${clangver}* $owner]} {
|
|
registry_deactivate_composite $owner "" [list ports_nodepcheck 1]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
livecheck.type none
|
|
|
|
if {${os.platform} eq "darwin" && ${os.major} < 11} {
|
|
# Having the stdlib set to libc++ on 10.6 causes a dependency on a
|
|
# macports-clang compiler to be added, which would be a dep cycle.
|
|
configure.cxx_stdlib
|
|
}
|