Revision: 108461 https://trac.macports.org/changeset/108461 Author: mojca@macports.org Date: 2013-07-23 10:18:42 -0700 (Tue, 23 Jul 2013) Log Message: ----------- geant4: add support for port select Modified Paths: -------------- users/mojca/notes/Geant4.txt users/mojca/ports/science/geant/Portfile Added Paths: ----------- users/mojca/ports/science/geant/files/geant4.10.0 users/mojca/ports/science/geant/files/geant4.9.5 users/mojca/ports/science/geant/files/geant4.9.6 users/mojca/ports/sysutils/ users/mojca/ports/sysutils/geant4_select/ users/mojca/ports/sysutils/geant4_select/Portfile users/mojca/ports/sysutils/geant4_select/files/ users/mojca/ports/sysutils/geant4_select/files/base users/mojca/ports/sysutils/geant4_select/files/none Modified: users/mojca/notes/Geant4.txt =================================================================== --- users/mojca/notes/Geant4.txt 2013-07-23 16:53:49 UTC (rev 108460) +++ users/mojca/notes/Geant4.txt 2013-07-23 17:18:42 UTC (rev 108461) @@ -1,7 +1,6 @@ TODO: - decide on a precise name (geant/geant4 and geant4.9.6/geant4-9.6) - What licence is needed to make sure that Geant can be installed as a binary package? -- install geant4-config via "port select" - print out a notice about setting up the environmental variables (this port uses a nonstandard way to set them up) - specify expat more precisely @@ -9,7 +8,7 @@ /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0) - should these come from macports? + should these come from macports? Try mesa: /usr/X11/lib/libGL.1.dylib (compatibility version 1.2.0, current version 1.2.0) /usr/X11/lib/libGLU.1.dylib (compatibility version 1.3.0, current version 1.3.0) @@ -161,6 +160,7 @@ - Test if setting EXECUTABLE_OUTPUT_PATH helps move examples to a different place -> NO - What is /opt/local/lib/Geant4/Geant4.10.0/Geant4-10.0.0/Darwin-clang doing there? -> needed by GNUmake and needs to stay there - geant4-config could use absolute paths instead of -L/opt/local/libexec/Geant4/Geant4.9.6/../../../lib/Geant4/Geant4.9.6 -> it does when absolute paths are specified as options +- install geant4-config via "port select" Release dates and package dependencies: Modified: users/mojca/ports/science/geant/Portfile =================================================================== --- users/mojca/ports/science/geant/Portfile 2013-07-23 16:53:49 UTC (rev 108460) +++ users/mojca/ports/science/geant/Portfile 2013-07-23 17:18:42 UTC (rev 108461) @@ -5,6 +5,7 @@ PortSystem 1.0 PortGroup cmake 1.0 +PortGroup select 1.0 # TODO: this will probably be called geant4 name geant @@ -160,7 +161,12 @@ # I don't see any option to switch aida support on or off, so I'm not exactly sure how to handle the dependency # in a proper way other than making it a requirement # geant4.9.4 port provided the default +aida option + depends_run port:geant4_select + select.group geant4 + select.file ${filespath}/geant${geant.version_simple} + # TODO: if renamed, ${filespath}/${subport} + configure.args-append -DGEANT4_USE_SYSTEM_EXPAT=ON # GEANT4_USE_SYSTEM_CLHEP=OFF Added: users/mojca/ports/science/geant/files/geant4.10.0 =================================================================== --- users/mojca/ports/science/geant/files/geant4.10.0 (rev 0) +++ users/mojca/ports/science/geant/files/geant4.10.0 2013-07-23 17:18:42 UTC (rev 108461) @@ -0,0 +1,3 @@ +libexec/Geant4/Geant4.10.0/geant4-config +libexec/Geant4/Geant4.10.0/geant4data.sh +libexec/Geant4/Geant4.10.0/geant4data.csh Added: users/mojca/ports/science/geant/files/geant4.9.5 =================================================================== --- users/mojca/ports/science/geant/files/geant4.9.5 (rev 0) +++ users/mojca/ports/science/geant/files/geant4.9.5 2013-07-23 17:18:42 UTC (rev 108461) @@ -0,0 +1,3 @@ +libexec/Geant4/Geant4.9.5/geant4-config +libexec/Geant4/Geant4.9.5/geant4data.sh +libexec/Geant4/Geant4.9.5/geant4data.csh Added: users/mojca/ports/science/geant/files/geant4.9.6 =================================================================== --- users/mojca/ports/science/geant/files/geant4.9.6 (rev 0) +++ users/mojca/ports/science/geant/files/geant4.9.6 2013-07-23 17:18:42 UTC (rev 108461) @@ -0,0 +1,3 @@ +libexec/Geant4/Geant4.9.6/geant4-config +libexec/Geant4/Geant4.9.6/geant4data.sh +libexec/Geant4/Geant4.9.6/geant4data.csh Added: users/mojca/ports/sysutils/geant4_select/Portfile =================================================================== --- users/mojca/ports/sysutils/geant4_select/Portfile (rev 0) +++ users/mojca/ports/sysutils/geant4_select/Portfile 2013-07-23 17:18:42 UTC (rev 108461) @@ -0,0 +1,31 @@ +# -*- 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 select 1.0 + +name geant4_select +version 1.0 +categories sysutils science +platforms darwin +maintainers mojca openmaintainer +license BSD +supported_archs noarch + +description common files for selecting default Geant4 version +long_description geant4_select installs files that allow 'port select' to \ + switch the default version of Geant4. + +homepage http://www.macports.org/ +distfiles + +use_configure no + +build {} + +destroot { + select::install geant4 ${filespath}/base + select::install geant4 ${filespath}/none +} + +livecheck.type none Added: users/mojca/ports/sysutils/geant4_select/files/base =================================================================== --- users/mojca/ports/sysutils/geant4_select/files/base (rev 0) +++ users/mojca/ports/sysutils/geant4_select/files/base 2013-07-23 17:18:42 UTC (rev 108461) @@ -0,0 +1,3 @@ +bin/geant4-config +bin/geant4.sh +bin/geant4.csh Added: users/mojca/ports/sysutils/geant4_select/files/none =================================================================== --- users/mojca/ports/sysutils/geant4_select/files/none (rev 0) +++ users/mojca/ports/sysutils/geant4_select/files/none 2013-07-23 17:18:42 UTC (rev 108461) @@ -0,0 +1,3 @@ +- +- +-
participants (1)
-
mojca@macports.org