[MacPorts] #32716: geant4: update to 9.5

MacPorts noreply at macports.org
Sat Jul 28 05:53:19 PDT 2012


#32716: geant4: update to 9.5
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  cristiano.fontana@…         
     Type:  update                   |      Status:  new                         
 Priority:  Normal                   |   Milestone:                              
Component:  ports                    |     Version:                              
 Keywords:                           |        Port:  geant4                      
-------------------------------------+--------------------------------------

Comment(by mojca.miklavec.lists@…):

 I would like to request CMake-based installation if possible.

 I was playing with the following minimal example since I wanted working Qt
 that's not provided by current port. It is far from being finished, but it
 can serve as a starting point. Basic functionality works, but it
 definitely needs both more testing as well as more code (for existing &
 possibly new variants).

 {{{
 PortSystem          1.0
 PortGroup           cmake 1.0

 name                geant4
 version             4.9.5.p01
 categories          science
 maintainers         pd.infn.it:cristiano.fontana
 license             Geant4
 description         Geant4 is a toolkit for the simulation of the passage
 of particles through matter.
 long_description    Geant4 is a toolkit for the simulation of the passage
 of particles through matter. \
                     Its areas of application include high energy, nuclear
 and accelerator physics, as well as studies in medical and space science.
 \
                     The two main reference papers for Geant4 are published
 in Nuclear Instruments and Methods in Physics Research A 506 (2003)
 250-303, \
                     and IEEE Transactions on Nuclear Science 53 No. 1
 (2006) 270-278.
 homepage            http://geant4.web.cern.ch/
 platforms           darwin

 distfiles           geant${version}.tar.gz:cern
 master_sites        http://geant4.cern.ch/support/source/:cern

 checksums           geant${version}.tar.gz \
                     rmd160  42249229a97c2eaf5ed2471a93608a1d0daa38e1 \
                     sha256
 451f8c4a29bb0dc4b923d59d77535a657f0f8a30dc6c8ef639c8b1ebdb26a10e

 worksrcdir          geant${version}
 configure.dir       ${workpath}/build
 build.dir           ${configure.dir}

 post-extract {
     file mkdir ${configure.dir}
 }

 configure.post_args ${worksrcpath}

 depends_lib         port:zlib

 variant qt description {Build with Qt support} {
     depends_lib-append  port:qt4-mac
     configure.args-append -DGEANT4_USE_QT=ON
 }

 configure.args-append -DGEANT4_INSTALL_DATA=ON \
                       -DGEANT4_BUILD_EXAMPLES=ON \
                       -DGEANT4_INSTALL_EXAMPLES=OFF \
                       -DWITH_GEANT4_UIVIS=ON \
                       -DGEANT4_USE_OPENGL_X11=ON

 default_variants +qt
 }}}

 I don't know if that's acceptable, but in the above implementation data is
 being downloaded while Geant4 is compiling. I used built-in CLHEP since I
 wasn't able to enable the external one. I tried with
 {{{
 configure.args-append -DGEANT4_USE_SYSTEM_CLHEP=ON \
                       -DCLHEP_CONFIG_EXECUTABLE=${prefix}/bin/clhep-config
 \
                       -DCLHEP_INCLUDE_DIR=${prefix}/include \
                       -DCLHEP_LIBRARY=${prefix}/lib/libCLHEP.dylib
 }}}
 but it didn't work.

 In 9.4 iAIDA is broken.

-- 
Ticket URL: <https://trac.macports.org/ticket/32716#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list