blob: fde34b26f7cd5f8dd3f1ac468b8af684f44595c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Data files for Geant4 physical processes"
HOMEPAGE="https://geant4.web.cern.ch"
SRC_DATA="https://geant4-data.web.cern.ch/geant4-data/datasets"
S="${WORKDIR}"
LICENSE="geant4"
SLOT="4"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
declare -A DATASETS
DATASETS=(
[G4NDL]="G4NDL 4.7.1 G4NEUTRONHPDATA"
[G4EMLOW]="G4EMLOW 8.6.1 G4LEDATA"
[PhotonEvaporation]="G4PhotonEvaporation 6.1 G4LEVELGAMMADATA"
[RadioactiveDecay]="G4RadioactiveDecay 6.1.2 G4RADIOACTIVEDATA"
[G4PARTICLEXS]="G4PARTICLEXS 4.1 G4PARTICLEXSDATA"
[G4PII]="G4PII 1.3 G4PIIDATA"
[RealSurface]="G4RealSurface 2.2 G4REALSURFACEDATA"
[G4SAIDDATA]="G4SAIDDATA 2.0 G4SAIDXSDATA"
[G4ABLA]="G4ABLA 3.3 G4ABLADATA"
[G4INCL]="G4INCL 1.2 G4INCLDATA"
[G4ENSDFSTATE]="G4ENSDFSTATE 3.0 G4ENSDFSTATEDATA"
[G4CHANNELING]="G4CHANNELING 1.0 G4CHANNELINGDATA"
[G4TENDL]="G4TENDL 1.4 G4PARTICLEHPDATA"
[G4NUDEXLIB]="G4NUDEXLIB 1.0 G4NUDEXLIBDATA"
[G4URRPT]="G4URRPT 1.1 G4URRPTDATA"
)
for DATASET in ${!DATASETS[@]}; do
read FILENAME VERSION ENVVAR <<< "${DATASETS[$DATASET]}"
SRC_URI+="${SRC_DATA}/${FILENAME}.${VERSION}.tar.gz "
done
unset DATASET FILENAME VERSION ENVVAR
src_unpack() {
# unpack in destination only to avoid copy
return
}
src_install() {
dodir /usr/share/geant4/data
cd "${ED}/usr/share/geant4/data" || die
unpack ${A}
}
|