commit: b64d07f9c282a2c7dd24b15a61ec082a76f5ddc1 Author: APN-Pucky <APN-Pucky <AT> users <DOT> noreply <DOT> github <DOT> com> AuthorDate: Tue Jul 19 11:55:57 2022 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Wed Jul 20 10:26:17 2022 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=b64d07f9
sci-physics/spheno: init ebuild Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> Closes: https://github.com/gentoo/sci/pull/1156 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> .../spheno/files/spheno-3.3.8-gfortran.patch | 28 +++++++++++++++ sci-physics/spheno/metadata.xml | 19 ++++++++++ sci-physics/spheno/spheno-3.3.8.ebuild | 41 ++++++++++++++++++++++ 3 files changed, 88 insertions(+) diff --git a/sci-physics/spheno/files/spheno-3.3.8-gfortran.patch b/sci-physics/spheno/files/spheno-3.3.8-gfortran.patch new file mode 100644 index 000000000..732c6c7ee --- /dev/null +++ b/sci-physics/spheno/files/spheno-3.3.8-gfortran.patch @@ -0,0 +1,28 @@ +--- a/Makefile 2022-02-16 16:04:19.000000000 +0100 ++++ b/Makefile 2022-02-17 22:13:48.086482293 +0100 +@@ -3,10 +3,10 @@ + # cases NAG's nagfor, gfortran, g95, Lahey's lf95 and Intels ifort + # Please uncomment the corresponding line + # F90 = nagfor +-# F90 = gfortran ++F90 = gfortran + # F90 = g95 + # F90 = lf95 +-F90 = ifort ++#F90 = ifort + Model = src + version = 400.00 + bin/SPheno: +--- a/src/Makefile 2022-07-20 11:47:44.078639381 +0200 ++++ b/src/Makefile 2022-07-20 11:50:40.553222937 +0200 +@@ -23,8 +23,8 @@ + + # gfortran + ifeq (${F90},gfortran) +- comp = -c -O -J${Mdir} -I${InDir} +- LFlagsB = -O ++ comp = -c -O -J${Mdir} -I${InDir} ${FFLAGS} ${FCFLAGS} ${CFLAGS} ++ LFlagsB = -O ${LDFLAGS} + endif + + # g95 diff --git a/sci-physics/spheno/metadata.xml b/sci-physics/spheno/metadata.xml new file mode 100644 index 000000000..277841e1a --- /dev/null +++ b/sci-physics/spheno/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Science Project</name> + </maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Physics Project</name> + </maintainer> + <maintainer type="person"> + <email>[email protected]</email> + <name>Alexander Puck Neuwirth</name> + </maintainer> + <longdescription lang="en"> +The code calculates the SUSY spectrum using low energy data and a user supplied high scale model as input. The spectrum is used to calculate two- and three body decay modes of supersymmetric particle as well as of Higgs bosons. In addition the production cross sections for supersymmetric particle and Higgs bosons in e^+ e^- annihilation is calculated. Moreover, the branching of the decay $b \to s \gamma$, the SUSY contribution to anomalous magnetic moment of the muon as well as the SUSY contributions to the rho parameter due to sfermions are calculated. The code is written in F90 with an emphasis on easy generalisability. The structure is set such that complex phases as well as the extension to include the flavour structure can be done in a straight forward way. The 2-loop renormalization group equations as well as the one-loop finite corrections a la Bagger, Matchev, Pierce and Zhang are included. In addition the two-loop corrections to the neutral Higgs boson masses (a la Brignole , Degrassi, Slavich and Zwirner) and to the mu-parameter (a la Dedes and Slavich) are included. Starting with version 2.2.2 the SUSY Les Houches Accord is supported as well as the SPA conventions (for details see hep-ph/0511344). + </longdescription> +</pkgmetadata> diff --git a/sci-physics/spheno/spheno-3.3.8.ebuild b/sci-physics/spheno/spheno-3.3.8.ebuild new file mode 100644 index 000000000..ef9ba6e97 --- /dev/null +++ b/sci-physics/spheno/spheno-3.3.8.ebuild @@ -0,0 +1,41 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=SPheno +MY_P=${MY_PN}-${PV} + +DESCRIPTION="SPheno stands for S(upersymmetric) Pheno(menology)" +HOMEPAGE="https://spheno.hepforge.org/" +SRC_URI="https://spheno.hepforge.org/downloads/?f=${MY_P}.tar.gz" + +LICENSE="all-rights-reserved" +RESTRICT="bindist mirror" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="virtual/fortran" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-gfortran.patch ) + +S="${WORKDIR}/${MY_P}" + +src_compile() { + # single thread force needed since fortan mods depend on each other + export MAKEOPTS=-j1 + emake +} + +src_install() { + dobin bin/${MY_PN} + # convenience symlink since the package is lowercase but the default produced binary is uppercase + dosym ${MY_PN} /usr/bin/${PN} + dolib.a lib/lib${MY_PN}.a + doheader include/* + dodoc doc/* + docinto examples + dodoc input/* + docompress -x /usr/share/doc/${PF}/examples +}
