# -*- 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           stub 1.0
PortGroup           select 1.0

name                lldb_select
version             1
revision            0
categories          sysutils
supported_archs     noarch
platforms           any
maintainers         {judaew @judaew} openmaintainer
description         common files for selecting default lldb version
long_description    llvm_select installs files that allow 'port select' to \
                    switch the default version of lldb \
                    It symlinks the standard llvm executables \
                    in the MacPorts prefix to the selected version.

post-destroot {
    select::install lldb ${filespath}/base
    select::install lldb ${filespath}/none
}

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
}