# -*- 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 github 1.0 PortGroup cmake 1.1 PortGroup compiler_blacklist_versions 1.0 github.setup include-what-you-use include-what-you-use 0.22 github.tarball_from archive revision 0 categories devel license NCSA maintainers {makr @mohd-akram} openmaintainer description A tool for use with clang to analyze #includes in C and C++ \ source files long_description {*}${description} checksums rmd160 1a86b5f12e8cc1f09c03784cfab4f51c57381191 \ sha256 34c7636da2abe7b86580b53b762f5269e71efff460f24f17d5913c56eb99cb7c \ size 796681 set llvm_version 18 set llvm_dir ${prefix}/libexec/llvm-${llvm_version} depends_build-append port:python312 depends_lib-append port:clang-${llvm_version} cmake.install_rpath-append ${llvm_dir}/lib configure.args-append -DLLVM_DIR=${llvm_dir}/lib/cmake/llvm \ -DClang_DIR=${llvm_dir}/lib/cmake/clang \ -DPython3_EXECUTABLE=${prefix}/bin/python3.12 # CMake Error at /opt/local/libexec/llvm-18/lib/cmake/llvm/CheckCompilerVersion.cmake:37 (message): # Host Apple Clang version must be at least 10.0 compiler.blacklist-append { clang <= 1100 } post-destroot { # Move the binary next to clang so it picks up its include directory one # level above. Run it via xcrun so it picks up system include directories. xinstall -d ${destroot}${llvm_dir}/bin move ${destroot}${prefix}/bin/${name} ${destroot}${llvm_dir}/bin system -W "${destroot}${prefix}/bin" " echo '#!/bin/sh\nexec xcrun ${llvm_dir}/bin/${name} \ -Xiwyu --mapping_file=${llvm_dir}/include/c++/v1/libcxx.imp \ \"$@\"' >${name} && chmod +x ${name} " }