Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/oneloop/, sci-physics/oneloop/files/
Date: Wed, 02 Nov 2022 11:30:30
Message-Id: 1667388611.85accf3105facb51086d99c9cf0500c3568362b8.andrewammerlaan@gentoo
1 commit: 85accf3105facb51086d99c9cf0500c3568362b8
2 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
3 AuthorDate: Tue Oct 25 21:11:47 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 2 11:30:11 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=85accf31
7
8 sci-physics/oneloop: new package, add 2020.07.31
9
10 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
11 Closes: https://github.com/gentoo/sci/pull/1176
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
13
14 .../oneloop/files/oneloop-2020.07.31-config.patch | 11 +++++
15 sci-physics/oneloop/metadata.xml | 12 ++++++
16 sci-physics/oneloop/oneloop-2020.07.31.ebuild | 49 ++++++++++++++++++++++
17 3 files changed, 72 insertions(+)
18
19 diff --git a/sci-physics/oneloop/files/oneloop-2020.07.31-config.patch b/sci-physics/oneloop/files/oneloop-2020.07.31-config.patch
20 new file mode 100644
21 index 000000000..4af47e066
22 --- /dev/null
23 +++ b/sci-physics/oneloop/files/oneloop-2020.07.31-config.patch
24 @@ -0,0 +1,11 @@
25 +--- a/Config 2022-05-19 17:34:51.000000000 +0200
26 ++++ b/Config 2022-05-19 17:34:51.000000000 +0200
27 +@@ -3,7 +3,7 @@
28 + #FFLAGS = -Wall
29 +
30 + DPKIND = kind(1d0)
31 +-QPKIND = kind(1q0)
32 ++#QPKIND = kind(1q0)
33 + #DPKIND = selected_real_kind(15)
34 + #QPKIND = 16
35 + #DDTYPE = ddfun90
36
37 diff --git a/sci-physics/oneloop/metadata.xml b/sci-physics/oneloop/metadata.xml
38 new file mode 100644
39 index 000000000..bdee6992b
40 --- /dev/null
41 +++ b/sci-physics/oneloop/metadata.xml
42 @@ -0,0 +1,12 @@
43 +<?xml version="1.0" encoding="UTF-8"?>
44 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
45 +<pkgmetadata>
46 + <maintainer type="person">
47 + <email>alexander@×××××××××××××××××××.de</email>
48 + <name>Alexander Puck Neuwirth</name>
49 + </maintainer>
50 + <maintainer type="project">
51 + <email>sci-physics@g.o</email>
52 + <name>Gentoo Physics Project</name>
53 + </maintainer>
54 +</pkgmetadata>
55
56 diff --git a/sci-physics/oneloop/oneloop-2020.07.31.ebuild b/sci-physics/oneloop/oneloop-2020.07.31.ebuild
57 new file mode 100644
58 index 000000000..49b30f07e
59 --- /dev/null
60 +++ b/sci-physics/oneloop/oneloop-2020.07.31.ebuild
61 @@ -0,0 +1,49 @@
62 +# Copyright 2022 Gentoo Authors
63 +# Distributed under the terms of the GNU General Public License v2
64 +
65 +EAPI=8
66 +
67 +# python only needed for create.py to get binaries
68 +PYTHON_COMPAT=( python3_{8..11} )
69 +inherit toolchain-funcs python-any-r1
70 +
71 +DESCRIPTION="Library of one-loop scalar functions"
72 +HOMEPAGE="https://bitbucket.org/hameren/oneloop"
73 +SRC_URI="https://bitbucket.org/hameren/oneloop/get/3762b8bad6ad.zip -> ${P}.zip"
74 +S="${WORKDIR}/hameren-oneloop-3762b8bad6ad"
75 +
76 +LICENSE="GPL-3+"
77 +SLOT="0"
78 +KEYWORDS="~amd64"
79 +
80 +DEPEND=""
81 +RDEPEND="${DEPEND}"
82 +BDEPEND="
83 + ${PYTHON_DEPS}
84 + app-arch/unzip
85 + virtual/fortran
86 +"
87 +
88 +PATCHES=(
89 + "${FILESDIR}"/${P}-config.patch
90 +)
91 +
92 +src_configure() {
93 + tc-export FC
94 + sed -i "/FC = /s/gfortran/${FC}/g" Config || die
95 + sed -i "/FFLAGS = /s/ -O/${FFLAGS} -fPIC/g" Config || die
96 +}
97 +
98 +src_compile() {
99 + tc-export FC
100 + emake -f make_cuttools
101 + ${EPYTHON} ./create.py || die "Failed to compile"
102 + #./create.py dynamic || die
103 + ${FC} ${LDFLAGS} -Wl,-soname,libavh_olo.so -shared -o libavh_olo.so avh_olo.o || die "Failed to link"
104 +}
105 +
106 +src_install() {
107 + dolib.a libavh_olo.a
108 + dolib.so libavh_olo.so
109 + doheader avh_olo.mod
110 +}