Ticket #23323: geant4-ryandesign1.diff

File geant4-ryandesign1.diff, 2.9 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
  • Portfile

     
    9090    reinplace "s:\$(G4SYSTEM).gmk:Darwin-g++.gmk:g" ${workpath}/geant${version}/config/common.gmk
    9191    reinplace "s:\$(G4SYSTEM).gmk:Darwin-g++.gmk:g" ${workpath}/geant${version}/examples/extended/eventgenerator/HepMC/HepMCEx01/external/GNUmakefile
    9292
    93     # Copies some files to fix them
    94     foreach file [list ${filespath}/env.sh ${filespath}/env.csh] {
    95         file copy ${file} ${worksrcpath}
    96     }
     93    # Fixes paths in shell setup scripts
     94    foreach filename {env.csh env.sh} {
     95        file copy ${filespath}/${filename} ${worksrcpath}
     96        set file ${worksrcpath}/${filename}
    9797
    98     # Fixes some paths
    99     foreach file [list ${worksrcpath}/env.sh ${worksrcpath}/env.csh] {
    10098        reinplace "s:@PREFIX@:${prefix}:g" ${file}
    10199        reinplace "s:@WORKSRCPATH@:${worksrcpath}:g" ${file}
    102100        reinplace "s:@DESTROOT@:${destroot}:g" ${file}
     
    198196}
    199197
    200198destroot {
    201     puts "Installing env scripts to ${prefix}/share/geant4/"
    202 
    203199    xinstall -d ${destroot}${prefix}/share/geant4/
    204200
    205     xinstall -m 755 -W ${worksrcpath} env.sh ${destroot}${prefix}/share/geant4/
    206     xinstall -m 755 -W ${worksrcpath} env.csh ${destroot}${prefix}/share/geant4/
    207 
    208     puts "Installing GEANT4 data to ${prefix}/share/geant4/data"
     201    xinstall -W ${worksrcpath} env.csh env.sh ${destroot}${prefix}/share/geant4/
    209202
    210203    xinstall -d ${destroot}${prefix}/share/geant4/data
    211204
    212     foreach data [list G4NDL${G4NDL_v} G4EMLOW${G4EMLOW_v} PhotonEvaporation${PhotonEvaporation_v} RadioactiveDecay${RadioactiveDecay_v} G4ABLA${G4ABLA_v} RealSurface${RealSurface_v}] {
    213         puts "-> Installing ${data} to ${prefix}/share/geant4/data"
     205    foreach data "G4NDL${G4NDL_v} G4EMLOW${G4EMLOW_v} PhotonEvaporation${PhotonEvaporation_v} RadioactiveDecay${RadioactiveDecay_v} G4ABLA${G4ABLA_v} RealSurface${RealSurface_v}" {
    214206        file copy ${workpath}/${data} ${destroot}${prefix}/share/geant4/data
    215207    }
    216208
    217     puts "Installing sources to ${prefix}/src/geant4/${version}"
    218 
    219209    xinstall -d ${destroot}${prefix}/src/geant4/${version}
    220210
    221211    foreach sources {config source environments examples} {
    222         puts "-> Installing ${sources} to ${prefix}/src/geant4/${version}"
    223212        file copy ${workpath}/geant${version}/${sources} ${destroot}${prefix}/src/geant4/${version}
    224213    }
    225214
    226     puts "Installing headers to ${prefix}/include/"
    227 
    228215    fs-traverse file ${workpath}/geant${version}/include/ {
    229216        file copy ${file} ${destroot}${prefix}/include/
    230217    }
    231218
    232     puts "Installing libs to ${prefix}/lib/geant4/${version}"
    233 
    234219    xinstall -d ${destroot}${prefix}/lib/geant4/
    235220
    236221    file copy ${workpath}/geant${version}/lib/${version}/ ${destroot}${prefix}/lib/geant4/
    237222
    238     puts "Installing executables to ${prefix}/bin"
    239 
    240223    fs-traverse file ${workpath}/geant${version}/bin/ {
    241224        file copy ${file} ${destroot}${prefix}/bin/
    242225    }