Ticket #23323: geant4-ryandesign1.diff
File geant4-ryandesign1.diff, 2.9 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago) |
---|
-
Portfile
90 90 reinplace "s:\$(G4SYSTEM).gmk:Darwin-g++.gmk:g" ${workpath}/geant${version}/config/common.gmk 91 91 reinplace "s:\$(G4SYSTEM).gmk:Darwin-g++.gmk:g" ${workpath}/geant${version}/examples/extended/eventgenerator/HepMC/HepMCEx01/external/GNUmakefile 92 92 93 # Copies some files to fix them94 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} 97 97 98 # Fixes some paths99 foreach file [list ${worksrcpath}/env.sh ${worksrcpath}/env.csh] {100 98 reinplace "s:@PREFIX@:${prefix}:g" ${file} 101 99 reinplace "s:@WORKSRCPATH@:${worksrcpath}:g" ${file} 102 100 reinplace "s:@DESTROOT@:${destroot}:g" ${file} … … 198 196 } 199 197 200 198 destroot { 201 puts "Installing env scripts to ${prefix}/share/geant4/"202 203 199 xinstall -d ${destroot}${prefix}/share/geant4/ 204 200 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/ 209 202 210 203 xinstall -d ${destroot}${prefix}/share/geant4/data 211 204 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}" { 214 206 file copy ${workpath}/${data} ${destroot}${prefix}/share/geant4/data 215 207 } 216 208 217 puts "Installing sources to ${prefix}/src/geant4/${version}"218 219 209 xinstall -d ${destroot}${prefix}/src/geant4/${version} 220 210 221 211 foreach sources {config source environments examples} { 222 puts "-> Installing ${sources} to ${prefix}/src/geant4/${version}"223 212 file copy ${workpath}/geant${version}/${sources} ${destroot}${prefix}/src/geant4/${version} 224 213 } 225 214 226 puts "Installing headers to ${prefix}/include/"227 228 215 fs-traverse file ${workpath}/geant${version}/include/ { 229 216 file copy ${file} ${destroot}${prefix}/include/ 230 217 } 231 218 232 puts "Installing libs to ${prefix}/lib/geant4/${version}"233 234 219 xinstall -d ${destroot}${prefix}/lib/geant4/ 235 220 236 221 file copy ${workpath}/geant${version}/lib/${version}/ ${destroot}${prefix}/lib/geant4/ 237 222 238 puts "Installing executables to ${prefix}/bin"239 240 223 fs-traverse file ${workpath}/geant${version}/bin/ { 241 224 file copy ${file} ${destroot}${prefix}/bin/ 242 225 }