commit: 44ccd09a199e234c68a5b1fef0883a6b37d37460 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Tue Oct 25 21:06:03 2022 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Mon Oct 31 10:26:04 2022 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=44ccd09a
sci-libs/handyg: new package, add 0.1.5 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> Closes: https://github.com/gentoo/sci/pull/1175 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> sci-libs/handyg/files/handyg-0.1.5-ld.patch | 22 +++++++++++++++ sci-libs/handyg/files/handyg-0.1.5-so.patch | 23 +++++++++++++++ sci-libs/handyg/handyg-0.1.5.ebuild | 44 +++++++++++++++++++++++++++++ sci-libs/handyg/metadata.xml | 12 ++++++++ 4 files changed, 101 insertions(+) diff --git a/sci-libs/handyg/files/handyg-0.1.5-ld.patch b/sci-libs/handyg/files/handyg-0.1.5-ld.patch new file mode 100644 index 000000000..f3f06cd91 --- /dev/null +++ b/sci-libs/handyg/files/handyg-0.1.5-ld.patch @@ -0,0 +1,22 @@ +--- a/configure 2022-09-19 01:59:40.382091704 +0200 ++++ b/configure 2022-09-19 02:00:00.734380534 +0200 +@@ -358,7 +358,7 @@ + FLDFLAGS+=" $1" ;; + -Bstatic | -Bdynamic | *.ld) + echo "Found linker flag $1" 1>&2 +- FLDFLAGS+=" -Wl,$1" ;; ++ FLDFLAGS+=" $1" ;; + /*) + echo "Found linker flag $1" 1>&2 + FLDFLAGS+=" -L$1" ;; +--- a/configure 2022-09-19 02:02:18.064324729 +0200 ++++ b/configure 2022-09-19 02:02:22.935393539 +0200 +@@ -364,7 +364,7 @@ + FLDFLAGS+=" -L$1" ;; + -rpath*) + echo "Found linker flag $1" 1>&2 +- FLDFLAGS+=" -Wl,$1,$2" ++ FLDFLAGS+=" $1,$2" + shift ;; + -dynamic-linker) + shift ;; diff --git a/sci-libs/handyg/files/handyg-0.1.5-so.patch b/sci-libs/handyg/files/handyg-0.1.5-so.patch new file mode 100644 index 000000000..48815780e --- /dev/null +++ b/sci-libs/handyg/files/handyg-0.1.5-so.patch @@ -0,0 +1,23 @@ +--- a/configure 2022-09-19 22:54:12.742507414 +0200 ++++ b/configure 2022-09-19 23:00:13.452378883 +0200 +@@ -839,7 +839,7 @@ + objects = \$(addprefix build/,\$(files)) + + +-all: libhandyg.a handyg.mod ${CONF_MPREP:+handyG} geval test ++all: libhandyg.a libhandyg.so handyg.mod ${CONF_MPREP:+handyG} geval test + + EOF + +@@ -868,6 +868,11 @@ + @echo "AR \$@" + @\$(AR) \$@ \$^ + ++libhandyg.so:\$(objects) ++ @echo "\$(FC) \$@" ++ \$(FC) \$(LFLAGS) -Wl,-soname,libhandyg.so -shared -o \$@ \$^ ++ ++ + handyg.mod: build/handyg.mod + cp \$< \$@ + diff --git a/sci-libs/handyg/handyg-0.1.5.ebuild b/sci-libs/handyg/handyg-0.1.5.ebuild new file mode 100644 index 000000000..97a18c08e --- /dev/null +++ b/sci-libs/handyg/handyg-0.1.5.ebuild @@ -0,0 +1,44 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs +MY_P=${PN}-v${PV} + +DESCRIPTION="Rapid numerical evaluation of generalised polylogarithms" +HOMEPAGE="https://gitlab.com/mule-tools/handyg" +SRC_URI="https://gitlab.com/mule-tools/${PN}/-/archive/v${PV}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND=" + virtual/fortran +" + +PATCHES=( + "${FILESDIR}/${P}-so.patch" +) + +src_configure() { + tc-export CC CXX FC AR + FFLAGS="${FFLAGS} -fPIC" LD="${FC}" ./configure --prefix="${EPREFIX}/usr" LDFLAGS="${LDFLAGS}" +} + +src_compile() { + # single thread force needed since fortan mods depend on each other + export MAKEOPTS=-j1 + emake all +} + +src_install() { + dolib.a libhandyg.a + dolib.so libhandyg.so + doheader handyg.mod + dobin geval +} diff --git a/sci-libs/handyg/metadata.xml b/sci-libs/handyg/metadata.xml new file mode 100644 index 000000000..bdee6992b --- /dev/null +++ b/sci-libs/handyg/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Alexander Puck Neuwirth</name> + </maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Physics Project</name> + </maintainer> +</pkgmetadata>
