Ticket #54191: Portfile.diff

File Portfile.diff, 4.4 KB (added by lockhart (Thomas Lockhart), 7 years ago)

Patch to update port from 0.29.0 to 0.30.0

  • Portfile

    old new  
    33PortSystem          1.0
    44
    55name                sumo
    6 version             0.29.0
     6version             0.30.0
    77categories          science devel
    88platforms           darwin
    99maintainers         gmail.com:tlockhart1976 openmaintainer
     
    2222distname            ${name}-src-${version}
    2323worksrcdir          ${name}-${version}
    2424
    25 checksums           rmd160  56b42d5a7c7a967ae4c17ccd8dda50db5887115e \
    26                     sha256  50b627869f829343cc874879317d238615e68b91083f7c401aac198235a690d1
     25checksums           rmd160  4b17e0a4b95f0d6a8f4d24e5ff9ceead2f810ec3 \
     26                    sha256  2f0825507d756979658061847f47c5d91ec2e5c07e7ebd8839a31ab08ecde742
    2727
    2828default_variants    +subseconds +messages
    2929
     
    6161    reinplace -locale C "s#./PHEMlight/#${sharedir}/data/PHEMlight/#" src/tools/emissionsMap_main.cpp
    6262    set python_bin ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
    6363    foreach f [list {*}$python_scripts {*}$python_libs {*}$python_tutorials] {
    64         reinplace "s#/usr/bin/env python#${python_bin}#" $f
    65         reinplace -E "s|^( *)(sys.path.append)|\\1# \\2|" $f
    66         reinplace -E "s|^( *)(.*__file__.*\\.\\.)|\\1# \\2|" $f
    67         reinplace -E "s|^( *)(os.path.join.*\\.\\.)|\\1# \\2|" $f
    68         reinplace -E "s|^( *)(SUMO_HOME =)|\\1  # \\2|" $f
    69         reinplace -E "s|^(if .*SUMO_HOME)|if True:  # \\1|" $f
    70         reinplace -E "s|^( +)(.*os.path.join.*SUMO_HOME)|\\1# \\2|" $f
    71         reinplace -E "s#^( *)from (assign|costMemory|dijkstra|duaIterate|elements|inputs|network|outputs|routeChoices|statisticsElements|tables)#\\1from sumolib.assign.\\2#" $f
    72         reinplace -E "s#^( *)from (miscutils|OrderedMultiSet|output|testUtil)#\\1from sumolib.\\2#" $f
    73         reinplace -E "s#^import (detector|route2trips|xsd|xml2csv|collectinghandler|connections|netshiftadaptor|route_departOffset|sort_routes|turndefinitions|rmsd|xml2protobuf)#from sumolib import \\1#" $f
    74         reinplace -E "s#^import (os,.*), helpers#import \\1, sumolib.helpers as helpers#" $f
     64        reinplace -q "s#/usr/bin/env python#${python_bin}#" $f
     65        reinplace -q -E "s|^( *)(sys.path.append)|\\1# \\2|" $f
     66        reinplace -q -E "s|^( *)(.*__file__.*\\.\\.)|\\1# \\2|" $f
     67        reinplace -q -E "s|^( *)(os.path.join.*\\.\\.)|\\1# \\2|" $f
     68        reinplace -q -E "s|^( *)(SUMO_HOME =)|\\1  # \\2|" $f
     69        reinplace -q -E "s|^(if .*SUMO_HOME)|if True:  # \\1|" $f
     70        reinplace -q -E "s|^( +)(.*os.path.join.*SUMO_HOME)|\\1# \\2|" $f
     71        reinplace -q -E "s#^( *)from (assign|costMemory|dijkstra|duaIterate|elements|inputs|network|outputs|routeChoices|statisticsElements|tables)#\\1from sumolib.assign.\\2#" $f
     72        reinplace -q -E "s#^( *)from (miscutils|OrderedMultiSet|output|testUtil)#\\1from sumolib.\\2#" $f
     73        reinplace -q -E "s#^import (detector|route2trips|xsd|xml2csv|collectinghandler|connections|netshiftadaptor|route_departOffset|sort_routes|turndefinitions|rmsd|xml2protobuf)#from sumolib import \\1#" $f
     74        reinplace -q -E "s#^import (os,.*), helpers#import \\1, sumolib.helpers as helpers#" $f
    7575    }
    7676    reinplace -E "s#@BINDIR@#${bindir}#" README.macosx
    7777    reinplace -E "s#@LIBDIR@#${libdir}#" README.macosx
     
    8181
    8282# List of all python scripts. Used later to ensure usage of python27
    8383# (instead of the currently active python)
    84 # available in the next release:
    85 # tools/tlsCoordinator.py
    8684set python_scripts [list \
     85    tools/createVehTypeDistribution.py \
    8786    tools/districts2poly.py \
    8887    tools/edgesInDistricts.py \
     88    tools/extractTest.py \
    8989    tools/generateBidiDistricts.py \
     90    tools/osmBuild.py \
     91    tools/osmGet.py \
     92    tools/osmWebWizard.py \
    9093    tools/pedestrianFlow.py \
    9194    tools/randomTrips.py \
    92     tools/route2trips.py \
    9395    tools/route2sel.py \
     96    tools/route2trips.py \
     97    tools/showDepartsAndArrivalsPerEdge.py \
     98    tools/tlsCoordinator.py \
    9499    tools/traceExporter.py \
    95100    tools/assign/Assignment.py \
    96101    tools/assign/cadytsIterate.py \
     
    157162    tools/purgatory/kShortest.py \
    158163    tools/purgatory/routes2OD.py \
    159164    tools/route/cutRoutes.py \
     165    tools/route/implausibleRoutes.py \
    160166    tools/route/route2alts.py \
    161167    tools/route/route2poly.py \
    162     tools/route/routeDiffStats.py \
     168    tools/route/routeStats.py \
    163169    tools/route/route_1htoDay.py \
    164170    tools/route/route_departOffset.py \
    165171    tools/route/routecheck.py \