commit: 3ae32aae9627d1e379da3e3a6cec9063ff54f67f
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT>
de>
AuthorDate: Tue May 7 20:16:00 2024 +0000
Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT>
de>
CommitDate: Thu Jun 27 12:20:40 2024 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3ae32aae
sci-physics/evtgen: new package, 02.02.01
Co-authored-by: Andrew Nowa Ammerlaan <andrewammerlaan <AT> gentoo.org>
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
sci-physics/evtgen/evtgen-02.02.01.ebuild | 39 +++++++++++++++++++++++++++++++
sci-physics/evtgen/metadata.xml | 23 ++++++++++++++++++
2 files changed, 62 insertions(+)
diff --git a/sci-physics/evtgen/evtgen-02.02.01.ebuild
b/sci-physics/evtgen/evtgen-02.02.01.ebuild
new file mode 100644
index 000000000..32c0ab3a8
--- /dev/null
+++ b/sci-physics/evtgen/evtgen-02.02.01.ebuild
@@ -0,0 +1,39 @@
+EAPI=8
+
+CMAKE_MAKEFILE_GENERATOR="emake"
+
+inherit cmake
+
+MY_PN="EvtGen"
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="EvtGen is a Monte Carlo event generator that simulates the decays"
+HOMEPAGE="https://evtgen.hepforge.org/"
+SRC_URI="https://evtgen.hepforge.org/downloads?f=${MY_P}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_PN}/R$(ver_rs 1-2 '-')"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+hepmc3 pythia photos tauola"
+
+RDEPEND="
+ !hepmc3? ( sci-physics/hepmc:2= )
+ hepmc3? ( sci-physics/hepmc:3= )
+ pythia? ( >=sci-physics/pythia-8.3.0:= )
+ photos? ( >=sci-physics/photos-3.64:= )
+ tauola? ( >=sci-physics/tauola-1.1.8:= )
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DEVTGEN_HEPMC3=$(usex hepmc3 ON OFF)
+ -DHEPMC3_ROOT_DIR="${ESYSROOT}/usr"
+ -DEVTGEN_PYTHIA=$(usex pythia ON OFF)
+ $(usex pythia -DPYTHIA8_ROOT_DIR="${ESYSROOT}/usr")
+ -DEVTGEN_PHOTOS=$(usex photos ON OFF)
+ -DEVTGEN_TAUOLA=$(usex tauola ON OFF)
+ )
+ cmake_src_configure
+}
diff --git a/sci-physics/evtgen/metadata.xml b/sci-physics/evtgen/metadata.xml
new file mode 100644
index 000000000..08f4b4aec
--- /dev/null
+++ b/sci-physics/evtgen/metadata.xml
@@ -0,0 +1,23 @@
+<?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">
+ EvtGen is a Monte Carlo event generator that simulates the decays of
heavy flavour particles, primarily B and D mesons. It contains a range of decay
models for intermediate and final states containing scalar, vector and tensor
mesons or resonances, as well as leptons, photons and baryons. Decay amplitudes
are used to generate each branch of a given full decay tree, taking into
account angular and time-dependent correlations which allows for the simulation
of CP-violating processes. Originally written by Anders Ryd and David Lange,
this package is used by many particle physics experiments worldwide, including
ATLAS, BaBar, Belle(-II), BES III, CDF, CLEO(-c), CMS, D0, and LHCb. The
maintenance and development of the package is now performed by the particle
physics group at the University of Warwick (in particular by John Back, Michal
Kreps, and Thomas Latham).
+ </longdescription>
+
+ <use>
+ <flag name="pythia">Build with pythia</flag>
+ <flag name="photos">Build with photos</flag>
+ <flag name="tauola">Build with tauola</flag>
+ <flag name="hepmc3">Build with hepmc version 3 support, else
hepmc version2 is used</flag>
+ </use>
+</pkgmetadata>