[107544] users/mojca
mojca at macports.org
mojca at macports.org
Tue Jul 2 12:26:33 PDT 2013
Revision: 107544
https://trac.macports.org/changeset/107544
Author: mojca at macports.org
Date: 2013-07-02 12:26:33 -0700 (Tue, 02 Jul 2013)
Log Message:
-----------
add experimental port for Gate 6.2
Modified Paths:
--------------
users/mojca/notes/Gate.txt
Added Paths:
-----------
users/mojca/ports/science/gate/
users/mojca/ports/science/gate/Portfile
users/mojca/ports/science/gate/files/
users/mojca/ports/science/gate/files/patch-compileerrors.diff
Modified: users/mojca/notes/Gate.txt
===================================================================
--- users/mojca/notes/Gate.txt 2013-07-02 18:47:08 UTC (rev 107543)
+++ users/mojca/notes/Gate.txt 2013-07-02 19:26:33 UTC (rev 107544)
@@ -12,3 +12,6 @@
- http://suhard.fr/gate/
- http://suhard.fr/gate/gate6.1.dmg
- http://suhard.fr/gate/gate6.2.dmg
+
+TODO:
+- copy license/LICENSE.txt
Added: users/mojca/ports/science/gate/Portfile
===================================================================
--- users/mojca/ports/science/gate/Portfile (rev 0)
+++ users/mojca/ports/science/gate/Portfile 2013-07-02 19:26:33 UTC (rev 107544)
@@ -0,0 +1,65 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id: $
+
+PortSystem 1.0
+PortGroup cmake 1.0
+PortGroup github 1.0
+
+# TODO: just temporary
+github.setup mojca opengate 06d46c2
+
+name gate
+version 6.2
+categories science
+maintainers mojca
+license LGPL
+description GATE description
+long_description GATE is dedicated to numerical simulations in medical imaging and radiotherapy. \
+ It currently supports simulations of Emission Tomography (PET and SPECT), \
+ Computed Tomography (CT) and Radiotherapy experiments.
+homepage http://www.opengatecollaboration.org
+platforms darwin
+
+# distfiles gate_v6_2_tar_gz_15843.gz
+# master_sites http://www.opengatecollaboration.org/sites/opengatecollaboration.org/files/gate_release/2012/08/
+
+checksums rmd160 0b03bd6273202e5dc6f4e443ebb92d1b2f7576b4 \
+ sha256 5a73951f65d961723f167f3c30a1c5fbf0eb9ca29fb634710e76697f33348df4
+
+patchfiles patch-compileerrors.diff
+
+worksrcdir gate_v${version}
+configure.dir ${workpath}/build
+build.dir ${configure.dir}
+
+post-extract {
+ file mkdir ${configure.dir}
+}
+
+configure.post_args ${worksrcpath}
+
+depends_lib port:geant4.9.6
+# clhep implied with geant4
+
+# depends_lib port:clhep \
+# port:zlib
+
+# WITH_GEANT4_UIVIS=ON
+variant qt description {Build with Qt support} {
+ depends_lib-append port:qt4-mac
+
+ # configure.args-append -DGEANT4_USE_QT=ON
+ # maybe we need more variables?
+}
+
+configure.args-append -DGATE_USE_OWN_CLHEP=OFF
+# configure.args-append -DGEANT4_INSTALL_DATA=ON \
+# -DGEANT4_BUILD_EXAMPLES=ON \
+# -DGEANT4_INSTALL_EXAMPLES=ON \
+# -DWITH_GEANT4_UIVIS=ON \
+# -DGEANT4_USE_OPENGL_X11=ON
+
+# TODO: this should come from Geant4 PortGroup
+configure.args-append -DGeant4_DIR=${prefix}/lib/Geant4/Geant4.9.6/Geant4-9.6.2
+
+default_variants +qt
Added: users/mojca/ports/science/gate/files/patch-compileerrors.diff
===================================================================
--- users/mojca/ports/science/gate/files/patch-compileerrors.diff (rev 0)
+++ users/mojca/ports/science/gate/files/patch-compileerrors.diff 2013-07-02 19:26:33 UTC (rev 107544)
@@ -0,0 +1,40 @@
+--- source/general/include/GateUIcmdWithAVector.hh
++++ source/general/include/GateUIcmdWithAVector.hh
+@@ -118,14 +118,14 @@ template<typename vContentType>
+ G4String GateUIcmdWithAVector<vContentType>::ConvertToString
+ (std::vector<vContentType> vec)
+ {
+- char st[100];
++ //char st[100];
+ //LF
+ //std::ostrstream os(st,100);
+- std::ostringstream os(st,100);
++ std::ostringstream os;
+ //LF
+ for (G4int i=0; i<vec.size(); i++) os << vec[i] << " ";
+ os << '\0';
+- G4String vl = st;
++ G4String vl = os.str();
+ G4cout << "GateUIcmdWithAVector::ConvertToString : " << vl << G4endl;
+ return vl;
+ }
+--- source/physics/src/GateBinaryCascade.cc
++++ source/physics/src/GateBinaryCascade.cc
+@@ -2278,7 +2278,7 @@ G4Fragment * GateBinaryCascade::FindFragments()
+ }
+
+ G4int zCaptured = 0;
+- G4LorentzVector CapturedMomentum=0;
++ G4LorentzVector CapturedMomentum(0);
+ for(i = theCapturedList.begin(); i != theCapturedList.end(); ++i)
+ {
+ CapturedMomentum += (*i)->Get4Momentum();
+@@ -2392,7 +2392,7 @@ G4LorentzVector GateBinaryCascade::GetFinalNucleusMomentum()
+ // return momentum of nucleus for use with precompound model; also keep transformation to
+ // apply to precompoud products.
+
+- G4LorentzVector CapturedMomentum=0;
++ G4LorentzVector CapturedMomentum(0);
+ G4KineticTrackVector::iterator i;
+ // G4cout << "GetFinalNucleusMomentum Captured size: " <<theCapturedList.size() << G4endl;
+ for(i = theCapturedList.begin(); i != theCapturedList.end(); ++i)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130702/92b26554/attachment.html>
More information about the macports-changes
mailing list