From ccb81e9fe0f2cd4f07672dc82760e8a635d9f46e Mon Sep 17 00:00:00 2001 From: Guilherme Amadio Date: Fri, 25 Jun 2021 16:42:08 +0200 Subject: sci-physics/geant-data: version bump for 4.11.0_beta1 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Guilherme Amadio --- sci-physics/geant-data/Manifest | 1 + .../geant-data/geant-data-4.11.0_beta1.ebuild | 54 ++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 sci-physics/geant-data/geant-data-4.11.0_beta1.ebuild diff --git a/sci-physics/geant-data/Manifest b/sci-physics/geant-data/Manifest index bc3e561410d3..b38e7fd0d709 100644 --- a/sci-physics/geant-data/Manifest +++ b/sci-physics/geant-data/Manifest @@ -1,5 +1,6 @@ DIST G4ABLA.3.1.tar.gz 107286 BLAKE2B ff60665b01dcdb85a76028af472e6f71068b8132187701c46e5c4e8509125d34853d3c574561be22f34cc5f35503ec0808f2964888cd19259392de8054f19647 SHA512 4178870783ca015dade0b07006afc27fed095ff195251c672a0812f9c8e13908b5dfa9a127e8f3ec473f242bf7faf6d49a3371a75e669a06245722924b7c4278 DIST G4EMLOW.7.13.tar.gz 298636910 BLAKE2B ee9c83410183a6fef3a2d44e866818a765f85aecb637879a6f96b2958e0c3675acb0a2891b6dd07c81fffabcb95dcc541f23f076b4aa1cbb2131e72b2b869b93 SHA512 8789ee0cae6d62c6e6af5f8c5f49706f37230df609cad375bef9568d13d5cd62fa1bded616385fd4790d047bb305090ba08957980fe7881d169a2a0e31693879 +DIST G4EMLOW.7.17.tar.gz 325266417 BLAKE2B 66c2912441620d0e005391f389f846c6ad4e8d122f763ffc22f7b071891c2fcdfa677ce11f5e35a02efae530517130ba0820d23e0a8a58f6931fbc814f15de22 SHA512 63e961f9afc79f8d03e15d6971cbe9889c8bbf1ef1d1a7896684b71c69fedfdfc1725780f88804299337971f719d03c2cc908a0a8fa84ceb9150eadbfbe4db38 DIST G4ENSDFSTATE.2.3.tar.gz 290745 BLAKE2B 89c642a43ebcb979b233cfb1af1bde9b2f4fd5a5ff2f282f8975aae9514c3579d67e66b1b3559e75a633b13d272c0f54fc41aef415463583a6920fc6e3f66b78 SHA512 0f92d1871f532a979829406a150e263ac13141e594acca6728edd1dbe0a181c03d0be23f7cbb6a6e73550dc71bf1337edb799c9845dff6df991b44ea8cb8ceec DIST G4INCL.1.0.tar.gz 95840 BLAKE2B 2c264b7563620cdbdb8a5e529f21766a5b5ea3e2e51047362518714d01854de8d9ca2ca2a0183ab672cc2f8a4d951327b0e1a7298799695fd48233fa5e529686 SHA512 9d769566d1728674bd6d1e59fc05882943cd240d2f0a9e47dff37fa64fe27720b20b66f6dea6d300c3c9082a22f7f71bb416df8c7d2b5bae87251c4a0113f49b DIST G4NDL.4.6.tar.gz 599862135 BLAKE2B 78e30dd0f02f3b7d7fce12a3a4dcb83e1405ba45f19ed2a743ee7e72be426e09a31cedb521a62a116a8a580a39c83987d4e39ab621b73e0d7a41e7dab8f36d41 SHA512 29b7d933d3e691b03cf45db0c4a9335c03f34ce57149a37b66a0f85e41d500d985f86bc8becc206d85202f129f60ea9fb1ef16bc4a9eef48cde593ffd5a85f24 diff --git a/sci-physics/geant-data/geant-data-4.11.0_beta1.ebuild b/sci-physics/geant-data/geant-data-4.11.0_beta1.ebuild new file mode 100644 index 000000000000..bd4595930f24 --- /dev/null +++ b/sci-physics/geant-data/geant-data-4.11.0_beta1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Data files for Geant4 physical processes" +HOMEPAGE="https://geant4.web.cern.ch" +SRC_DATA="https://geant4-data.web.cern.ch/geant4-data/datasets" + +declare -A DATASETS + +DATASETS=( + [G4NDL]="G4NDL 4.6 G4NEUTRONHPDATA" + [G4EMLOW]="G4EMLOW 7.17 G4LEDATA" + [PhotonEvaporation]="G4PhotonEvaporation 5.7 G4LEVELGAMMADATA" + [RadioactiveDecay]="G4RadioactiveDecay 5.6 G4RADIOACTIVEDATA" + [G4PARTICLEXS]="G4PARTICLEXS 3.1.1 G4PARTICLEXSDATA" + [G4PII]="G4PII 1.3 G4PIIDATA" + [RealSurface]="G4RealSurface 2.2 G4REALSURFACEDATA" + [G4SAIDDATA]="G4SAIDDATA 2.0 G4SAIDXSDATA" + [G4ABLA]="G4ABLA 3.1 G4ABLADATA" + [G4INCL]="G4INCL 1.0 G4INCLDATA" + [G4ENSDFSTATE]="G4ENSDFSTATE 2.3 G4ENSDFSTATEDATA" + [G4TENDL]="G4TENDL 1.3.2 G4PARTICLEHPDATA" +) + +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 + +LICENSE="geant4" +SLOT="4" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +S="${WORKDIR}" + +src_unpack() { + # unpack in destination only to avoid copy + return +} + +src_install() { + for DATASET in ${!DATASETS[@]}; do + read FILENAME VERSION ENVVAR <<< "${DATASETS[$DATASET]}" + echo $ENVVAR=\"${EPREFIX}/usr/share/geant4/data/${DATASET}${VERSION}\"; + done >| 99geant-data + doenvd 99geant-data + dodir /usr/share/geant4/data + cd "${ED}/usr/share/geant4/data" || die + unpack ${A} +} -- cgit v1.2.3-65-gdbad