[121629] trunk/dports/science/gate/Portfile

mojca at macports.org mojca at macports.org
Wed Jul 2 14:48:49 PDT 2014


Revision: 121629
          https://trac.macports.org/changeset/121629
Author:   mojca at macports.org
Date:     2014-07-02 14:48:49 -0700 (Wed, 02 Jul 2014)
Log Message:
-----------
gate: fetch newer sources, update geant variants, add support for geant4.10.1 and qt5-mac

Modified Paths:
--------------
    trunk/dports/science/gate/Portfile

Modified: trunk/dports/science/gate/Portfile
===================================================================
--- trunk/dports/science/gate/Portfile	2014-07-02 19:25:54 UTC (rev 121628)
+++ trunk/dports/science/gate/Portfile	2014-07-02 21:48:49 UTC (rev 121629)
@@ -9,7 +9,8 @@
 PortGroup           active_variants 1.1
 
 set                 git_sha f97fe6c0a0
-set                 git_date 20140507
+set                 git_sha fb703c22a9
+set                 git_date 20140619
 
 # Using GitHub just for the sake of downloadable zips
 PortGroup           github 1.0
@@ -17,6 +18,7 @@
 name                gate
 version             7.0
 # version           7.0-git-${git_date}-${git_sha}
+revision            1
 
 ## official repository
 # fetch.type        git
@@ -33,9 +35,22 @@
 homepage            http://www.opengatecollaboration.org
 platforms           darwin
 
-checksums           rmd160  01e29ed24c6eebaad73ff4a74afc481e618804ff \
-                    sha256  ca1cdac09686407fb3890c3ae162772409d8527a3c46b9997dc2edf91a86f270
+checksums           rmd160  590263b16a9ab28f7ce52e2633d75b7409dfea44 \
+                    sha256  ac5e7e5507e5704939b112bc7c318e362ffee755fac07dd2582f5251c1e589d6
 
+# TODO: take this data from a geant4 portgroup
+set geant.data_versions_10.1 {
+    G4NDL              4.4   G4NDL                G4NEUTRONHPDATA
+    G4EMLOW            6.39  G4EMLOW              G4LEDATA
+    PhotonEvaporation  3.1   G4PhotonEvaporation  G4LEVELGAMMADATA
+    RadioactiveDecay   4.1   G4RadioactiveDecay   G4RADIOACTIVEDATA
+    G4NEUTRONXS        1.4   G4NEUTRONXS          G4NEUTRONXSDATA
+    G4PII              1.3   G4PII                G4PIIDATA
+    RealSurface        1.0   RealSurface          G4REALSURFACEDATA
+    G4SAIDDATA         1.1   G4SAIDDATA           G4SAIDXSDATA
+    G4ABLA             3.0   G4ABLA               G4ABLADATA
+    G4ENSDFSTATE       1.0   G4ENSDFSTATE         G4ENSDFSTATEDATA
+}
 set geant.data_versions_10.0 {
     G4NDL              4.4   G4NDL                G4NEUTRONHPDATA
     G4EMLOW            6.35  G4EMLOW              G4LEDATA
@@ -83,8 +98,7 @@
 }
 configure.post_args ${worksrcpath}
 
-depends_lib         port:qt4-mac \
-                    port:root5
+depends_lib         port:root5
 
 # Geant4.9.5 probably doesn't support icon bars
 if {![variant_isset geant495]} {
@@ -152,36 +166,70 @@
 
 variant examples description {Install examples to doc} {
 }
-variant geant495 conflicts geant496 geant4100 description {Use Geant4 9.5 (deprecated)} {
+variant geant495 conflicts geant496 geant4100 geant4101 description {Use Geant4 9.5 (deprecated)} {
     # TODO: this can probably be done in a more elegant way
     #       how to copy datadir and cmakedir from geant4 without duplication?
+    set geant.version       9.5
+    set geant.revision      2
+    set geant.port_name     geant4.${geant.version}
     set geant.data_versions ${geant.data_versions_9.5}
-    set geant.datadir       ${prefix}/share/Geant4/Data/Geant4.9.5
-    set geant.cmakedir      ${prefix}/lib/Geant4-9.5.2
+    set geant.datadir       ${prefix}/share/Geant4/Data/Geant4.${geant.version}
+    set geant.cmakedir      ${prefix}/lib/Geant4-${geant.version}.${geant.revision}
 
-    depends_lib-append      port:geant4.9.5
-    require_active_variants geant4.9.5 qt
+    depends_lib-append      port:${geant.port_name}
     configure.args-append   -DGeant4_DIR=${geant.cmakedir}
 }
-variant geant496 conflicts geant495 geant4100 description {Use Geant4 9.6} {
+variant geant496 conflicts geant495 geant4100 geant4101 description {Use Geant4 9.6} {
+    set geant.version       9.6
+    set geant.revision      3
+    set geant.port_name     geant4.${geant.version}
     set geant.data_versions ${geant.data_versions_9.6}
-    set geant.datadir       ${prefix}/share/Geant4/Data/Geant4.9.6
-    set geant.cmakedir      ${prefix}/lib/Geant4-9.6.2
+    set geant.datadir       ${prefix}/share/Geant4/Data/Geant4.${geant.version}
+    set geant.cmakedir      ${prefix}/lib/Geant4-${geant.version}.${geant.revision}
 
-    depends_lib-append      port:geant4.9.6
-    require_active_variants geant4.9.6 qt
+    depends_lib-append      port:${geant.port_name}
     configure.args-append   -DGeant4_DIR=${geant.cmakedir}
 }
-variant geant4100 conflicts geant495 geant496 description {Use Geant4 10.0 (not yet officially supported)} {
+variant geant4100 conflicts geant495 geant496 geant4101 description {Use Geant4 10.0 (not officially supported yet)} {
+    set geant.version       10.0
+    set geant.revision      2
+    set geant.port_name     geant4.${geant.version}
     set geant.data_versions ${geant.data_versions_10.0}
-    set geant.datadir       ${prefix}/share/Geant4/Data/Geant4.10.0
-    set geant.cmakedir      ${prefix}/lib/Geant4-10.0.0
+    set geant.datadir       ${prefix}/share/Geant4/Data/Geant4.${geant.version}
+    set geant.cmakedir      ${prefix}/lib/Geant4-${geant.version}.${geant.revision}
 
-    depends_lib-append      port:geant4.10.0
-    require_active_variants geant4.10.0 qt
+    depends_lib-append      port:${geant.port_name}
     configure.args-append   -DGeant4_DIR=${geant.cmakedir}
 }
+variant geant4101 conflicts geant495 geant496 geant4100 description {Use Geant4 10.1 (not officially supported yet)} {
+    set geant.version       10.1
+    set geant.revision      0
+    set geant.port_name     geant4.${geant.version}
+    set geant.data_versions ${geant.data_versions_10.1}
+    set geant.datadir       ${prefix}/share/Geant4/Data/Geant4.${geant.version}
+    set geant.cmakedir      ${prefix}/lib/Geant4-${geant.version}.${geant.revision}
 
-if {![variant_isset geant495] && ![variant_isset geant496] && ![variant_isset geant4100]} {
-    default_variants +geant496
+    depends_lib-append      port:${geant.port_name}
+    configure.args-append   -DGeant4_DIR=${geant.cmakedir}
 }
+
+variant qt4 conflicts qt5 description {Use Geant4 with Qt 4} {
+    depends_lib-append      port:qt4-mac
+}
+variant qt5 conflicts qt4 description {Use Geant4 with Qt 5} {
+    depends_lib-append      port:qt5-mac
+}
+
+if {![variant_isset geant495] && ![variant_isset geant496] && ![variant_isset geant4100] && ![variant_isset geant4101]} {
+    default_variants-append +geant496
+}
+if {![variant_isset qt4] && ![variant_isset qt5]} {
+    # TODO: determine this automatically based on what variant is used by Geant4
+    default_variants-append +qt4
+}
+if {[variant_isset qt4]} {
+    # TODO: how to implement this properly?
+    # require_active_variants ${geant.port_name} qt
+} elseif {[variant_isset qt5]} {
+    # require_active_variants ${geant.port_name} qt5
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140702/242ef4bf/attachment-0001.html>


More information about the macports-changes mailing list