<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/afd5a2aadaeecedacc757b8cd577fa2a63e182f8">https://github.com/macports/macports-ports/commit/afd5a2aadaeecedacc757b8cd577fa2a63e182f8</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 afd5a2aadae apache-arrow: Better ccache on/off handling
</span>afd5a2aadae is described below
<span style='display:block; white-space:pre;color:#808000;'>commit afd5a2aadaeecedacc757b8cd577fa2a63e182f8
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Thu Apr 29 18:33:20 2021 +0100
<span style='display:block; white-space:pre;color:#404040;'> apache-arrow: Better ccache on/off handling
</span>---
devel/apache-arrow/Portfile | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/apache-arrow/Portfile b/devel/apache-arrow/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ea0f27c0ad7..098210f7a04 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/apache-arrow/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/apache-arrow/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -121,7 +121,7 @@ configure.args-append \
</span> -DARROW_PYTHON:BOOL=OFF \
-DARROW_RPATH_ORIGIN:BOOL=OFF \
-DARROW_S3:BOOL=OFF \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DARROW_USE_CCACHE:BOOL=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DARROW_USE_CCACHE:BOOL=ON \
</span> -DARROW_TENSORFLOW:BOOL=ON \
-DARROW_UTF8PROC_USE_SHARED:BOOL=ON \
-DARROW_WITH_BROTLI:BOOL=ON \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -135,6 +135,17 @@ configure.args-append \
</span> -DLLVM_ROOT:PATH=${llvm_prefix} \
-DRE2_SOURCE:STRING=SYSTEM
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Build auto-detects cache if it is installed and a part of itattempts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# to write to CCACHE_DIR which is not allow if configure.ccache=off.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# So have to set CCACHE_DIR to the build area to avoid this...
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![option configure.ccache]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-append CCACHE_DIR=${workpath}/.ccache
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.env-append CCACHE_DIR=${workpath}/.ccache
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.env-append CCACHE_DIR=${workpath}/.ccache
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -DARROW_USE_CCACHE:BOOL=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DARROW_USE_CCACHE:BOOL=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> destroot.target install
if {${name} eq ${subport}} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -267,7 +278,6 @@ if {[string match "py*" ${subport}]} {
</span> }
build.env-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- CCACHE_DIR=${workpath}/.ccache \
</span> "PKG_CONFIG_PATH=/usr/lib/pkgconfig:${build.dir}/install/lib/pkgconfig" \
PYARROW_BOOST_USE_SHARED=1 \
PYARROW_BUILD_TYPE=${cmake_build_type} \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -289,8 +299,6 @@ if {[string match "py*" ${subport}]} {
</span> build.target bdist_wheel
build.post_args
<span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.env-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CCACHE_DIR=${workpath}/.ccache
</span> destroot.dir ${build.dir}
destroot.destdir [python_get_defaults destroot_destdir]
</pre><pre style='margin:0'>
</pre>