<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0ad407e50efc491ce84034dced19ec714b57cac6">https://github.com/macports/macports-ports/commit/0ad407e50efc491ce84034dced19ec714b57cac6</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 0ad407e50efc491ce84034dced19ec714b57cac6
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Mon Dec 5 21:40:13 2022 +0100
<span style='display:block; white-space:pre;color:#404040;'> onetbb, tbb: install into libexec
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/66280
</span>---
devel/onetbb/Portfile | 21 +++++++++++++++++++--
devel/tbb/Portfile | 22 ++++++++++++++--------
2 files changed, 33 insertions(+), 10 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/onetbb/Portfile b/devel/onetbb/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b365c4d78e2..662967e6814 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/onetbb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/onetbb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,10 +7,9 @@ PortGroup compiler_blacklist_versions 1.0
</span>
github.setup oneapi-src oneTBB 2021.9.0 v
github.tarball_from archive
<span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts tbb
</span>
name onetbb
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories devel parallel
platforms darwin
license Apache-2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -51,6 +50,24 @@ if {${os.arch} ne "powerpc"} {
</span>
configure.args-append -DTBB_TEST=OFF
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# install it into libexec to avoid conflict with tbb port
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.install_prefix ${prefix}/libexec/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# but keep this port at perfix's cmake's lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 0755 ${destroot}${prefix}/lib/cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach cmakedir [glob -type d -nocomplain -tails -directory ${destroot}${cmake.install_prefix}/lib/cmake *] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 0755 ${destroot}${prefix}/lib/cmake/${cmakedir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach cmakefile [glob -tails -directory ${destroot}${cmake.install_prefix}/lib/cmake/${cmakedir} *.cmake] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${cmake.install_prefix}/lib/cmake/${cmakedir}/${cmakefile} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/lib/cmake/${cmakedir}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q "s|\\\${CMAKE_CURRENT_LIST_DIR}|${cmake.install_prefix}/lib/cmake/${cmakedir}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${cmake.install_prefix}/lib/cmake/${cmakedir}/${cmakefile}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q "s|\\\${CMAKE_CURRENT_LIST_FILE}|${cmake.install_prefix}/lib/cmake/${cmakedir}/${cmakefile}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${cmake.install_prefix}/lib/cmake/${cmakedir}/${cmakefile}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> platform powerpc {
# Rather than disabling -Werror altogether, just disable these:
configure.cxxflags-append \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/tbb/Portfile b/devel/tbb/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c17308ef5c0..471ace23ac6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/tbb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/tbb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,11 +6,7 @@ PortGroup github 1.0
</span> PortGroup compiler_blacklist_versions 1.0
github.setup intel tbb 2020.3 v
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# more recent versions are released as oneTBB and are packaged in the new 'onetbb' port
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts onetbb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories devel
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,6 +31,9 @@ use_configure no
</span> # Force a compatible compiler
compiler.blacklist-append *gcc* {clang < 602} {macports-clang-3.[0-7]}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# install it into libexec to avoid conflict with onetbb port
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+prefix ${prefix}/libexec/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set tbb_arch(arm64) arm64
set tbb_arch(i386) ia32
set tbb_arch(ppc) ppc32
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -97,7 +96,14 @@ destroot {
</span> copy ${worksrcpath}/include/tbb ${destroot}${prefix}/include/tbb
# copy examples & docs
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -d ${destroot}${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${worksrcpath}/doc ${destroot}${prefix}/share/${name}/doc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}/examples
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/share/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+More recent versions are released as oneTBB and are packaged in the new 'onetbb' port
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+This version is installed into ${prefix}/libexec/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span></pre><pre style='margin:0'>
</pre>