commit: 2e22079da1c948701180f3665c5a5730f55f18f5 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Mon Oct 23 18:37:10 2023 +0000 Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> CommitDate: Sat Oct 28 10:03:49 2023 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=2e22079d
sci-physics/lhapdf-sets: new package, add 0 Closes: https://github.com/gentoo/sci/pull/1219 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> profiles/desc/lhapdf_sets.desc | 17 +++++++ profiles/make.defaults | 1 + sci-physics/lhapdf-sets/lhapdf-sets-0.ebuild | 66 ++++++++++++++++++++++++++++ sci-physics/lhapdf-sets/metadata.xml | 12 +++++ 4 files changed, 96 insertions(+) diff --git a/profiles/desc/lhapdf_sets.desc b/profiles/desc/lhapdf_sets.desc new file mode 100644 index 000000000..7270fbee7 --- /dev/null +++ b/profiles/desc/lhapdf_sets.desc @@ -0,0 +1,17 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# This file contains descriptions of LHAPDF_SETS USE_EXPAND flags. + +nnpdf31_nnlo_as_0118_luxqed - NNPDF31_nnlo_as_0118_luxqed LHAPDF grid +pdf4lhc15_nlo_asvar - PDF4LHC15_nlo_asvar LHAPDF grid +ct14qed_proton - CT14qed_proton LHAPDF grid +ct14lo - CT14lo LHAPDF grid +ct14nlo - CT14nlo LHAPDF grid +ct10 - CT10 LHAPDF grid +mrst2007lomod - MRST2007lomod LHAPDF grid +nnpdf23_nlo_as_0119_qed_mc - NNPDF23_nlo_as_0119_qed_mc LHAPDF grid +nnpdf23_nnlo_as_0119_qed_mc - NNPDF23_nnlo_as_0119_qed_mc LHAPDF grid +cteq66 - CTEQ66 LHAPDF grid +cteq6l1 - CTEQ6L1 LHAPDF grid +mrst2004qed - MRST2004qed LHAPDF grid \ No newline at end of file diff --git a/profiles/make.defaults b/profiles/make.defaults new file mode 100644 index 000000000..88d3fe603 --- /dev/null +++ b/profiles/make.defaults @@ -0,0 +1 @@ +USE_EXPAND="LHAPDF_SETS" \ No newline at end of file diff --git a/sci-physics/lhapdf-sets/lhapdf-sets-0.ebuild b/sci-physics/lhapdf-sets/lhapdf-sets-0.ebuild new file mode 100644 index 000000000..edd3639d2 --- /dev/null +++ b/sci-physics/lhapdf-sets/lhapdf-sets-0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +LHA_VER="6.2.1" + +IUSE_LHAPDF_SETS=" + lhapdf_sets_nnpdf31_nnlo_as_0118_luxqed + lhapdf_sets_pdf4lhc15_nlo_asvar + lhapdf_sets_ct14qed_proton + lhapdf_sets_ct14lo + lhapdf_sets_ct14nlo + lhapdf_sets_ct10 + lhapdf_sets_mrst2007lomod + lhapdf_sets_nnpdf23_nlo_as_0119_qed_mc + lhapdf_sets_nnpdf23_nnlo_as_0119_qed_mc + lhapdf_sets_cteq66 + lhapdf_sets_cteq6l1 + lhapdf_sets_mrst2004qed +" + +COMMON_URI="https://lhapdfsets.web.cern.ch/lhapdfsets/current" +HEPFORGE_URI="https://www.hepforge.org/downloads/lhapdf/pdfsets/v6.backup/${LHA_VER}" +# Alternatively to fetching them here already the user can install them by lhapdf install, +# BUT some codes need them during test and even compile (Herwig) stage. +# Also since it belongs to LHAPDF it is better to fetch them here. +SRC_URI=" + lhapdf_sets_nnpdf31_nnlo_as_0118_luxqed? ( ${COMMON_URI}/NNPDF31_nnlo_as_0118_luxqed.tar.gz ) + lhapdf_sets_pdf4lhc15_nlo_asvar? ( ${COMMON_URI}/PDF4LHC15_nlo_asvar.tar.gz ) + lhapdf_sets_ct14qed_proton? ( ${COMMON_URI}/CT14qed_proton.tar.gz ) + lhapdf_sets_ct14lo? ( ${COMMON_URI}/CT14lo.tar.gz ) + lhapdf_sets_ct14nlo? ( ${COMMON_URI}/CT14nlo.tar.gz ) + lhapdf_sets_ct10? ( ${COMMON_URI}/CT10.tar.gz ) + lhapdf_sets_mrst2007lomod? ( ${COMMON_URI}/MRST2007lomod.tar.gz ) + lhapdf_sets_nnpdf23_nlo_as_0119_qed_mc? ( ${COMMON_URI}/NNPDF23_nlo_as_0119_qed_mc.tar.gz ) + lhapdf_sets_nnpdf23_nnlo_as_0119_qed_mc? ( ${COMMON_URI}/NNPDF23_nnlo_as_0119_qed_mc.tar.gz ) + lhapdf_sets_cteq66? ( ${COMMON_URI}/cteq66.tar.gz ) + lhapdf_sets_cteq6l1? ( ${COMMON_URI}/cteq6l1.tar.gz ) + lhapdf_sets_mrst2004qed? ( ${HEPFORGE_URI}/MRST2004qed.tar.gz ) +" + +MY_PV=$(ver_cut 1-3) +MY_PF=LHAPDF-${MY_PV} + +DESCRIPTION="LHAPDF data grids" +HOMEPAGE="https://lhapdf.hepforge.org/" +KEYWORDS="~amd64 ~x86" +S="${WORKDIR}" + +LICENSE="public-domain" +SLOT="0" +IUSE="${IUSE_LHAPDF_SETS}" +SLOT="0" +RDEPEND="sci-physics/lhapdf" +DEPEND="${RDEPEND}" + +src_unpack() { + # unpack in destination only to avoid copy + return +} + +src_install() { + dodir /usr/share/LHAPDF/ + cd "${ED}/usr/share/LHAPDF/" || die + unpack ${A} +} diff --git a/sci-physics/lhapdf-sets/metadata.xml b/sci-physics/lhapdf-sets/metadata.xml new file mode 100644 index 000000000..73a7063eb --- /dev/null +++ b/sci-physics/lhapdf-sets/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>s...@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <maintainer type="person"> + <email>alexan...@neuwirth-informatik.de</email> + <name>Alexander Puck Neuwirth</name> + </maintainer> +</pkgmetadata>