<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/bf8c7bcc13e15ed4f862c540a20571d64ed2f7bc">https://github.com/macports/macports-ports/commit/bf8c7bcc13e15ed4f862c540a20571d64ed2f7bc</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new bf8c7bcc13e include-what-you-use: new port
</span>bf8c7bcc13e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit bf8c7bcc13e15ed4f862c540a20571d64ed2f7bc
</span>Author: Mohamed Akram <mohd.akram@outlook.com>
AuthorDate: Mon Sep 25 03:01:32 2023 +0400
<span style='display:block; white-space:pre;color:#404040;'> include-what-you-use: new port
</span>---
devel/include-what-you-use/Portfile | 40 +++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/include-what-you-use/Portfile b/devel/include-what-you-use/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3951b6abc51
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/include-what-you-use/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,40 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup include-what-you-use include-what-you-use 0.20
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license NCSA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {outlook.com:mohd.akram @mohd-akram} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description A tool for use with clang to analyze #includes in C and C++ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ source files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 7e6da7cc8c3e9300516597bcfceba56c66b5c1a0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 4fe4bd5581ee60bb2bcf1bf40f087a8c5b090d943d0376233638f30f29af0e2e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 766208
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set llvm_version 16
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set llvm_dir ${prefix}/libexec/llvm-${llvm_version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:clang-${llvm_version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.install_rpath-append ${llvm_dir}/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DLLVM_DIR=${llvm_dir}/lib/cmake/llvm \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DClang_DIR=${llvm_dir}/lib/cmake/clang
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Move the binary next to clang so it picks up its include directory one
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # level above. Run it via xcrun so it picks up system include directories.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${llvm_dir}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/bin/${name} ${destroot}${llvm_dir}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W "${destroot}${prefix}/bin" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "echo '#!/bin/sh\nexec xcrun ${llvm_dir}/bin/${name} \"$@\"' > ${name} && chmod +x ${name}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>