[107769] users/mojca
mojca at macports.org
mojca at macports.org
Fri Jul 5 06:04:21 PDT 2013
Revision: 107769
https://trac.macports.org/changeset/107769
Author: mojca at macports.org
Date: 2013-07-05 06:04:21 -0700 (Fri, 05 Jul 2013)
Log Message:
-----------
geant4-data: fix permissions; some developer notes
Modified Paths:
--------------
users/mojca/notes/Gate.txt
users/mojca/notes/Geant4.txt
users/mojca/ports/science/geant4-data/Portfile
Modified: users/mojca/notes/Gate.txt
===================================================================
--- users/mojca/notes/Gate.txt 2013-07-05 13:03:15 UTC (rev 107768)
+++ users/mojca/notes/Gate.txt 2013-07-05 13:04:21 UTC (rev 107769)
@@ -16,3 +16,5 @@
TODO:
- copy license/LICENSE.txt
- copy examples & benchmarks
+- figure out if there is some CMAKE variable to copy the examples automatically
+- maybe put the Gate binary to libexec and create a shell script in ${prefix}/bin/Gate which sets all the necessary variables (data files) and calls the real binary afterwards
Modified: users/mojca/notes/Geant4.txt
===================================================================
--- users/mojca/notes/Geant4.txt 2013-07-05 13:03:15 UTC (rev 107768)
+++ users/mojca/notes/Geant4.txt 2013-07-05 13:04:21 UTC (rev 107769)
@@ -38,8 +38,32 @@
- Try to get rid of one level in /opt/local/include/Geant4/Geant4.10.0/Geant4
- Try to build examples and test whether they work
- Carefully check different CMake configuration options
+- For 9.5 the following variables need to be set:
+ export G4DATA=/opt/local/share/Geant4/Data
+ export G4NEUTRONHPDATA=$G4DATA/G4NDL4.0
+ export G4LEDATA=$G4DATA/G4EMLOW6.23
+ export G4LEVELGAMMADATA=$G4DATA/PhotonEvaporation2.2
+ export G4RADIOACTIVEDATA=$G4DATA/RadioactiveDecay3.4
+ export G4NEUTRONXSDATA=$G4DATA/G4NEUTRONXS1.2
+ export G4ABLA=$G4DATA/G4ABLA3.0
+ export G4PIIDATA=$G4DATA/G4PII1.3
+ export G4REALSURFACEDATA=$G4DATA/RealSurface1.0
+ and probably similar for 9.6
+- geant4-config could use absolute paths instead of -L/opt/local/libexec/Geant4/Geant4.9.6/../../../lib/Geant4/Geant4.9.6
+- figure out if it is possible to hardcode paths into Geant4 sources to some extent
+ example: G4PenelopeOscillatorManage.cc uses
+ char* path = getenv("G4LEDATA");
+- The following files have "wrong" permissions:
+ ./G4NEUTRONXS1.1:
+ -rwxr-xr-x 1 macports admin 256B 15 nov 2011 History
+ -rwxr-xr-x 1 macports admin 428B 15 nov 2011 README
+ ./G4NEUTRONXS1.2:
+ -rwxr-xr-x 1 macports admin 331B 15 okt 2012 History
+ ./G4NEUTRONXS1.3:
+ -rwxr-xr-x 1 macports admin 406B 8 feb 20:44 History
+ -rwxr-xr-x 1 macports admin 547B 8 feb 20:43 README
+ ./PhotonEvaporation2.2:
-
Options:
- DATAROOTDIR: Geant automatically adds /Geant4-9.6.2 (any way to prevent this?)
- INCLUDEDIR: /opt/local/include/Geant4/Geant4.9.6/Geant4 (any way to prevent double Geant4?)
Modified: users/mojca/ports/science/geant4-data/Portfile
===================================================================
--- users/mojca/ports/science/geant4-data/Portfile 2013-07-05 13:03:15 UTC (rev 107768)
+++ users/mojca/ports/science/geant4-data/Portfile 2013-07-05 13:04:21 UTC (rev 107769)
@@ -48,6 +48,17 @@
distfiles ${data.filename}.${data.version}${extract.suffix}
checksums md5 ${data.md5} rmd160 ${data.rmd160} sha256 ${data.sha256}
distname ${data.distname}${data.version}
+ # a patch for wrong file permissions (6.23 is for 9.5, 6.32 is for 9.6)
+ post-extract {
+ if {$subport == "${name}-G4EMLOW-6.23" || $subport == "${name}-G4EMLOW-6.32"} {
+ # these files don't have sufficient permissions, but others have 755
+ # /penelope/pdatconf.p08
+ # /penelope/rayleigh/*
+ system "find ${workpath}/${distname} -type f -exec chmod 644 {} \\;"
+ # alternatively G4EMLOW-6.32 can be fetched from G4EMLOW.6.32_permissions.tar.gz
+ # the following files could also be fixed: G4NEUTRONXS 1.1/1.2/1.3, PhotonEvaporation 2.2
+ }
+ }
use_configure no
build {}
destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130705/50471757/attachment.html>
More information about the macports-changes
mailing list