Ticket #48753: Portfile.diff
File Portfile.diff, 3.1 KB (added by lockhart (Thomas Lockhart), 9 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name sumo 7 version 0.2 3.07 version 0.24.0 8 8 categories science devel 9 9 platforms darwin 10 10 maintainers nomaintainer … … 23 23 distname ${name}-src-${version} 24 24 worksrcdir ${name}-${version} 25 25 26 checksums rmd160 e57ef20322a87f9801e160be122ba683dc9c2e5a\27 sha256 ab8806c076edc730c4fca0eb4ceed5b008a2214ad90d90d6c1e607d5f282e98726 checksums rmd160 712b8fc05dcc230940abe4d897357bb49d418e00 \ 27 sha256 b9fe97bdd0981098b3136456954b6ece718e5efb6a782b0f98f519ccf28a8429 28 28 29 29 depends_lib-append \ 30 30 port:fox \ … … 42 42 set docdir ${prefix}/share/doc/${name} 43 43 set python_bin ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7 44 44 set python_lib ${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages 45 set perl_bin "/usr/bin/env perl"46 45 47 46 post-patch { 48 47 reinplace "s#std::getenv(\"SUMO_HOME\")#\"${sharedir}\"#" src/utils/xml/SUMOSAXReader.cpp … … 59 58 reinplace -E "s#^import (xsd|collectinghandler|connections|turndefinitions|rmsd)#from sumolib import \\1#" $f 60 59 reinplace -E "s#^import (os,.*), helpers#import \\1, sumolib.helpers as helpers#" $f 61 60 } 62 foreach f $perl_scripts {63 reinplace "s#/usr/bin/perl#${perl_bin}#" $f64 }65 reinplace -E "s#(removeTripsIfNotInInterval).pl#sumo-\\1#" tools/trip/splitTripsByHours.pl66 61 } 67 62 68 63 # List of all python scripts. Used later to ensure usage of python27 … … 84 79 tools/detector/validate.py \ 85 80 tools/district/countConnectionsInDistricts.py \ 86 81 tools/district/districtMapper.py \ 87 tools/district/edgesInDistricts.py \88 82 tools/net/0103to0110.py \ 89 83 tools/net/0123to0130.py \ 90 84 tools/net/batch0103to0110.py \ … … 146 140 tools/traci/rebuildConstants.py \ 147 141 tools/traci/traciToHex.py \ 148 142 tools/trigger/csv2vss.py \ 149 tools/trip/generateTripsXml.py \150 tools/trip/randomTrips.py \151 tools/trip/route2trips.py \152 143 tools/turn-defs/generateTurnDefs.py \ 153 144 tools/visualization/mpl_dump_onNet.py \ 154 145 tools/visualization/mpl_dump_timeline.py \ … … 204 195 docs/tutorial/traci_tls/runner.py \ 205 196 ] 206 197 207 set perl_scripts [list \208 tools/trip/removeGeometryInTrips.pl \209 tools/trip/removeTripsIfNotInInterval.pl \210 tools/trip/splitTripsByHours.pl \211 ]212 # no perl header line to ensure perl is executed213 # tools/purgatory/xml2csv.pl \214 215 198 # required for the gui to be enabled 216 199 configure.args-append \ 217 200 --with-fox=${prefix} … … 267 250 xinstall -m 755 ${worksrcpath}/${f} ${destroot}${python_lib}/sumolib/ 268 251 } 269 252 270 foreach f [list {*}$python_scripts {*}$perl_scripts] {253 foreach f [list {*}$python_scripts] { 271 254 # convert file names to use dash rather than underscore and remove trailing .py or .pl 272 255 set x [string map [list _ -] [file rootname [file tail ${f}]]] 273 256 xinstall -m 755 ${worksrcpath}/${f} ${destroot}${prefix}/bin/sumo-${x}