commit: 1bc136b3c298bdd6c88505e46e910fec237c2912 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Wed Mar 26 10:55:21 2025 +0000 Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> CommitDate: Thu Mar 27 12:55:18 2025 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=1bc136b3
sci-physics/delphes: new package, add 3.5.0, 9999 Closes: https://github.com/gentoo/sci/pull/1338 Co-authored-by: Nowa Ammerlaan <nowa <AT> gentoo.org> Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> sci-physics/delphes/delphes-3.5.0.ebuild | 40 ++++++++++++++++++++++++++++++++ sci-physics/delphes/delphes-9999.ebuild | 40 ++++++++++++++++++++++++++++++++ sci-physics/delphes/metadata.xml | 18 ++++++++++++++ 3 files changed, 98 insertions(+) diff --git a/sci-physics/delphes/delphes-3.5.0.ebuild b/sci-physics/delphes/delphes-3.5.0.ebuild new file mode 100644 index 000000000..63ea3b5a8 --- /dev/null +++ b/sci-physics/delphes/delphes-3.5.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_MAKEFILE_GENERATOR="emake" +inherit cmake + +DESCRIPTION="Delphes performs a fast multipurpose detector response simulation." +HOMEPAGE=" + https://github.com/delphes/delphes + http://cp3.irmp.ucl.ac.be/projects/delphes +" + +MY_P=${PN^}-${PV} + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/delphes/delphes" +else + SRC_URI="http://cp3.irmp.ucl.ac.be/downloads/${MY_P}.tar.gz" + S="${WORKDIR}/${MY_P}" + # Alternatively https://github.com/delphes/delphes/archive/refs/tags/3.5.0.tar.gz + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3+" +SLOT="0" +DEPEND=" + sci-physics/root:=[opengl] + sci-physics/pythia:8= +" +RDEPEND="${DEPEND}" + +src_prepare() { + cmake_src_prepare + sed -i "s#DESTINATION cards#DESTINATION share/delphes/cards#g" cards/CMakeLists.txt || die + sed -i "s#DESTINATION examples#DESTINATION share/delphes/examples#g" examples/CMakeLists.txt || die + sed -i "s#DESTINATION lib#DESTINATION $(get_libdir)#g" {,modules/,classes/,display/}CMakeLists.txt || die +} diff --git a/sci-physics/delphes/delphes-9999.ebuild b/sci-physics/delphes/delphes-9999.ebuild new file mode 100644 index 000000000..63ea3b5a8 --- /dev/null +++ b/sci-physics/delphes/delphes-9999.ebuild @@ -0,0 +1,40 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_MAKEFILE_GENERATOR="emake" +inherit cmake + +DESCRIPTION="Delphes performs a fast multipurpose detector response simulation." +HOMEPAGE=" + https://github.com/delphes/delphes + http://cp3.irmp.ucl.ac.be/projects/delphes +" + +MY_P=${PN^}-${PV} + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/delphes/delphes" +else + SRC_URI="http://cp3.irmp.ucl.ac.be/downloads/${MY_P}.tar.gz" + S="${WORKDIR}/${MY_P}" + # Alternatively https://github.com/delphes/delphes/archive/refs/tags/3.5.0.tar.gz + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3+" +SLOT="0" +DEPEND=" + sci-physics/root:=[opengl] + sci-physics/pythia:8= +" +RDEPEND="${DEPEND}" + +src_prepare() { + cmake_src_prepare + sed -i "s#DESTINATION cards#DESTINATION share/delphes/cards#g" cards/CMakeLists.txt || die + sed -i "s#DESTINATION examples#DESTINATION share/delphes/examples#g" examples/CMakeLists.txt || die + sed -i "s#DESTINATION lib#DESTINATION $(get_libdir)#g" {,modules/,classes/,display/}CMakeLists.txt || die +} diff --git a/sci-physics/delphes/metadata.xml b/sci-physics/delphes/metadata.xml new file mode 100644 index 000000000..dd24e438b --- /dev/null +++ b/sci-physics/delphes/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Alexander Puck Neuwirth</name> + </maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Physics Project</name> + </maintainer> + <longdescription lang="en"> + Delphes is a C++ framework, performing a fast multipurpose detector response simulation. The simulation includes a tracking system, embedded into a magnetic field, calorimeters and a muon system. The framework is interfaced to standard file formats (e.g. Les Houches Event File or HepMC) and outputs observables such as isolated leptons, missing transverse energy and collection of jets which can be used for dedicated analyses. The simulation of the detector response takes into account the effect of magnetic field, the granularity of the calorimeters and sub-detector resolutions. Visualisation of the final state particles is also built-in using the corresponding ROOT library. + </longdescription> + <upstream> + <remote-id type="github">delphes/delphes</remote-id> + </upstream> +</pkgmetadata>
