1 | # -*- 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 |
---|
2 | # $Id: $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name geant4-data |
---|
7 | # what version should be used? |
---|
8 | version 1.0 |
---|
9 | license TODO |
---|
10 | maintainers mojca openmaintainer |
---|
11 | description Data files for Geant4 |
---|
12 | long_description Data files for Geant4 |
---|
13 | homepage http://geant4.web.cern.ch/ |
---|
14 | |
---|
15 | master_sites http://geant4.cern.ch/support/source/ |
---|
16 | |
---|
17 | platforms darwin |
---|
18 | supported_archs noarch |
---|
19 | |
---|
20 | set geant.datadir ${prefix}/share/Geant4/Data |
---|
21 | |
---|
22 | # geant.add_data g4emlow 6.33 0002a1c16c9b1fb5e8d49dfbce12a576 G4EMLOW G4LEDATA |
---|
23 | |
---|
24 | #-----# |
---|
25 | subport ${name}-G4NDL-4.3 { |
---|
26 | set data.name G4NDL |
---|
27 | set data.version 4.3 |
---|
28 | set data.md5 55493e74cba90e6cb167a5008e138cd7 |
---|
29 | # 10.0.b01 |
---|
30 | } |
---|
31 | subport ${name}-G4NDL-4.2 { |
---|
32 | set data.name G4NDL |
---|
33 | set data.version 4.2 |
---|
34 | set data.md5 2302d7ffeef1a450955302f027ee1cf4 |
---|
35 | # 9.6.p02 |
---|
36 | } |
---|
37 | |
---|
38 | #-----# |
---|
39 | subport ${name}-G4EMLOW-6.33 { |
---|
40 | set data.name G4EMLOW |
---|
41 | set data.version 6.33 |
---|
42 | set data.md5 0002a1c16c9b1fb5e8d49dfbce12a576 |
---|
43 | # 10.0.b01 |
---|
44 | } |
---|
45 | subport ${name}-G4EMLOW-6.32 { |
---|
46 | set data.name G4EMLOW |
---|
47 | set data.version 6.32 |
---|
48 | set data.md5 9d3302072ba694b1d4505c330ed89d89 |
---|
49 | # 9.6.p02 |
---|
50 | } |
---|
51 | |
---|
52 | #-----# |
---|
53 | subport ${name}-PhotonEvaporation-2.3 { |
---|
54 | set data.name G4PhotonEvaporation |
---|
55 | set data.version 2.3 |
---|
56 | set data.md5 08848ebdd536280a0629d802040b70be |
---|
57 | # 9.6.p02, 10.0.b01 |
---|
58 | } |
---|
59 | |
---|
60 | #-----# |
---|
61 | subport ${name}-RadioactiveDecay-3.7 { |
---|
62 | set data.name G4RadioactiveDecay |
---|
63 | set data.version 3.7 |
---|
64 | set data.md5 039e5f64b0e451eb5c095bf81552cb42 |
---|
65 | # 10.0.b01 |
---|
66 | } |
---|
67 | subport ${name}-RadioactiveDecay-3.6 { |
---|
68 | set data.name G4RadioactiveDecay |
---|
69 | set data.version 3.6 |
---|
70 | set data.md5 9566ff1614bea7455343328cb66abd6f |
---|
71 | # 9.6.p02 |
---|
72 | } |
---|
73 | |
---|
74 | #-----# |
---|
75 | subport ${name}-G4NEUTRONXS-1.3 { |
---|
76 | set data.name G4NEUTRONXS |
---|
77 | set data.version 1.3 |
---|
78 | set data.md5 ede7c4b3e99cbe1773b672a7404fe0f6 |
---|
79 | # 10.0.b01 |
---|
80 | } |
---|
81 | subport ${name}-G4NEUTRONXS-1.2 { |
---|
82 | set data.name G4NEUTRONXS |
---|
83 | set data.version 1.2 |
---|
84 | set data.md5 092634b9258c7bc387cb83557ff1df81 |
---|
85 | # 9.6.p02 |
---|
86 | } |
---|
87 | |
---|
88 | #-----# |
---|
89 | subport ${name}-G4PII-1.3 { |
---|
90 | set data.name G4PII |
---|
91 | set data.version 1.3 |
---|
92 | set data.md5 05f2471dbcdf1a2b17cbff84e8e83b37 |
---|
93 | # 9.6.p02, 10.0.b01 |
---|
94 | } |
---|
95 | |
---|
96 | #-----# |
---|
97 | subport ${name}-RealSurface-1.0 { |
---|
98 | set data.name RealSurface |
---|
99 | set data.version 1.0 |
---|
100 | set data.md5 0dde95e00fcd3bcd745804f870bb6884 |
---|
101 | } |
---|
102 | |
---|
103 | #-----# |
---|
104 | subport ${name}-G4SAIDDATA-1.1 { |
---|
105 | set data.name G4SAIDDATA |
---|
106 | set data.version 1.1 |
---|
107 | set data.md5 d88a31218fdf28455e5c5a3609f7216f |
---|
108 | } |
---|
109 | |
---|
110 | if {$subport != $name} { |
---|
111 | set data.filename ${data.name}.${data.version}.tar.gz |
---|
112 | |
---|
113 | distfiles ${data.filename} |
---|
114 | checksums ${data.filename} md5 ${data.md5} |
---|
115 | distname ${data.name}${data.version} |
---|
116 | |
---|
117 | # TODO: is it possible to extract files straight to destdir instead of copying them around? |
---|
118 | configure {} |
---|
119 | build {} |
---|
120 | |
---|
121 | destroot { |
---|
122 | # TODO: any better way to copy recursively? |
---|
123 | xinstall -m 755 -d ${destroot}${geant.datadir} |
---|
124 | file copy ${workpath}/${distname} ${destroot}${geant.datadir} |
---|
125 | } |
---|
126 | } else { |
---|
127 | # livecheck.url |
---|
128 | # livecheck.regex |
---|
129 | } |
---|
130 | |
---|