<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/7681ba43391939b2c6de5965566b74ed847053e8">https://github.com/macports/macports-ports/commit/7681ba43391939b2c6de5965566b74ed847053e8</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 7681ba43391939b2c6de5965566b74ed847053e8
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Wed May 17 18:56:09 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> sumo: reinplace quietly
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/54191
</span>---
science/sumo/Portfile | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/sumo/Portfile b/science/sumo/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2b6ee75..af383c6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/sumo/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/sumo/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -61,17 +61,17 @@ post-patch {
</span> reinplace -locale C "s#./PHEMlight/#${sharedir}/data/PHEMlight/#" src/tools/emissionsMap_main.cpp
set python_bin ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
foreach f [list {*}$python_scripts {*}$python_libs {*}$python_tutorials] {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s#/usr/bin/env python#${python_bin}#" $f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s|^( *)(sys.path.append)|\\1# \\2|" $f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s|^( *)(.*__file__.*\\.\\.)|\\1# \\2|" $f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s|^( *)(os.path.join.*\\.\\.)|\\1# \\2|" $f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s|^( *)(SUMO_HOME =)|\\1 # \\2|" $f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s|^(if .*SUMO_HOME)|if True: # \\1|" $f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s|^( +)(.*os.path.join.*SUMO_HOME)|\\1# \\2|" $f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s#^( *)from (assign|costMemory|dijkstra|duaIterate|elements|inputs|network|outputs|routeChoices|statisticsElements|tables)#\\1from sumolib.assign.\\2#" $f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s#^( *)from (miscutils|OrderedMultiSet|output|testUtil)#\\1from sumolib.\\2#" $f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s#^import (detector|route2trips|xsd|xml2csv|collectinghandler|connections|netshiftadaptor|route_departOffset|sort_routes|turndefinitions|rmsd|xml2protobuf)#from sumolib import \\1#" $f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s#^import (os,.*), helpers#import \\1, sumolib.helpers as helpers#" $f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q "s#/usr/bin/env python#${python_bin}#" $f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q -E "s|^( *)(sys.path.append)|\\1# \\2|" $f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q -E "s|^( *)(.*__file__.*\\.\\.)|\\1# \\2|" $f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q -E "s|^( *)(os.path.join.*\\.\\.)|\\1# \\2|" $f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q -E "s|^( *)(SUMO_HOME =)|\\1 # \\2|" $f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q -E "s|^(if .*SUMO_HOME)|if True: # \\1|" $f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q -E "s|^( +)(.*os.path.join.*SUMO_HOME)|\\1# \\2|" $f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q -E "s#^( *)from (assign|costMemory|dijkstra|duaIterate|elements|inputs|network|outputs|routeChoices|statisticsElements|tables)#\\1from sumolib.assign.\\2#" $f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q -E "s#^( *)from (miscutils|OrderedMultiSet|output|testUtil)#\\1from sumolib.\\2#" $f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q -E "s#^import (detector|route2trips|xsd|xml2csv|collectinghandler|connections|netshiftadaptor|route_departOffset|sort_routes|turndefinitions|rmsd|xml2protobuf)#from sumolib import \\1#" $f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q -E "s#^import (os,.*), helpers#import \\1, sumolib.helpers as helpers#" $f
</span> }
reinplace -E "s#@BINDIR@#${bindir}#" README.macosx
reinplace -E "s#@LIBDIR@#${libdir}#" README.macosx
</pre><pre style='margin:0'>
</pre>