[107636] users/mojca

mojca at macports.org mojca at macports.org
Wed Jul 3 07:58:36 PDT 2013


Revision: 107636
          https://trac.macports.org/changeset/107636
Author:   mojca at macports.org
Date:     2013-07-03 07:58:36 -0700 (Wed, 03 Jul 2013)
Log Message:
-----------
geant4.9.6 & geant4.9.10: add a variant to build examples

Modified Paths:
--------------
    users/mojca/notes/Geant4.txt
    users/mojca/ports/science/geant4.10.0/Portfile
    users/mojca/ports/science/geant4.9.6/Portfile

Added Paths:
-----------
    users/mojca/ports/science/geant4.9.6/files/
    users/mojca/ports/science/geant4.9.6/files/patch-cmake_Modules_FindAIDA.cmake.diff

Modified: users/mojca/notes/Geant4.txt
===================================================================
--- users/mojca/notes/Geant4.txt	2013-07-03 13:26:30 UTC (rev 107635)
+++ users/mojca/notes/Geant4.txt	2013-07-03 14:58:36 UTC (rev 107636)
@@ -62,7 +62,30 @@
 ZLIB
 - GEANT4_USE_SYSTEM_ZLIB           OFF
 
+Additional packages that might be useful:
+- gccxml-devel
+	-- G4 Examples: GCCXML not found. --> P01 example disabled
+	-- G4 Examples: GCCXML not found. --> P02 example disabled
+- pythia (but it's version 8!)
+	-- G4 Examples: Pythia6 package not found. --> decayer6 example disabled
+- gdml (no such port)
+	-- G4 Examples: GDML not installed --> ChargeExchangeMC example disabled
+	-- G4 Examples: GDML not installed --> gdml examples disabled
+	-- G4 Examples: gdml not found. --> human_phantom example with gdml disabled.
+- hbook (no such port)
+	-- G4 Examples: HBOOK package not found. --> g4tools/hbook analysis disabled
+	-- G4 Examples: HBOOK package not found. --> g4tools/hbook analysis disabled
+- hepmc (no such port)
+	-- G4 Examples: HepMC package not found. --> HepMCEx01 example disabled
+	-- G4 Examples: HepMC package not found. --> HepMCEx02 example disabled
+	-- G4 Examples: HepMC package not found. --> MCTruth example disabled
 
+- this is wrong:
+	-- G4 Examples: AIDA package not found. --> CompositeCalorimeter example disabled
+- probably not needed:
+	-- G4 Examples: G3TOG4 not installed --> g3tog4 examples disabled
+
+
 Release dates and package dependencies:
 
 a = G4NDL

Modified: users/mojca/ports/science/geant4.10.0/Portfile
===================================================================
--- users/mojca/ports/science/geant4.10.0/Portfile	2013-07-03 13:26:30 UTC (rev 107635)
+++ users/mojca/ports/science/geant4.10.0/Portfile	2013-07-03 14:58:36 UTC (rev 107636)
@@ -70,6 +70,12 @@
                           -DCLHEP_LIBRARY=${prefix}/lib/libCLHEP.dylib
 }
 
+# TODO: figure out how to install binaries somewhere else
+variant examples requires clhep description {Build and install examples} {
+    configure.args-append -DGEANT4_BUILD_EXAMPLES=ON \
+                          -DGEANT4_INSTALL_EXAMPLES=ON
+}
+
 configure.args-append -DGEANT4_INSTALL_DATA=OFF \
                       -DGEANT4_INSTALL_DATADIR=${prefix}/share/Geant4/Data \
                       -DCMAKE_INSTALL_BINDIR=libexec/Geant4/Geant${simpleversion} \

Modified: users/mojca/ports/science/geant4.9.6/Portfile
===================================================================
--- users/mojca/ports/science/geant4.9.6/Portfile	2013-07-03 13:26:30 UTC (rev 107635)
+++ users/mojca/ports/science/geant4.9.6/Portfile	2013-07-03 14:58:36 UTC (rev 107636)
@@ -34,6 +34,8 @@
     file mkdir ${configure.dir}
 }
 
+patchfiles          patch-cmake_Modules_FindAIDA.cmake.diff
+
 configure.post_args ${worksrcpath}
 
 depends_lib         port:geant4-data-G4NDL-4.2 \
@@ -67,6 +69,12 @@
                           -DCLHEP_LIBRARY=${prefix}/lib/libCLHEP.dylib
 }
 
+# TODO: figure out how to install binaries somewhere else
+variant examples requires clhep description {Build and install examples} {
+    configure.args-append -DGEANT4_BUILD_EXAMPLES=ON \
+                          -DGEANT4_INSTALL_EXAMPLES=ON
+}
+
 configure.args-append -DGEANT4_INSTALL_DATA=OFF \
                       -DGEANT4_INSTALL_DATADIR=${prefix}/share/Geant4/Data \
                       -DCMAKE_INSTALL_BINDIR=libexec/Geant4/Geant${simpleversion} \

Added: users/mojca/ports/science/geant4.9.6/files/patch-cmake_Modules_FindAIDA.cmake.diff
===================================================================
--- users/mojca/ports/science/geant4.9.6/files/patch-cmake_Modules_FindAIDA.cmake.diff	                        (rev 0)
+++ users/mojca/ports/science/geant4.9.6/files/patch-cmake_Modules_FindAIDA.cmake.diff	2013-07-03 14:58:36 UTC (rev 107636)
@@ -0,0 +1,14 @@
+--- cmake/Modules/FindAIDA.cmake.orig
++++ cmake/Modules/FindAIDA.cmake
+@@ -30,10 +30,7 @@ else()
+     OUTPUT_VARIABLE AIDA_LIBRARIES
+     OUTPUT_STRIP_TRAILING_WHITESPACE)
+ 
+-  execute_process(
+-    COMMAND ${AIDA_CONFIG_EXECUTABLE} --implementation
+-    OUTPUT_VARIABLE AIDA_IMPLEMENTATION
+-    OUTPUT_STRIP_TRAILING_WHITESPACE)
++  set(AIDA_IMPLEMENTATION "MacPorts")
+ 
+   # Make variables changeble to the advanced user
+   mark_as_advanced(AIDA_CONFIG_EXECUTABLE)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130703/95cbf4e1/attachment.html>


More information about the macports-changes mailing list