Changeset 117768


Ignore:
Timestamp:
Mar 11, 2014, 2:24:56 PM (7 years ago)
Author:
mojca@…
Message:

mojca/gate: fetch the latest version, enable (nonfunctional) geant4 10.0, include date/sha in version string

Location:
users/mojca/ports/science/gate
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • users/mojca/ports/science/gate/Portfile

    r109205 r117768  
    99PortGroup           active_variants 1.1
    1010
     11set                 git_sha 30625f7f3c
     12set                 git_date 20140228
     13
    1114# TODO: temporary - if checksums are desired
    1215PortGroup           github 1.0
    13 github.setup        mojca gate 0bd5cc471e
     16github.setup        mojca gate ${git_sha}
    1417
    1518## official repository
    1619# fetch.type          git
    1720# git.url             http://git.opengatecollaboration.org/git/opengate-public.git
    18 # git.branch          0bd5cc471ecaf0032f38dba82b8204501bd20fb7
     21# git.branch          30625f7f3c28f6cb473cef35b00c5a0a3c952a40
    1922
    2023name                gate
    21 version             6.3-beta
     24version             6.99-git-${git_date}-${git_sha}
    2225categories          science
    2326maintainers         mojca
     
    3033platforms           darwin
    3134
    32 checksums           rmd160  f33ac2fad53cf94c2dd1a8307ea476030d3b6749 \
    33                     sha256  fe342d3d34e06d23d2ada53048aba1d218e02b32aa50a309121f7c3480076d07
     35checksums           rmd160  d83182e4be8df4b1fcb6fb290b101e06ff519f28 \
     36                    sha256  beeb243f024238bd9a3a2449ea1eb3bb7313887834d1726d2b6477f021d1b395
    3437
    3538set geant.data_versions_10.0 {
    36     G4NDL              4.3   G4NDL                G4NEUTRONHPDATA
    37     G4EMLOW            6.33  G4EMLOW              G4LEDATA
    38     PhotonEvaporation  2.3   G4PhotonEvaporation  G4LEVELGAMMADATA
    39     RadioactiveDecay   3.7   G4RadioactiveDecay   G4RADIOACTIVEDATA
    40     G4NEUTRONXS        1.3   G4NEUTRONXS          G4NEUTRONXSDATA
     39    G4NDL              4.4   G4NDL                G4NEUTRONHPDATA
     40    G4EMLOW            6.35  G4EMLOW              G4LEDATA
     41    PhotonEvaporation  3.0   G4PhotonEvaporation  G4LEVELGAMMADATA
     42    RadioactiveDecay   4.0   G4RadioactiveDecay   G4RADIOACTIVEDATA
     43    G4NEUTRONXS        1.4   G4NEUTRONXS          G4NEUTRONXSDATA
    4144    G4PII              1.3   G4PII                G4PIIDATA
    4245    RealSurface        1.0   RealSurface          G4REALSURFACEDATA
    4346    G4SAIDDATA         1.1   G4SAIDDATA           G4SAIDXSDATA
     47    G4ABLA             3.0   G4ABLA               G4ABLADATA
    4448}
    4549set geant.data_versions_9.6 {
     
    7074app.icon            ${filespath}/gate.png
    7175
    72 worksrcdir          gate_v${version}
    7376configure.dir       ${workpath}/build
    7477build.dir           ${configure.dir}
     
    142145variant examples description {Install examples to doc} {
    143146}
    144 variant geant495 conflicts geant496 description {Use Geant4 9.5} {
     147variant geant495 conflicts geant496 geant4100 description {Use Geant4 9.5} {
    145148    # TODO: this can probably be done in a more elegant way
    146149    #       how to copy datadir and cmakedir from geant4 without duplication?
     
    153156    configure.args-append   -DGeant4_DIR=${geant.cmakedir}
    154157}
    155 variant geant496 conflicts geant495 description {Use Geant4 9.6} {
     158variant geant496 conflicts geant495 geant4100 description {Use Geant4 9.6} {
    156159    set geant.data_versions ${geant.data_versions_9.6}
    157160    set geant.datadir       ${prefix}/share/Geant4/Data/Geant4.9.6
     
    162165    configure.args-append   -DGeant4_DIR=${geant.cmakedir}
    163166}
    164 # variant geant4100 conflicts geant495 geant496 description {Use Geant4 10.0 (doesn't work yet)} {
    165 #     set geant.data_versions ${geant.data_versions_10.0}
    166 #     set geant.datadir       ${prefix}/share/Geant4/Data/Geant4.10.0
    167 #     set geant.cmakedir      ${prefix}/lib/Geant4-10.0.0
    168 #
    169 #     depends_lib-append      port:geant4-10.0
    170 #     require_active_variants geant4-10.0 qt
    171 #     configure.args-append   -DGeant4_DIR=${geant.cmakedir}
    172 # }
    173 if {![variant_isset geant495] && ![variant_isset geant496]} {
     167variant geant4100 conflicts geant495 geant496 description {Use Geant4 10.0 (doesn't work yet)} {
     168    set geant.data_versions ${geant.data_versions_10.0}
     169    set geant.datadir       ${prefix}/share/Geant4/Data/Geant4.10.0
     170    set geant.cmakedir      ${prefix}/lib/Geant4-10.0.0
     171
     172    depends_lib-append      port:geant4.10.0
     173    require_active_variants geant4.10.0 qt
     174    configure.args-append   -DGeant4_DIR=${geant.cmakedir}
     175}
     176
     177if {![variant_isset geant495] && ![variant_isset geant496] && ![variant_isset geant4100]} {
    174178    default_variants +geant496
    175179}
  • users/mojca/ports/science/gate/files/patch-addmenu.diff

    r109205 r117768  
    11--- Gate.cc
    22+++ Gate.cc
    3 @@ -370,6 +370,7 @@ int main( int argc, char* argv[] )
    4      }
    5    else if( ui ) // Launching interactive mode // Qt
    6      {
    7 +      UImanager->ApplyCommand("/gate/control/execute gui.mac");
    8        ui->SessionStart();
    9        delete ui;
    10      }
     3@@ -368,6 +368,7 @@ int main( int argc, char* argv[] )
     4   else {
     5     if (ui) // Launching interactive mode // Qt
     6       {
     7+        UImanager->ApplyCommand("/gate/control/execute gui.mac");
     8         ui->SessionStart();
     9         delete ui;
     10       }
Note: See TracChangeset for help on using the changeset viewer.