Lines 14-20
Link Here
|
14 |
DESCRIPTION="CERN's detector description and simulation Tool" |
14 |
DESCRIPTION="CERN's detector description and simulation Tool" |
15 |
HOMEPAGE="http://www.geant4.org/" |
15 |
HOMEPAGE="http://www.geant4.org/" |
16 |
|
16 |
|
17 |
SRC_COM="http://geant4.web.cern.ch/geant4/support/source/" |
17 |
SRC_COM="http://geant4.web.cern.ch/geant4/support/source" |
18 |
SRC_URI="${SRC_COM}/${MY_P}.tar.gz" |
18 |
SRC_URI="${SRC_COM}/${MY_P}.tar.gz" |
19 |
GEANT4_DATA="G4NDL.3.12 |
19 |
GEANT4_DATA="G4NDL.3.12 |
20 |
G4EMLOW.5.1 |
20 |
G4EMLOW.5.1 |
Lines 68-73
Link Here
|
68 |
sed -i \ |
68 |
sed -i \ |
69 |
-e '/$(G4LIB)\/$(G4SYSTEM)/d' \ |
69 |
-e '/$(G4LIB)\/$(G4SYSTEM)/d' \ |
70 |
config/architecture.gmk || die "sed architecture.gmk failed" |
70 |
config/architecture.gmk || die "sed architecture.gmk failed" |
|
|
71 |
sed -i \ |
72 |
-e 's:$(G4LIB)/$(G4SYSTEM):$(G4TMP):g' \ |
73 |
config/common.gmk || die "sed common.gmk failed" |
74 |
sed -i \ |
75 |
-e 's:$(G4LIB)/$(G4SYSTEM):$(G4TMP):g' \ |
76 |
-e 's:$(G4BIN)/$(G4SYSTEM):$(G4TMP):g' \ |
77 |
-e 's:$(G4TMP)/$(G4SYSTEM):$(G4TMP):g' \ |
78 |
source/GNUmakefile || die "sed GNUmakefile failed" |
71 |
} |
79 |
} |
72 |
|
80 |
|
73 |
src_compile() { |
81 |
src_compile() { |
Lines 141-146
Link Here
|
141 |
LDPATH=${G4LIB} |
149 |
LDPATH=${G4LIB} |
142 |
CLHEP_BASE_DIR=${CLHEP_BASE_DIR} |
150 |
CLHEP_BASE_DIR=${CLHEP_BASE_DIR} |
143 |
EOF |
151 |
EOF |
|
|
152 |
|
153 |
# detailed data file locations |
154 |
if $(use data); then |
155 |
export G4LEVELGAMMADATA="${G4DATA}/PhotonEvaporation2.0" |
156 |
export G4RADIOACTIVEDATA="${G4DATA}/RadioactiveDecay3.2" |
157 |
export G4LEDATA="${G4DATA}/G4EMLOW5.1" |
158 |
export G4NEUTRONHPCROSSSECTIONS="${G4DATA}/G4NDL3.12" |
159 |
fi |
160 |
|
144 |
# read env variables defined upto now |
161 |
# read env variables defined upto now |
145 |
printenv | grep ^G4 | uniq >> ${g4env} |
162 |
printenv | grep ^G4 | uniq >> ${g4env} |
146 |
|
163 |
|
Lines 159-167
Link Here
|
159 |
|
176 |
|
160 |
# but install libraries and Geant library tool manually |
177 |
# but install libraries and Geant library tool manually |
161 |
insinto ${GEANT4_LIBDIR} |
178 |
insinto ${GEANT4_LIBDIR} |
162 |
doins -r lib/${G4SYSTEM}/* || die |
179 |
doins -r ${HOME}/geant4/tmp/*.so || die |
|
|
180 |
doins -r ${HOME}/geant4/tmp/libname.map || die |
181 |
if use static; then |
182 |
doins -r ${HOME}/geant4/tmp/*.a || die |
183 |
fi |
163 |
exeinto ${GEANT4_LIBDIR} |
184 |
exeinto ${GEANT4_LIBDIR} |
164 |
doexe lib/${G4SYSTEM}/liblist || die |
185 |
doexe ${HOME}/geant4/tmp/liblist || die |
165 |
|
186 |
|
166 |
g4_create_env_script |
187 |
g4_create_env_script |
167 |
|
188 |
|
Lines 195-202
Link Here
|
195 |
} |
216 |
} |
196 |
|
217 |
|
197 |
pkg_postinst() { |
218 |
pkg_postinst() { |
198 |
elog "Geant4 projects are by default expected in each user's " |
219 |
elog "Geant4 projects are by default build in $G4WORKDIR." |
199 |
elog "If you want to change, set \$G4WORKDIR to another directory" |
220 |
elog "If you want to change, set \$G4WORKDIR to another directory." |
200 |
elog |
221 |
elog |
201 |
elog "Help us to improve the ebuild and dependencies in" |
222 |
elog "Help us to improve the ebuild and dependencies in" |
202 |
elog "http://bugs.gentoo.org/show_bug.cgi?id=212221" |
223 |
elog "http://bugs.gentoo.org/show_bug.cgi?id=212221" |