<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/474a950a87a18c9e758e3ed005b27337e55b4e57">https://github.com/macports/macports-ports/commit/474a950a87a18c9e758e3ed005b27337e55b4e57</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 474a950a87a18c9e758e3ed005b27337e55b4e57
</span>Author: Marcus Calhoun-Lopez <marcuscalhounlopez@gmail.com>
AuthorDate: Mon Jul 23 11:13:30 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> tbb: simplify since muniversal now supports destroot
</span>---
devel/tbb/Portfile | 23 ++++-------------------
1 file changed, 4 insertions(+), 19 deletions(-)
<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 47566db..e96494c 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;'>@@ -65,33 +65,20 @@ test.run yes
</span> test.target test
test.args-append ${build.args}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# The Makefile does not have an install target.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# http://software.intel.com/en-us/forums/topic/347428
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# but the muniversal portgroup requires a destroot.cmd
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.cmd true
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> if {[variant_isset universal]} {
foreach arch ${configure.universal_archs} {
set merger_build_args(${arch}) arch=$tbb_arch(${arch})
set merger_test_args(${arch}) arch=$tbb_arch(${arch})
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- merger-post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach arch ${universal_archs_to_use} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- tbb_destroot ${worksrcpath}-${arch} ${destroot}-${arch}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> } else {
build.args-append arch=$tbb_arch(${configure.build_arch})
test.args-append arch=$tbb_arch(${configure.build_arch})
<span style='display:block; white-space:pre;background:#ffe0e0;'>- post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- tbb_destroot ${worksrcpath} ${destroot}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-proc tbb_destroot {worksrcpath destroot} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- global destroot.dir prefix tbb_build_prefix
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.dir ${worksrcpath}/build/${tbb_build_prefix}_release
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# The Makefile does not have an install target.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# http://software.intel.com/en-us/forums/topic/347428
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.dir ${worksrcpath}/build/${tbb_build_prefix}_release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span> # fix paths
reinplace -W ${destroot.dir} "s|\\(TBBROOT.\\)\".*\"|\\1\"${prefix}\"|g" tbbvars.sh tbbvars.csh
reinplace -W ${destroot.dir} "s|\\(tbb_bin.\\)\".*\"|\\1\"${prefix}/lib\"|g" tbbvars.sh tbbvars.csh
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -100,9 +87,7 @@ proc tbb_destroot {worksrcpath destroot} {
</span> copy {*}[glob ${destroot.dir}/lib*.dylib] ${destroot}${prefix}/lib
copy {*}[glob ${destroot.dir}/tbbvars.*sh] ${destroot}${prefix}/bin
copy ${worksrcpath}/include/tbb ${destroot}${prefix}/include/tbb
<span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-destroot {
</span> # copy examples & docs
xinstall -d ${destroot}${prefix}/share/${name}
copy ${worksrcpath}/doc ${destroot}${prefix}/share/${name}/doc
</pre><pre style='margin:0'>
</pre>