* [gentoo-commits] proj/sci:master commit in: sci-physics/spheno/, sci-physics/spheno/files/
@ 2022-07-20 10:29 Andrew Ammerlaan
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2022-07-20 10:29 UTC (permalink / raw
To: gentoo-commits
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>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-physics@gentoo.org</email>
+ <name>Gentoo Physics Project</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>alexander@neuwirth-informatik.de</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
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-physics/spheno/, sci-physics/spheno/files/
@ 2022-08-07 7:20 Andrew Ammerlaan
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2022-08-07 7:20 UTC (permalink / raw
To: gentoo-commits
commit: 128f7ed51c79a81eb10d7751b8f00d5a61f35960
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
AuthorDate: Sun Jul 24 00:29:19 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sun Aug 7 07:20:48 2022 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=128f7ed5
sci-physics/spheno: tc-export AR
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
Closes: https://github.com/gentoo/sci/pull/1162
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-physics/spheno/files/spheno-3.3.8-gfortran.patch | 16 +++++++++++++++-
sci-physics/spheno/spheno-3.3.8.ebuild | 4 ++--
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/sci-physics/spheno/files/spheno-3.3.8-gfortran.patch b/sci-physics/spheno/files/spheno-3.3.8-gfortran.patch
index e4538e7c1..8f6fa7e19 100644
--- a/sci-physics/spheno/files/spheno-3.3.8-gfortran.patch
+++ b/sci-physics/spheno/files/spheno-3.3.8-gfortran.patch
@@ -1,5 +1,5 @@
--- a/src/Makefile 2022-07-20 11:47:44.078639381 +0200
-+++ b/src/Makefile 2022-07-22 19:24:00.389938450 +0200
++++ b/src/Makefile 2022-07-24 02:16:38.972041809 +0200
@@ -9,10 +9,11 @@
# options for various compilers
#
@@ -16,3 +16,17 @@
# Intels ifort, debug modus
ifeq (${F90},ifortg)
+@@ -70,11 +71,11 @@
+ #
+ .f90.a:
+ ${F90} ${comp} $<
+- ar -ruc $@ $*.o
++ $(AR) -ruc $@ $*.o
+ rm -f $*.o
+ .F90.a:
+ ${F90} ${comp} ${PreDef} $<
+- ar -ruc $@ $*.o
++ $(AR) -ruc $@ $*.o
+ rm -f $*.o
+ .f90.o:
+ ${F90} ${comp} $<
diff --git a/sci-physics/spheno/spheno-3.3.8.ebuild b/sci-physics/spheno/spheno-3.3.8.ebuild
index 21caf1019..9a740b89e 100644
--- a/sci-physics/spheno/spheno-3.3.8.ebuild
+++ b/sci-physics/spheno/spheno-3.3.8.ebuild
@@ -26,8 +26,8 @@ PATCHES=( "${FILESDIR}"/${P}-gfortran.patch )
src_compile() {
# single thread force needed since fortan mods depend on each other
export MAKEOPTS=-j1
- F90=`tc-getFC`
- emake F90="${F90}"
+ tc-export FC AR
+ emake AR="${AR}" F90="${FC}"
}
src_install() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-07 7:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-07 7:20 [gentoo-commits] proj/sci:master commit in: sci-physics/spheno/, sci-physics/spheno/files/ Andrew Ammerlaan
-- strict thread matches above, loose matches on Subject: below --
2022-07-20 10:29 Andrew Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox