Opened 15 years ago

Closed 15 years ago

#23323 closed submission (fixed)

GEANT4-4.9.3 Portfile submission

Reported by: cristiano.fontana@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: geant4

Description

Here is a proposal for a Portfile of GEANT4. I had many problems putting this up, so any suggestion in well accepted.

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.

Attachments (9)

Portfile (9.7 KB) - added by cristiano.fontana@… 15 years ago.
Portfile-geant4.diff (1.7 KB) - added by cristiano.fontana@… 15 years ago.
env.sh (3.5 KB) - added by cristiano.fontana@… 15 years ago.
env.csh (3.9 KB) - added by cristiano.fontana@… 15 years ago.
Portfile-geant4.2.diff (3.5 KB) - added by cristiano.fontana@… 15 years ago.
geant4-ryandesign1.diff (2.9 KB) - added by ryandesign (Ryan Carsten Schmidt) 15 years ago.
Portfile.2 (15.4 KB) - added by cristiano.fontana@… 15 years ago.
env.2.csh (3.7 KB) - added by cristiano.fontana@… 15 years ago.
env.2.sh (3.5 KB) - added by cristiano.fontana@… 15 years ago.

Download all attachments as: .zip

Change History (15)

Changed 15 years ago by cristiano.fontana@…

Attachment: Portfile added

comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

Congrats on getting this working! Looks like it was pretty involved.

"port lint" shows a number of simple improvements that could be made. I also recommend using fs-traverse instead of foreach ... exec find, as I showed in your previous port clhep in r62792.

Your port needs some shell scripts in the files directory which don't appear to be attached here.

Changed 15 years ago by cristiano.fontana@…

Attachment: Portfile-geant4.diff added

Changed 15 years ago by cristiano.fontana@…

Attachment: env.sh added

Changed 15 years ago by cristiano.fontana@…

Attachment: env.csh added

comment:2 Changed 15 years ago by cristiano.fontana@…

I forgot to put those in. I fixed the warnings that port lint showed and changed a bit how the shell scripts are patched.

Is there a way to print the build.env? This way I could automatize the creation of env.sh and env.csh

Changed 15 years ago by cristiano.fontana@…

Attachment: Portfile-geant4.2.diff added

comment:3 Changed 15 years ago by cristiano.fontana@…

Added the fs-trasverse constructs as requested.

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

I committed it in r62858 with the additional change that I cleaned up trailing whitespace (reported by "port lint --nitpick").

I would like to make further changes however to simplify. I think all the puts commands should go away; users who want that level of detail should run with the -d debug flag, and if you want to add additional information to that output, you use the ui_debug command.

Yes, you can access the contents of build.env like any other tcl variable if you want to build up the env scripts dynamically, which might make things easier for you in the long run.

Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: geant4-ryandesign1.diff added

Changed 15 years ago by cristiano.fontana@…

Attachment: Portfile.2 added

Changed 15 years ago by cristiano.fontana@…

Attachment: env.2.csh added

Changed 15 years ago by cristiano.fontana@…

Attachment: env.2.sh added

comment:5 Changed 15 years ago by cristiano.fontana@…

I finally got this Portfile working!

Now the provided examples compile and also custom applications.

comment:6 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

I committed your changes in r63241. We can make separate tickets for any remaining issues.

Note: See TracTickets for help on using tickets.