Ticket #48753: Portfile.diff

File Portfile.diff, 3.1 KB (added by lockhart (Thomas Lockhart), 9 years ago)

Update from 0.23.0 to 0.24.0

  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                sumo
    7 version             0.23.0
     7version             0.24.0
    88categories          science devel
    99platforms           darwin
    1010maintainers         nomaintainer
     
    2323distname            ${name}-src-${version}
    2424worksrcdir          ${name}-${version}
    2525
    26 checksums           rmd160  e57ef20322a87f9801e160be122ba683dc9c2e5a \
    27                     sha256  ab8806c076edc730c4fca0eb4ceed5b008a2214ad90d90d6c1e607d5f282e987
     26checksums           rmd160  712b8fc05dcc230940abe4d897357bb49d418e00 \
     27                    sha256  b9fe97bdd0981098b3136456954b6ece718e5efb6a782b0f98f519ccf28a8429
    2828
    2929depends_lib-append \
    3030    port:fox \
     
    4242set docdir            ${prefix}/share/doc/${name}
    4343set python_bin        ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
    4444set python_lib        ${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
    45 set perl_bin          "/usr/bin/env perl"
    4645
    4746post-patch {
    4847    reinplace "s#std::getenv(\"SUMO_HOME\")#\"${sharedir}\"#" src/utils/xml/SUMOSAXReader.cpp
     
    5958        reinplace -E "s#^import (xsd|collectinghandler|connections|turndefinitions|rmsd)#from sumolib import \\1#" $f
    6059        reinplace -E "s#^import (os,.*), helpers#import \\1, sumolib.helpers as helpers#" $f
    6160    }
    62     foreach f $perl_scripts {
    63         reinplace "s#/usr/bin/perl#${perl_bin}#" $f
    64     }
    65     reinplace -E "s#(removeTripsIfNotInInterval).pl#sumo-\\1#" tools/trip/splitTripsByHours.pl
    6661}
    6762
    6863# List of all python scripts. Used later to ensure usage of python27
     
    8479    tools/detector/validate.py \
    8580    tools/district/countConnectionsInDistricts.py \
    8681    tools/district/districtMapper.py \
    87     tools/district/edgesInDistricts.py \
    8882    tools/net/0103to0110.py \
    8983    tools/net/0123to0130.py \
    9084    tools/net/batch0103to0110.py \
     
    146140    tools/traci/rebuildConstants.py \
    147141    tools/traci/traciToHex.py \
    148142    tools/trigger/csv2vss.py \
    149     tools/trip/generateTripsXml.py \
    150     tools/trip/randomTrips.py \
    151     tools/trip/route2trips.py \
    152143    tools/turn-defs/generateTurnDefs.py \
    153144    tools/visualization/mpl_dump_onNet.py \
    154145    tools/visualization/mpl_dump_timeline.py \
     
    204195    docs/tutorial/traci_tls/runner.py \
    205196]
    206197
    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 executed
    213 #    tools/purgatory/xml2csv.pl \
    214 
    215198# required for the gui to be enabled
    216199configure.args-append \
    217200    --with-fox=${prefix}
     
    267250        xinstall -m 755 ${worksrcpath}/${f} ${destroot}${python_lib}/sumolib/
    268251    }
    269252
    270     foreach f [list {*}$python_scripts {*}$perl_scripts] {
     253    foreach f [list {*}$python_scripts] {
    271254        # convert file names to use dash rather than underscore and remove trailing .py or .pl
    272255        set x [string map [list _ -] [file rootname [file tail ${f}]]]
    273256        xinstall -m 755 ${worksrcpath}/${f} ${destroot}${prefix}/bin/sumo-${x}