Ticket #44338: Portfile.diff
File Portfile.diff, 5.3 KB (added by lockhart (Thomas Lockhart), 10 years ago) |
---|
-
Portfile
old new 6 6 name sumo 7 7 conflicts sumo-devel 8 8 version 0.21.0 9 revision 1 9 10 categories science devel 10 11 platforms darwin 11 12 maintainers me.com:jens.fahnenbruck \ … … 53 54 reinplace -locale C "s#./PHEMlight/#${sharedir}/data/PHEMlight/#" src/tools/emissionsDrivingCycle_main.cpp 54 55 reinplace -locale C "s#./PHEMlight/#${sharedir}/data/PHEMlight/#" src/tools/emissionsMap_main.cpp 55 56 set python_bin ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7 56 foreach f $python_scripts{57 foreach f [list {*}$python_scripts {*}$python_libs {*}$python_tutorials] { 57 58 reinplace "s#/usr/bin/env python#${python_bin}#" $f 58 59 reinplace -E "s|^(sys.path.append)|# \\1|" $f 59 reinplace -E "s#^from (dijkstra|inputs)#from assign.\\1#" $f 60 reinplace -E "s#^ *from (assign|costMemory|dijkstra|duaIterate|elements|inputs|network|outputs|routeChoices|statisticsElements|tables)#from sumolib.assign.\\1#" $f 61 reinplace -E "s#^ *from (miscutils|OrderedMultiSet|output|testUtil)#from sumolib.\\1#" $f 60 62 reinplace -E "s#^import (xsd|collectinghandler|connections|turndefinitions|rmsd)#from sumolib import \\1#" $f 61 63 reinplace -E "s#^import (os,.*), helpers#import \\1, sumolib.helpers as helpers#" $f 62 64 } 63 65 foreach f $perl_scripts { 64 66 reinplace "s#/usr/bin/perl#${perl_bin}#" $f 65 67 } 68 reinplace -E "s#(removeTripsIfNotInInterval).pl#sumo-\\1#" tools/trip/splitTripsByHours.pl 66 69 } 67 70 68 71 # List of all python scripts. Used later to ensure usage of python27 69 72 # (instead of the currently active python) 70 set python_scripts [ list \ 71 tools/bin/traceExporter.py \ 73 set python_scripts [list \ 72 74 tools/assign/Assignment.py \ 73 75 tools/assign/cadytsIterate.py \ 74 76 tools/assign/costFunctionChecker.py \ … … 77 79 tools/assign/matrixDailyToHourly.py \ 78 80 tools/assign/networkStatistics.py \ 79 81 tools/assign/one-shot.py \ 80 tools/ assign/run.py \82 tools/bin/traceExporter.py \ 81 83 tools/detector/aggregateFlows.py \ 82 84 tools/detector/deleteUnusedDetectors.py \ 83 85 tools/detector/flowFromRoutes.py \ 86 tools/detector/flowrouter.py \ 84 87 tools/net/0103to0110.py \ 85 88 tools/net/0123to0130.py \ 86 89 tools/net/batch0103to0110.py \ … … 91 94 tools/net/netextract.py \ 92 95 tools/net/netextract_subPart.py \ 93 96 tools/net/netmatch.py \ 94 tools/net/netshiftadaptor.py \95 97 tools/net/netstats.py \ 96 98 tools/net/network_statistics.py \ 97 99 tools/net/odConnectionsCheck.py \ 98 tools/net/OrderedMultiSet.py \99 100 tools/net/patchNetFiles.py \ 100 101 tools/net/prepareVISUM.py \ 101 102 tools/net/reprojectpolys.py \ … … 115 116 tools/output/netdumpmean.py \ 116 117 tools/output/timingStats.py \ 117 118 tools/output/vehLanes.py \ 119 tools/output/vehroute2amitranOD.py \ 118 120 tools/output/vehrouteDiff.py \ 119 121 tools/route/cutRoutes.py \ 120 122 tools/route/extract_route_edges.py \ … … 137 139 tools/shapes/poi_alongRoads.py \ 138 140 tools/shapes/poi_atTLS.py \ 139 141 tools/shapes/pois2inductionLoops.py \ 142 tools/tls/tls_check.py \ 143 tools/tls/tls_csv2SUMO.py \ 144 tools/traci/rebuildConstants.py \ 145 tools/traci/traciToHex.py \ 140 146 tools/trigger/csv2vss.py \ 141 147 tools/trip/randomTrips.py \ 142 148 tools/trip/generateTripsXml.py \ … … 163 169 tools/xml/schemaCheck.py \ 164 170 tools/xml/xml2csv.py \ 165 171 tools/xml/xml2protobuf.py \ 166 tools/xml/xsd.py ] 172 ] 173 174 set python_libs [list \ 175 tools/assign/assign.py \ 176 tools/assign/costMemory.py \ 177 tools/assign/dijkstra.py \ 178 tools/assign/elements.py \ 179 tools/assign/inputs.py \ 180 tools/assign/network.py \ 181 tools/assign/outputs.py \ 182 tools/assign/run.py \ 183 tools/assign/statisticsElements.py \ 184 tools/assign/tables.py \ 185 tools/net/netshiftadaptor.py \ 186 tools/net/OrderedMultiSet.py \ 187 tools/sumolib/geomhelper.py \ 188 tools/trigger/csv2vss.py \ 189 tools/turn-defs/connections.py \ 190 tools/turn-defs/turndefinitions.py \ 191 tools/xml/xml2csv.py \ 192 tools/xml/xsd.py \ 193 ] 167 194 168 set perl_scripts [ list \ 195 set python_tutorials [list \ 196 docs/tutorial/city_mobil/constants.py \ 197 docs/tutorial/city_mobil/statistics.py \ 198 docs/tutorial/hello/runner.py \ 199 docs/tutorial/output_parsing/runner.py \ 200 docs/tutorial/quickstart/runner.py \ 201 docs/tutorial/san_pablo_dam/runner.py \ 202 docs/tutorial/traci_tls/runner.py \ 203 ] 204 205 set perl_scripts [list \ 169 206 tools/trip/removeGeometryInTrips.pl \ 170 207 tools/trip/removeTripsIfNotInInterval.pl \ 171 tools/trip/splitTripsByHours.pl ] 208 tools/trip/splitTripsByHours.pl \ 209 ] 172 210 173 211 # required for the gui to be enabled 174 212 configure.args-append \ … … 223 261 xinstall -m 755 ${worksrcpath}/tools/lib/stop.png ${destroot}${python_lib}/sumolib/ 224 262 xinstall -m 755 ${worksrcpath}/tools/lib/testUtil.py ${destroot}${python_lib}/sumolib/ 225 263 264 foreach f $python_libs { 265 xinstall -m 755 ${worksrcpath}/${f} ${destroot}${python_lib}/sumolib/ 266 } 267 226 268 foreach f [list {*}$python_scripts {*}$perl_scripts] { 227 269 # convert file names to use dash rather than underscore and remove trailing .py or .pl 228 270 set x [string map [list _ -] [file rootname [file tail ${f}]]]