Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sci-physics/{tauola,photos,evtgen,herwig}: {1.1.8-r1,3.64,02.02.01,7.3.0} #1271

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sci-physics/evtgen/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST evtgen-02.02.01.tar.gz 2941525 BLAKE2B 8672f2d2e7452ba2330180a7e385d020372bdb436d22b12507ee22344f5013b439f68817e70ed50afbc3585beb15f01b0c29ee35dcbbaac8ec1ee0f8d573b3e2 SHA512 652424dae1d3e3d69c19fa946cd00e61ca5117e38eee20a41a98972374d79261fe7267311c06ecab497729f31e5842e340d6739434f09e5088972c95d2ce9c17
39 changes: 39 additions & 0 deletions sci-physics/evtgen/evtgen-02.02.01.ebuild
Original file line number Diff line number Diff line change
@@ -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
}
23 changes: 23 additions & 0 deletions sci-physics/evtgen/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>alexander@neuwirth-informatik.de</email>
<name>Alexander Puck Neuwirth</name>
</maintainer>
<maintainer type="project">
<email>sci-physics@gentoo.org</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>
1 change: 1 addition & 0 deletions sci-physics/herwig/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST herwig-7.3.0.tar.bz2 4264666 BLAKE2B 33b9bbce0f69f5c73ddc16c19d98323ea60d89fb00dacdbb069440b574721bd44eee6528d78b2e9aaf3bea1d59e5112ca3f4c780032da9807e6d2a676ebacde5 SHA512 29254026c715550d0cd537a33ac37d17ab93279087901e284fea4209091fd3f84244ecbd223e0fe3fd30923c755d630cf066b17bc35288c5f3ab6f4e8d4a5bbe
65 changes: 65 additions & 0 deletions sci-physics/herwig/herwig-7.3.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
EAPI=8

PYTHON_COMPAT=( python3_{10..12} )

inherit fortran-2 python-single-r1 autotools

MY_PN="Herwig"
MY_PF=${MY_PN}-${PV}

DESCRIPTION="Herwig is a multi-purpose particle physics event generator."
HOMEPAGE="https://herwig.hepforge.org/"
SRC_URI="https://herwig.hepforge.org/downloads?f=${MY_PF}.tar.bz2 -> ${P}.tar.bz2"
S="${WORKDIR}/${MY_PF}"

LICENSE="GPL-3+"
SLOT="7"
KEYWORDS="~amd64"
IUSE="+pythia" # madgraph openloops gosam vbfnlo njet
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
"

RDEPEND="
>=dev-libs/boost-1.62
>=sci-libs/gsl-2.6
sci-physics/fastjet
sci-physics/lhapdf-sets[lhapdf_sets_ct14lo,lhapdf_sets_ct14nlo]
>=sci-physics/lhapdf-6.1.6[python(+),${PYTHON_SINGLE_USEDEP}]
>=sci-physics/thepeg-2.1.0[lhapdf,fastjet,-hepmc2(-),hepmc3(-),rivet(-)]
>=sci-physics/evtgen-02.02.00[pythia]
pythia? ( sci-physics/pythia:8= )
${PYTHON_DEPS}
"
# madgraph? ( sci-physics/madgraph5 )
# openloops? ( sci-physics/openloops )
# gosam? ( sci-physics/gosam )
# vbfnlo? ( sci-physics/vbfnlo )
# njet? ( sci-physics/njet )
DEPEND="${RDEPEND}"

src_prepare() {
default
eautoreconf
}

# https://herwig.hepforge.org/tutorials/installation/manual.html
# Minimal installation for now
src_configure() {
CONFIG_SHELL=${ESYSROOT}/bin/bash \
econf \
--with-evtgen="${EPREFIX}"/usr \
--with-fastjet="${EPREFIX}"/usr \
--with-thepeg="${EPREFIX}"/usr \
--with-boost="${EPREFIX}"/usr \
$(use_with pythia pythia "${EPREFIX}"/usr) \
# $(use_with madgraph madgraph "${EPREFIX}"/opt/MadGraph5/ ) \
# $(use_with openloops openloops "${EPREFIX}"/opt/OpenLoops2/ ) \
# $(use_with gosam gosam "${EPREFIX}"/usr) \
# $(use_with vbfnlo vbfnlo "${EPREFIX}"/usr) \
# $(use_with njet njet "${EPREFIX}"/usr)
}

src_install() {
default
}
26 changes: 26 additions & 0 deletions sci-physics/herwig/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>alexander@neuwirth-informatik.de</email>
<name>Alexander Puck Neuwirth</name>
</maintainer>
<maintainer type="project">
<email>sci-physics@gentoo.org</email>
<name>Gentoo Physics Project</name>
</maintainer>

<longdescription lang="en">
Herwig provides significantly improved and extended physics capabilities when compared to both its predecessors, HERWIG 6 and Herwig++ 2, while keeping the key model motivations such as coherent parton showers (including angular-ordered and dipole-based evolution), the cluster hadronization model, an eikonal multiple-interaction model, highly flexible BSM capabilities and improved perturbative input using next-to-leading order QCD.
</longdescription>
<use>
<flag name="pythia">Build with pythia support </flag>
<!--
<flag name="openloops">Build with openloops support </flag>
<flag name="gosam">Build with gosam support </flag>
<flag name="madgraph">Build with madgraph support </flag>
<flag name="vbfnlo">Build with vbfnlo support </flag>
<flag name="njet">Build with njet support </flag>
-->
</use>
</pkgmetadata>
1 change: 1 addition & 0 deletions sci-physics/photos/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST PHOTOS.3.64.tar.gz 1415406 BLAKE2B 503247dbcaa15d801850e8cf4981aaffd7b04c13c6542543fab88d00e08ebd6831b828ddfbd3d26469f2cddcfc21acfbeaae171f3778deaabd5abddcc1d64d0e SHA512 750e213a257479b41ac9b4848787a61035ab5ed2157d3b4e3b4b0a081241f5c76e882f66b401dcfbea363e7154aa2a4ae1ba05ac1e40a35c2e5687d10910085e
23 changes: 23 additions & 0 deletions sci-physics/photos/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>alexander@neuwirth-informatik.de</email>
<name>Alexander Puck Neuwirth</name>
</maintainer>
<maintainer type="project">
<email>sci-physics@gentoo.org</email>
<name>Gentoo Physics Project</name>
</maintainer>

<longdescription lang="en">
The main application of PHOTOS is the generation of QED radiative corrections in decays of any resonances, simulated by a "host" Monte Carlo generator
</longdescription>

<use>
<flag name="pythia">Build with pythia</flag>
<flag name="hepmc2">Build with hepmc 2</flag>
<flag name="hepmc3">Build with hepmc 3</flag>
<flag name="tauola">Build with tauola</flag>
</use>
</pkgmetadata>
82 changes: 82 additions & 0 deletions sci-physics/photos/photos-3.64.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit fortran-2 autotools

MY_PN="PHOTOS"
MY_P=${MY_PN}.${PV}

DESCRIPTION="Monte Carlo for bremsstrahlung in the decay of particles and resonances"
HOMEPAGE="
https://gitlab.cern.ch/photospp/photospp
http://photospp.web.cern.ch/photospp/
"
SRC_URI="https://photospp.web.cern.ch/resources/${MY_P}/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_PN}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc examples hepmc2 hepmc3 pythia tauola"

RDEPEND="
hepmc2? ( sci-physics/hepmc:2=[-cm(-),gev(+)] )
hepmc3? ( sci-physics/hepmc:3=[-cm(-),gev(+)] )
pythia? ( sci-physics/pythia:8= )
tauola? ( sci-physics/tauola[hepmc2?,hepmc3?,pythia?] )
"
DEPEND="${RDEPEND}"
BDEPEND="
doc? (
app-text/doxygen[dot]
app-text/ghostscript-gpl
app-text/texlive
)
"
APN-Pucky marked this conversation as resolved.
Show resolved Hide resolved
REQUIRED_USE=" || ( hepmc2 hepmc3 )"

src_prepare() {
default
eautoreconf
}

src_configure() {
econf \
--without-mc-tester \
$(use_with hepmc3 hepmc3 "${EPREFIX}/usr") \
$(use_with hepmc2 hepmc "${EPREFIX}/usr") \
$(use_with pythia pythia8 "${EPREFIX}/usr") \
$(use_with tauola tauola "${EPREFIX}/usr")
# weird autoconf + Makefile
cat <<-EOF >> make.inc || die
LDFLAGS += ${LDFLAGS}
CFLAGS += ${CFLAGS}
FFLAGS += ${FFLAGS}
EOF
}

src_compile() {
emake -j1

if use doc; then
cd "${S}/documentation/doxy_documentation" || die
default
cd "${S}/documentation/latex_documentation" || die
default
fi
}

src_install() {
emake DESTDIR="${D}" install

if use doc; then
dodoc documentation/doxy_documentation/html/*
dodoc documentation/latex_documentation/*.pdf
fi

if use examples; then
dodoc -r examples
fi
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- a/Makefile 2020-01-28 18:43:43.000000000 +0100
+++ b/Makefile 2024-05-07 21:51:01.306908458 +0200
@@ -48,7 +48,7 @@
mkdir -p $(DESTDIR)/$(PREFIX)/include/Tauola
install -m 644 include/Tauola/* $(DESTDIR)/$(PREFIX)/include/Tauola/.
mkdir -p $(DESTDIR)/$(LIBDIR)
- install lib/*so.$(LIB_VER) $(DESTDIR)/$(LIBDIR)/
+ install lib/*so.* $(DESTDIR)/$(LIBDIR)/
install lib/*a $(DESTDIR)/$(LIBDIR)/
cp -P lib/*so $(DESTDIR)/$(LIBDIR)/

--- a/TauSpinner/Makefile 2024-05-07 21:57:58.542875180 +0200
+++ b/TauSpinner/Makefile 2024-05-07 21:58:42.993509785 +0200
@@ -52,7 +52,7 @@

libTauSpinner: $(TAU_SPINNER_OBJECTS)
ar cr lib/$(LIB_TAU_SPINNER_A) $(TAU_SPINNER_OBJECTS)
- $(LD) $(LDFLAGS) $(SOFLAGS) $(TAU_SPINNER_OBJECTS) -o lib/$(LIB_TAU_SPINNER_SO).$(LIB_VER)
+ $(LD) $(LDFLAGS) $(SOFLAGS) $(TAU_SPINNER_OBJECTS) -o lib/$(LIB_TAU_SPINNER_SO).$(LIB_VER) -Wl,-soname,$(LIB_TAU_SPINNER_SO)
ln -sf $(LIB_TAU_SPINNER_SO).$(LIB_VER) lib/$(LIB_TAU_SPINNER_SO)

clean:
13 changes: 11 additions & 2 deletions sci-physics/tauola/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>piatlicki@gmail.com</email>
<email>alexander@neuwirth-informatik.de</email>
<name>Alexander Puck Neuwirth</name>
</maintainer>
<maintainer type="project">
<email>sci-physics@gentoo.org</email>
<name>Gentoo Physics Project</name>
</maintainer>

<longdescription lang="en">
TAUOLA is a program that simulates the decays of polarized tau leptons, which are elementary particles that belong to the lepton family. Tau leptons are heavier than electrons and muons, and they can decay into various final states, such as hadrons, leptons, and neutrinos. TAUOLA can generate Monte Carlo events for tau lepton decays, taking into account the polarization, spin correlations, and radiative corrections. TAUOLA can also model anomalous and lepton flavor violating decays, which are beyond the standard model of particle physics.
</longdescription>
<use>
<flag name="hepmc">Compile <pkg>sci-physics/hepmc</pkg> interface</flag>
<flag name="hepmc"> Compile with <pkg>sci-physics/hepmc</pkg> version 2 interface </flag>
<flag name="hepmc2"> Compile with <pkg>sci-physics/hepmc</pkg> version 2 interface </flag>
<flag name="hepmc3"> Compile with <pkg>sci-physics/hepmc</pkg> version 3 interface </flag>
<flag name="pythia"> Compile with <pkg>sci-physics/pythia</pkg> connection </flag>
<flag name="lhapdf"> Compile with <pkg>sci-physics/lhapdf</pkg> connection </flag>
<flag name="tau-spinner">Compile with TauSpinner library</flag>
</use>
</pkgmetadata>
80 changes: 80 additions & 0 deletions sci-physics/tauola/tauola-1.1.8-r1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit fortran-2

MY_PN="TAUOLA"
MY_P=${MY_PN}.${PV}

DESCRIPTION="Tau decay Monte Carlo generator"
HOMEPAGE="http://tauolapp.web.cern.ch/"
SRC_URI="https://tauolapp.web.cern.ch/resources/${MY_P}/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_PN}"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+hepmc3 +lhapdf doc examples hepmc2 pythia tau-spinner"
REQUIRED_USE=" || ( hepmc2 hepmc3 ) tau-spinner? ( lhapdf )"

RDEPEND="
hepmc2? ( sci-physics/hepmc:2=[-cm(-),gev(+)] )
hepmc3? ( sci-physics/hepmc:3=[-cm(-),gev(+)] )
pythia? ( sci-physics/pythia:8= )
lhapdf? ( sci-physics/lhapdf )
"
DEPEND="${RDEPEND}"
BDEPEND="
doc? (
app-text/doxygen[dot]
app-text/ghostscript-gpl
app-text/texlive
)
APN-Pucky marked this conversation as resolved.
Show resolved Hide resolved
"

PATCHES=(
"${FILESDIR}"/${PN}-1.1.8-tau-spinner-makefile-install.patch
)

src_configure() {
econf \
$(use_with lhapdf) \
$(use_with tau-spinner) \
$(use_with pythia pythia8 "${EPREFIX}/usr") \
$(use_with hepmc2 hepmc "${EPREFIX}/usr") \
$(use_with hepmc3 hepmc3 "${EPREFIX}/usr") \
--without-mc-tester
# weird autoconf + Makefile
cat <<-EOF >> make.inc || die
LDFLAGS += ${LDFLAGS}
CFLAGS += ${CFLAGS}
FFLAGS += ${FFLAGS}
EOF
}

src_compile() {
emake -j1

if use doc; then
cd "${S}/documentation/doxy_documentation" || die
default
cd "${S}/documentation/latex_documentation" || die
default
fi
}

src_install() {
emake DESTDIR="${D}" install

if use doc; then
dodoc documentation/doxy_documentation/html/*
dodoc documentation/latex_documentation/*.pdf
fi

if use examples; then
dodoc -r examples
docinto tau-spinner && dodoc -r TauSpinner/examples
fi
}
Loading