Skip to content

Commit 1bc136b

Browse files
sci-physics/delphes: new package, add 3.5.0, 9999
Closes: #1338 Co-authored-by: Nowa Ammerlaan <[email protected]> Signed-off-by: Alexander Puck Neuwirth <[email protected]>
1 parent c9ab358 commit 1bc136b

File tree

4 files changed

+99
-0
lines changed

4 files changed

+99
-0
lines changed

sci-physics/delphes/Manifest

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DIST Delphes-3.5.0.tar.gz 5421592 BLAKE2B 12e4f9d9f9c06369c6d8bc77cc268392c64be284ca0863e520ed76b6c38bd57c3f3e854b49f22a3cefbef0abf2fab2192def827f87c39af342d08686169e7cb7 SHA512 bbe27ce9057fb79a9aa4128f1e2bcee02284e0cbf2bd108eff252bad8439f79d9ac51fab8e3f39de217f1cb0ccc55b6f0fa0e90000b87a7f38bd5166eddee53b
+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright 2025 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
CMAKE_MAKEFILE_GENERATOR="emake"
7+
inherit cmake
8+
9+
DESCRIPTION="Delphes performs a fast multipurpose detector response simulation."
10+
HOMEPAGE="
11+
https://github.com/delphes/delphes
12+
http://cp3.irmp.ucl.ac.be/projects/delphes
13+
"
14+
15+
MY_P=${PN^}-${PV}
16+
17+
if [[ ${PV} == 9999 ]]; then
18+
inherit git-r3
19+
EGIT_REPO_URI="https://github.com/delphes/delphes"
20+
else
21+
SRC_URI="http://cp3.irmp.ucl.ac.be/downloads/${MY_P}.tar.gz"
22+
S="${WORKDIR}/${MY_P}"
23+
# Alternatively https://github.com/delphes/delphes/archive/refs/tags/3.5.0.tar.gz
24+
KEYWORDS="~amd64"
25+
fi
26+
27+
LICENSE="GPL-3+"
28+
SLOT="0"
29+
DEPEND="
30+
sci-physics/root:=[opengl]
31+
sci-physics/pythia:8=
32+
"
33+
RDEPEND="${DEPEND}"
34+
35+
src_prepare() {
36+
cmake_src_prepare
37+
sed -i "s#DESTINATION cards#DESTINATION share/delphes/cards#g" cards/CMakeLists.txt || die
38+
sed -i "s#DESTINATION examples#DESTINATION share/delphes/examples#g" examples/CMakeLists.txt || die
39+
sed -i "s#DESTINATION lib#DESTINATION $(get_libdir)#g" {,modules/,classes/,display/}CMakeLists.txt || die
40+
}
+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright 2025 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
CMAKE_MAKEFILE_GENERATOR="emake"
7+
inherit cmake
8+
9+
DESCRIPTION="Delphes performs a fast multipurpose detector response simulation."
10+
HOMEPAGE="
11+
https://github.com/delphes/delphes
12+
http://cp3.irmp.ucl.ac.be/projects/delphes
13+
"
14+
15+
MY_P=${PN^}-${PV}
16+
17+
if [[ ${PV} == 9999 ]]; then
18+
inherit git-r3
19+
EGIT_REPO_URI="https://github.com/delphes/delphes"
20+
else
21+
SRC_URI="http://cp3.irmp.ucl.ac.be/downloads/${MY_P}.tar.gz"
22+
S="${WORKDIR}/${MY_P}"
23+
# Alternatively https://github.com/delphes/delphes/archive/refs/tags/3.5.0.tar.gz
24+
KEYWORDS="~amd64"
25+
fi
26+
27+
LICENSE="GPL-3+"
28+
SLOT="0"
29+
DEPEND="
30+
sci-physics/root:=[opengl]
31+
sci-physics/pythia:8=
32+
"
33+
RDEPEND="${DEPEND}"
34+
35+
src_prepare() {
36+
cmake_src_prepare
37+
sed -i "s#DESTINATION cards#DESTINATION share/delphes/cards#g" cards/CMakeLists.txt || die
38+
sed -i "s#DESTINATION examples#DESTINATION share/delphes/examples#g" examples/CMakeLists.txt || die
39+
sed -i "s#DESTINATION lib#DESTINATION $(get_libdir)#g" {,modules/,classes/,display/}CMakeLists.txt || die
40+
}

sci-physics/delphes/metadata.xml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="person">
5+
<email>[email protected]</email>
6+
<name>Alexander Puck Neuwirth</name>
7+
</maintainer>
8+
<maintainer type="project">
9+
<email>[email protected]</email>
10+
<name>Gentoo Physics Project</name>
11+
</maintainer>
12+
<longdescription lang="en">
13+
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.
14+
</longdescription>
15+
<upstream>
16+
<remote-id type="github">delphes/delphes</remote-id>
17+
</upstream>
18+
</pkgmetadata>

0 commit comments

Comments
 (0)