From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9D3B715802E for ; Thu, 27 Jun 2024 14:32:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BCB1BE2AB9; Thu, 27 Jun 2024 14:32:11 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0053BE2AB9 for ; Thu, 27 Jun 2024 14:32:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1C04133FE7D for ; Thu, 27 Jun 2024 14:32:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 838A61B05 for ; Thu, 27 Jun 2024 14:32:08 +0000 (UTC) From: "Alexander Puck Neuwirth" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexander Puck Neuwirth" Message-ID: <1719498666.c3ee0bf6659bb881b68b85a576ef98c85ec65c9d.alexander@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/sherpa/ X-VCS-Repository: proj/sci X-VCS-Files: sci-physics/sherpa/metadata.xml sci-physics/sherpa/sherpa-3.0.0_beta1.ebuild sci-physics/sherpa/sherpa-9999.ebuild X-VCS-Directories: sci-physics/sherpa/ X-VCS-Committer: alexander X-VCS-Committer-Name: Alexander Puck Neuwirth X-VCS-Revision: c3ee0bf6659bb881b68b85a576ef98c85ec65c9d X-VCS-Branch: master Date: Thu, 27 Jun 2024 14:32:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3f08b1d4-5d21-479f-a3da-00ecbc72071e X-Archives-Hash: 73f45e568e311551c57904b4464bb7b1 commit: c3ee0bf6659bb881b68b85a576ef98c85ec65c9d Author: Alexander Puck Neuwirth neuwirth-informatik de> AuthorDate: Thu Jun 27 12:56:00 2024 +0000 Commit: Alexander Puck Neuwirth neuwirth-informatik de> CommitDate: Thu Jun 27 14:31:06 2024 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c3ee0bf6 sci-physics/sherpa: new package, add 3.0.0_beta1, 9999 Closes: https://github.com/gentoo/sci/pull/1279 Signed-off-by: Alexander Puck Neuwirth neuwirth-informatik.de> sci-physics/sherpa/metadata.xml | 27 ++++++++ sci-physics/sherpa/sherpa-3.0.0_beta1.ebuild | 94 ++++++++++++++++++++++++++++ sci-physics/sherpa/sherpa-9999.ebuild | 94 ++++++++++++++++++++++++++++ 3 files changed, 215 insertions(+) diff --git a/sci-physics/sherpa/metadata.xml b/sci-physics/sherpa/metadata.xml new file mode 100644 index 000000000..8018d7c68 --- /dev/null +++ b/sci-physics/sherpa/metadata.xml @@ -0,0 +1,27 @@ + + + + + APN-Pucky@users.noreply.github.com + APN-Pucky + + + Sherpa is a Monte Carlo event generator for the Simulation of High-Energy Reactions of PArticles in lepton-lepton, lepton-photon, photon-photon, lepton-hadron and hadron-hadron collisions. Simulation programs - also dubbed event generators - like Sherpa are indispensable work horses for current particle physics phenomenology and are (at) the interface between theory and experiment. + + + sherpa-team/sherpa + + + Build with HepMC2 + Build with FastJet + Build with Pythia6 + Build with Pythia8 + Build with Rivet + Build with Root + UFO python interface + lhole support + analysis support + Openloops support + + + diff --git a/sci-physics/sherpa/sherpa-3.0.0_beta1.ebuild b/sci-physics/sherpa/sherpa-3.0.0_beta1.ebuild new file mode 100644 index 000000000..79f0efccd --- /dev/null +++ b/sci-physics/sherpa/sherpa-3.0.0_beta1.ebuild @@ -0,0 +1,94 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) + +inherit cmake fortran-2 python-single-r1 + +MY_PN="SHERPA-MC" +MY_PV=${PV//_/} +MY_P=${MY_PN}-${MY_PV} + +DESCRIPTION="Simulation of High-Energy Reactions of PArticles" +HOMEPAGE=" + https://sherpa-team.gitlab.io/ + https://gitlab.com/sherpa-team/sherpa +" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/sherpa-team/sherpa" + EGIT_BRANCH="master" +else + #SRC_URI="https://www.hepforge.org/archive/sherpa/${MY_P}.tar.gz" + SRC_URI="https://gitlab.com/sherpa-team/${PN}/-/archive/v${MY_PV}/${PN}-v${MY_PV}.tar.bz2" + S="${WORKDIR}/${PN}-v${MY_PV}" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0" + +IUSE="+fastjet +pythia6 pythia8 rivet ufo hepmc2 root gzip mpi lhole analysis openloops" # blackhat recola gosam hztool madloop pgs mcfm +REQUIRED_USE=" + ufo? ( ${PYTHON_REQUIRED_USE} ) +" + +DEPEND=" + sci-physics/lhapdf + dev-db/sqlite:3= + sci-physics/hepmc:3= + dev-libs/libzip + rivet? ( sci-physics/rivet ) + gzip? ( app-arch/gzip ) + pythia8? ( sci-physics/pythia:8= ) + hepmc2? ( sci-physics/hepmc:2= ) + fastjet? ( sci-physics/fastjet ) + root? ( sci-physics/root ) + mpi? ( virtual/mpi[cxx,fortran] ) + ufo? ( ${PYTHON_DEPS} ) + openloops? ( sci-physics/openloops ) +" +# blackhat? ( sci-physics/blackhat ) +# gosam? ( sci-physics/gosam ) +# recola? ( sci-physics/recola ) +RDEPEND="${DEPEND}" + +pkg_setup() { + use ufo && python-single-r1_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DSHERPA_ENABLE_THREADING=ON + -DSHERPA_ENABLE_ANALYSIS=$(usex analysis ON OFF) + -DSHERPA_ENABLE_GZIP=$(usex gzip ON OFF) + -DSHERPA_ENABLE_HEPMC2=$(usex hepmc2 ON OFF) + -DSHERPA_ENABLE_HEPMC3=ON + -DSHERPA_ENABLE_LHAPDF=ON + -DSHERPA_ENABLE_LHOLE=$(usex lhole ON OFF) + -DSHERPA_ENABLE_MPI=$(usex mpi ON OFF) + $(usex mpi -DCMAKE_C_COMPILER=mpicc) + $(usex mpi -DCMAKE_CXX_COMPILER=mpic++) + $(usex mpi -DCMAKE_Fortran_COMPILER=mpif90) + -DSHERPA_ENABLE_PYTHIA6=$(usex pythia6 ON OFF) + -DSHERPA_ENABLE_PYTHIA8=$(usex pythia8 ON OFF) + -DSHERPA_ENABLE_RIVET=$(usex rivet ON OFF) + -DSHERPA_ENABLE_ROOT=$(usex root ON OFF) + -DSHERPA_ENABLE_UFO=$(usex ufo ON OFF) + -DSHERPA_ENABLE_OPENLOOPS=$(usex openloops ON OFF) + -DOPENLOOPS_PREFIX=$(usex openloops "${ESYSROOT}/opt/OpenLoops2") + #-DSHERPA_ENABLE_GOSAM=$(usex gosam ON OFF) + #-DSHERPA_ENABLE_BLACKHAT=$(usex blackhat ON OFF) + #-DSHERPA_ENABLE_RECOLA=$(usex recola ON OFF) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + use ufo && python_optimize +} diff --git a/sci-physics/sherpa/sherpa-9999.ebuild b/sci-physics/sherpa/sherpa-9999.ebuild new file mode 100644 index 000000000..79f0efccd --- /dev/null +++ b/sci-physics/sherpa/sherpa-9999.ebuild @@ -0,0 +1,94 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) + +inherit cmake fortran-2 python-single-r1 + +MY_PN="SHERPA-MC" +MY_PV=${PV//_/} +MY_P=${MY_PN}-${MY_PV} + +DESCRIPTION="Simulation of High-Energy Reactions of PArticles" +HOMEPAGE=" + https://sherpa-team.gitlab.io/ + https://gitlab.com/sherpa-team/sherpa +" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/sherpa-team/sherpa" + EGIT_BRANCH="master" +else + #SRC_URI="https://www.hepforge.org/archive/sherpa/${MY_P}.tar.gz" + SRC_URI="https://gitlab.com/sherpa-team/${PN}/-/archive/v${MY_PV}/${PN}-v${MY_PV}.tar.bz2" + S="${WORKDIR}/${PN}-v${MY_PV}" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0" + +IUSE="+fastjet +pythia6 pythia8 rivet ufo hepmc2 root gzip mpi lhole analysis openloops" # blackhat recola gosam hztool madloop pgs mcfm +REQUIRED_USE=" + ufo? ( ${PYTHON_REQUIRED_USE} ) +" + +DEPEND=" + sci-physics/lhapdf + dev-db/sqlite:3= + sci-physics/hepmc:3= + dev-libs/libzip + rivet? ( sci-physics/rivet ) + gzip? ( app-arch/gzip ) + pythia8? ( sci-physics/pythia:8= ) + hepmc2? ( sci-physics/hepmc:2= ) + fastjet? ( sci-physics/fastjet ) + root? ( sci-physics/root ) + mpi? ( virtual/mpi[cxx,fortran] ) + ufo? ( ${PYTHON_DEPS} ) + openloops? ( sci-physics/openloops ) +" +# blackhat? ( sci-physics/blackhat ) +# gosam? ( sci-physics/gosam ) +# recola? ( sci-physics/recola ) +RDEPEND="${DEPEND}" + +pkg_setup() { + use ufo && python-single-r1_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DSHERPA_ENABLE_THREADING=ON + -DSHERPA_ENABLE_ANALYSIS=$(usex analysis ON OFF) + -DSHERPA_ENABLE_GZIP=$(usex gzip ON OFF) + -DSHERPA_ENABLE_HEPMC2=$(usex hepmc2 ON OFF) + -DSHERPA_ENABLE_HEPMC3=ON + -DSHERPA_ENABLE_LHAPDF=ON + -DSHERPA_ENABLE_LHOLE=$(usex lhole ON OFF) + -DSHERPA_ENABLE_MPI=$(usex mpi ON OFF) + $(usex mpi -DCMAKE_C_COMPILER=mpicc) + $(usex mpi -DCMAKE_CXX_COMPILER=mpic++) + $(usex mpi -DCMAKE_Fortran_COMPILER=mpif90) + -DSHERPA_ENABLE_PYTHIA6=$(usex pythia6 ON OFF) + -DSHERPA_ENABLE_PYTHIA8=$(usex pythia8 ON OFF) + -DSHERPA_ENABLE_RIVET=$(usex rivet ON OFF) + -DSHERPA_ENABLE_ROOT=$(usex root ON OFF) + -DSHERPA_ENABLE_UFO=$(usex ufo ON OFF) + -DSHERPA_ENABLE_OPENLOOPS=$(usex openloops ON OFF) + -DOPENLOOPS_PREFIX=$(usex openloops "${ESYSROOT}/opt/OpenLoops2") + #-DSHERPA_ENABLE_GOSAM=$(usex gosam ON OFF) + #-DSHERPA_ENABLE_BLACKHAT=$(usex blackhat ON OFF) + #-DSHERPA_ENABLE_RECOLA=$(usex recola ON OFF) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + use ufo && python_optimize +}