1 |
commit: 44ccd09a199e234c68a5b1fef0883a6b37d37460 |
2 |
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> |
3 |
AuthorDate: Tue Oct 25 21:06:03 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 31 10:26:04 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=44ccd09a |
7 |
|
8 |
sci-libs/handyg: new package, add 0.1.5 |
9 |
|
10 |
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> |
11 |
Closes: https://github.com/gentoo/sci/pull/1175 |
12 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
13 |
|
14 |
sci-libs/handyg/files/handyg-0.1.5-ld.patch | 22 +++++++++++++++ |
15 |
sci-libs/handyg/files/handyg-0.1.5-so.patch | 23 +++++++++++++++ |
16 |
sci-libs/handyg/handyg-0.1.5.ebuild | 44 +++++++++++++++++++++++++++++ |
17 |
sci-libs/handyg/metadata.xml | 12 ++++++++ |
18 |
4 files changed, 101 insertions(+) |
19 |
|
20 |
diff --git a/sci-libs/handyg/files/handyg-0.1.5-ld.patch b/sci-libs/handyg/files/handyg-0.1.5-ld.patch |
21 |
new file mode 100644 |
22 |
index 000000000..f3f06cd91 |
23 |
--- /dev/null |
24 |
+++ b/sci-libs/handyg/files/handyg-0.1.5-ld.patch |
25 |
@@ -0,0 +1,22 @@ |
26 |
+--- a/configure 2022-09-19 01:59:40.382091704 +0200 |
27 |
++++ b/configure 2022-09-19 02:00:00.734380534 +0200 |
28 |
+@@ -358,7 +358,7 @@ |
29 |
+ FLDFLAGS+=" $1" ;; |
30 |
+ -Bstatic | -Bdynamic | *.ld) |
31 |
+ echo "Found linker flag $1" 1>&2 |
32 |
+- FLDFLAGS+=" -Wl,$1" ;; |
33 |
++ FLDFLAGS+=" $1" ;; |
34 |
+ /*) |
35 |
+ echo "Found linker flag $1" 1>&2 |
36 |
+ FLDFLAGS+=" -L$1" ;; |
37 |
+--- a/configure 2022-09-19 02:02:18.064324729 +0200 |
38 |
++++ b/configure 2022-09-19 02:02:22.935393539 +0200 |
39 |
+@@ -364,7 +364,7 @@ |
40 |
+ FLDFLAGS+=" -L$1" ;; |
41 |
+ -rpath*) |
42 |
+ echo "Found linker flag $1" 1>&2 |
43 |
+- FLDFLAGS+=" -Wl,$1,$2" |
44 |
++ FLDFLAGS+=" $1,$2" |
45 |
+ shift ;; |
46 |
+ -dynamic-linker) |
47 |
+ shift ;; |
48 |
|
49 |
diff --git a/sci-libs/handyg/files/handyg-0.1.5-so.patch b/sci-libs/handyg/files/handyg-0.1.5-so.patch |
50 |
new file mode 100644 |
51 |
index 000000000..48815780e |
52 |
--- /dev/null |
53 |
+++ b/sci-libs/handyg/files/handyg-0.1.5-so.patch |
54 |
@@ -0,0 +1,23 @@ |
55 |
+--- a/configure 2022-09-19 22:54:12.742507414 +0200 |
56 |
++++ b/configure 2022-09-19 23:00:13.452378883 +0200 |
57 |
+@@ -839,7 +839,7 @@ |
58 |
+ objects = \$(addprefix build/,\$(files)) |
59 |
+ |
60 |
+ |
61 |
+-all: libhandyg.a handyg.mod ${CONF_MPREP:+handyG} geval test |
62 |
++all: libhandyg.a libhandyg.so handyg.mod ${CONF_MPREP:+handyG} geval test |
63 |
+ |
64 |
+ EOF |
65 |
+ |
66 |
+@@ -868,6 +868,11 @@ |
67 |
+ @echo "AR \$@" |
68 |
+ @\$(AR) \$@ \$^ |
69 |
+ |
70 |
++libhandyg.so:\$(objects) |
71 |
++ @echo "\$(FC) \$@" |
72 |
++ \$(FC) \$(LFLAGS) -Wl,-soname,libhandyg.so -shared -o \$@ \$^ |
73 |
++ |
74 |
++ |
75 |
+ handyg.mod: build/handyg.mod |
76 |
+ cp \$< \$@ |
77 |
+ |
78 |
|
79 |
diff --git a/sci-libs/handyg/handyg-0.1.5.ebuild b/sci-libs/handyg/handyg-0.1.5.ebuild |
80 |
new file mode 100644 |
81 |
index 000000000..97a18c08e |
82 |
--- /dev/null |
83 |
+++ b/sci-libs/handyg/handyg-0.1.5.ebuild |
84 |
@@ -0,0 +1,44 @@ |
85 |
+# Copyright 2022 Gentoo Authors |
86 |
+# Distributed under the terms of the GNU General Public License v2 |
87 |
+ |
88 |
+EAPI=8 |
89 |
+ |
90 |
+inherit toolchain-funcs |
91 |
+MY_P=${PN}-v${PV} |
92 |
+ |
93 |
+DESCRIPTION="Rapid numerical evaluation of generalised polylogarithms" |
94 |
+HOMEPAGE="https://gitlab.com/mule-tools/handyg" |
95 |
+SRC_URI="https://gitlab.com/mule-tools/${PN}/-/archive/v${PV}/${MY_P}.tar.gz" |
96 |
+S="${WORKDIR}/${MY_P}" |
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}-so.patch" |
110 |
+) |
111 |
+ |
112 |
+src_configure() { |
113 |
+ tc-export CC CXX FC AR |
114 |
+ FFLAGS="${FFLAGS} -fPIC" LD="${FC}" ./configure --prefix="${EPREFIX}/usr" LDFLAGS="${LDFLAGS}" |
115 |
+} |
116 |
+ |
117 |
+src_compile() { |
118 |
+ # single thread force needed since fortan mods depend on each other |
119 |
+ export MAKEOPTS=-j1 |
120 |
+ emake all |
121 |
+} |
122 |
+ |
123 |
+src_install() { |
124 |
+ dolib.a libhandyg.a |
125 |
+ dolib.so libhandyg.so |
126 |
+ doheader handyg.mod |
127 |
+ dobin geval |
128 |
+} |
129 |
|
130 |
diff --git a/sci-libs/handyg/metadata.xml b/sci-libs/handyg/metadata.xml |
131 |
new file mode 100644 |
132 |
index 000000000..bdee6992b |
133 |
--- /dev/null |
134 |
+++ b/sci-libs/handyg/metadata.xml |
135 |
@@ -0,0 +1,12 @@ |
136 |
+<?xml version="1.0" encoding="UTF-8"?> |
137 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
138 |
+<pkgmetadata> |
139 |
+ <maintainer type="person"> |
140 |
+ <email>alexander@×××××××××××××××××××.de</email> |
141 |
+ <name>Alexander Puck Neuwirth</name> |
142 |
+ </maintainer> |
143 |
+ <maintainer type="project"> |
144 |
+ <email>sci-physics@g.o</email> |
145 |
+ <name>Gentoo Physics Project</name> |
146 |
+ </maintainer> |
147 |
+</pkgmetadata> |