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/qcdloop/files/, sci-physics/qcdloop/
Date: Mon, 31 Oct 2022 10:35:41
Message-Id: 1667212249.b4864c2c722df80ee129223dc3f6c3272ce9d1fc.andrewammerlaan@gentoo
1 commit: b4864c2c722df80ee129223dc3f6c3272ce9d1fc
2 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
3 AuthorDate: Tue Oct 25 21:33:29 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 31 10:30:49 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=b4864c2c
7
8 sci-physics/qcdloop: new package, add 2.0.5, 2.0.9
9
10 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
11 Closes: https://github.com/gentoo/sci/pull/1177
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
13
14 sci-physics/qcdloop/files/qcdloop-2.0.5-cxx.patch | 11 +++++
15 sci-physics/qcdloop/files/qcdloop-2.0.9-cxx.patch | 11 +++++
16 sci-physics/qcdloop/metadata.xml | 15 +++++++
17 sci-physics/qcdloop/qcdloop-2.0.5.ebuild | 33 +++++++++++++++
18 sci-physics/qcdloop/qcdloop-2.0.9.ebuild | 50 +++++++++++++++++++++++
19 5 files changed, 120 insertions(+)
20
21 diff --git a/sci-physics/qcdloop/files/qcdloop-2.0.5-cxx.patch b/sci-physics/qcdloop/files/qcdloop-2.0.5-cxx.patch
22 new file mode 100644
23 index 000000000..56a665de2
24 --- /dev/null
25 +++ b/sci-physics/qcdloop/files/qcdloop-2.0.5-cxx.patch
26 @@ -0,0 +1,11 @@
27 +--- a/CMakeLists.txt 2022-09-19 11:13:08.777453946 +0200
28 ++++ b/CMakeLists.txt 2022-09-19 11:13:27.315507011 +0200
29 +@@ -20,7 +20,7 @@
30 + set(CMAKE_CXX_STANDARD_REQUIRED ON)
31 + set(CMAKE_CXX_EXTENSIONS OFF)
32 + set(VERSION "\"2.0.5\"")
33 +-set(CMAKE_CXX_FLAGS "-Wall -Wextra -march=nocona -mtune=haswell -fvisibility-inlines-hidden -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -fext-numeric-literals")
34 ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fext-numeric-literals")
35 + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address -fPIC ${CMAKE_CXX_FLAGS}" CACHE STRING "debug compile flags" FORCE)
36 + set(CMAKE_EXE_LINKER_FLAGS_DEBUG "-fsanitize=address" CACHE STRING "debug linker flags" FORCE)
37 + set(prefix ${CMAKE_INSTALL_PREFIX})
38
39 diff --git a/sci-physics/qcdloop/files/qcdloop-2.0.9-cxx.patch b/sci-physics/qcdloop/files/qcdloop-2.0.9-cxx.patch
40 new file mode 100644
41 index 000000000..b3babf764
42 --- /dev/null
43 +++ b/sci-physics/qcdloop/files/qcdloop-2.0.9-cxx.patch
44 @@ -0,0 +1,11 @@
45 +--- a/CMakeLists.txt 2022-09-19 11:13:08.777453946 +0200
46 ++++ b/CMakeLists.txt 2022-09-19 11:13:27.315507011 +0200
47 +@@ -20,7 +20,7 @@
48 + set(CMAKE_CXX_STANDARD_REQUIRED ON)
49 + set(CMAKE_CXX_EXTENSIONS OFF)
50 + set(VERSION "\"2.0.9\"")
51 +-set(CMAKE_CXX_FLAGS "-Wall -Wextra -march=nocona -mtune=haswell -fvisibility-inlines-hidden -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -fext-numeric-literals")
52 ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fext-numeric-literals")
53 + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address -fPIC ${CMAKE_CXX_FLAGS}" CACHE STRING "debug compile flags" FORCE)
54 + set(CMAKE_EXE_LINKER_FLAGS_DEBUG "-fsanitize=address" CACHE STRING "debug linker flags" FORCE)
55 + set(prefix ${CMAKE_INSTALL_PREFIX})
56
57 diff --git a/sci-physics/qcdloop/metadata.xml b/sci-physics/qcdloop/metadata.xml
58 new file mode 100644
59 index 000000000..5b1b9cd40
60 --- /dev/null
61 +++ b/sci-physics/qcdloop/metadata.xml
62 @@ -0,0 +1,15 @@
63 +<?xml version="1.0" encoding="UTF-8"?>
64 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
65 +<pkgmetadata>
66 + <maintainer type="person">
67 + <email>alexander@×××××××××××××××××××.de</email>
68 + <name>Alexander Puck Neuwirth</name>
69 + </maintainer>
70 + <maintainer type="project">
71 + <email>sci-physics@g.o</email>
72 + <name>Gentoo Physics Project</name>
73 + </maintainer>
74 + <longdescription lang="en">
75 + QCDLoop is a library of one-loop scalar Feynman integrals, evaluated close to four dimensions. First documented in arXiv:0712.1851 and recently in arXiv:1605.03181.
76 + </longdescription>
77 +</pkgmetadata>
78
79 diff --git a/sci-physics/qcdloop/qcdloop-2.0.5.ebuild b/sci-physics/qcdloop/qcdloop-2.0.5.ebuild
80 new file mode 100644
81 index 000000000..19a247ba2
82 --- /dev/null
83 +++ b/sci-physics/qcdloop/qcdloop-2.0.5.ebuild
84 @@ -0,0 +1,33 @@
85 +# Copyright 2022 Gentoo Authors
86 +# Distributed under the terms of the GNU General Public License v2
87 +
88 +EAPI=8
89 +
90 +CMAKE_MAKEFILE_GENERATOR="emake"
91 +
92 +inherit cmake
93 +
94 +DESCRIPTION="An object-oriented one-loop scalar Feynman integrals framework"
95 +HOMEPAGE="https://qcdloop.web.cern.ch/qcdloop/"
96 +SRC_URI="https://github.com/scarrazza/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
97 +
98 +LICENSE="GPL-3+"
99 +SLOT="0"
100 +KEYWORDS="~amd64"
101 +
102 +DEPEND=""
103 +RDEPEND="${DEPEND}"
104 +BDEPEND="
105 + virtual/fortran
106 +"
107 +
108 +PATCHES=(
109 + "${FILESDIR}"/${P}-cxx.patch
110 +)
111 +
112 +src_configure() {
113 + local mycmakeargs=(
114 + -DCMAKE_INSTALL_PREFIX="${ESYSROOT}/usr/$(get_libdir)"
115 + )
116 + cmake_src_configure
117 +}
118
119 diff --git a/sci-physics/qcdloop/qcdloop-2.0.9.ebuild b/sci-physics/qcdloop/qcdloop-2.0.9.ebuild
120 new file mode 100644
121 index 000000000..ccea20aa5
122 --- /dev/null
123 +++ b/sci-physics/qcdloop/qcdloop-2.0.9.ebuild
124 @@ -0,0 +1,50 @@
125 +# Copyright 2022 Gentoo Authors
126 +# Distributed under the terms of the GNU General Public License v2
127 +
128 +EAPI=8
129 +
130 +CMAKE_MAKEFILE_GENERATOR="emake"
131 +
132 +inherit cmake
133 +
134 +DESCRIPTION="An object-oriented one-loop scalar Feynman integrals framework"
135 +HOMEPAGE="https://qcdloop.web.cern.ch/qcdloop/"
136 +SRC_URI="https://github.com/scarrazza/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
137 +
138 +LICENSE="GPL-3+"
139 +SLOT="0"
140 +KEYWORDS="~amd64"
141 +
142 +DEPEND=""
143 +RDEPEND="${DEPEND}"
144 +BDEPEND="
145 + virtual/fortran
146 +"
147 +
148 +PATCHES=(
149 + "${FILESDIR}"/${P}-cxx.patch
150 +)
151 +
152 +src_prepare() {
153 + cmake_src_prepare
154 +
155 + # gentoo libdir love
156 + sed -i \
157 + -e '/DESTINATION/s/lib/lib${LIB_SUFFIX}/g' \
158 + CMakeLists.txt || die
159 + sed -i \
160 + -e '/libdir.*/s/lib/lib${LIB_SUFFIX}/g' \
161 + CMakeLists.txt || die
162 +
163 + #sed -i \
164 + # -e '/qcdloop/s/SHARED/STATIC/g' \
165 + # CMakeLists.txt || die
166 +}
167 +
168 +src_configure() {
169 + local mycmakeargs=(
170 + -DCMAKE_INSTALL_PREFIX="${ESYSROOT}"/usr
171 + -DENABLE_FORTRAN_WRAPPER=ON
172 + )
173 + cmake_src_configure
174 +}