diff options
author | Jakov Smolic <jakov.smolic@sartura.hr> | 2021-02-13 23:51:51 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-02-13 23:51:51 +0100 |
commit | 24bac60aff91de6d6c3a6a95680b17bf6b4e8b40 (patch) | |
tree | 428b1a7693d8aea7e616a24acbbf0b8eb670e92e /dev-libs/openspecfun | |
parent | sci-physics/looptools: Remove old (diff) | |
download | gentoo-24bac60aff91de6d6c3a6a95680b17bf6b4e8b40.tar.gz gentoo-24bac60aff91de6d6c3a6a95680b17bf6b4e8b40.tar.bz2 gentoo-24bac60aff91de6d6c3a6a95680b17bf6b4e8b40.zip |
dev-libs/openspecfun: Bump to 0.5.3
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-libs/openspecfun')
-rw-r--r-- | dev-libs/openspecfun/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/openspecfun/files/openspecfun-0.5.3-static-libs.patch | 21 | ||||
-rw-r--r-- | dev-libs/openspecfun/openspecfun-0.5.3.ebuild | 36 |
3 files changed, 58 insertions, 0 deletions
diff --git a/dev-libs/openspecfun/Manifest b/dev-libs/openspecfun/Manifest index 6122b8c3bfac..89514038c485 100644 --- a/dev-libs/openspecfun/Manifest +++ b/dev-libs/openspecfun/Manifest @@ -1 +1,2 @@ DIST openspecfun-0.5.1.tar.gz 121110 BLAKE2B 157bf05d63048d88674d4dc2657d91b0ff5b69f93659eb86a235e805893571ce9eb3dd84be63ff5ea691b8047a25417a8d7f755d547ccbc8b3956b2d2b70a529 SHA512 7f7b0dd04d5c325a99bf5a44521edaed87ba75acc8d85be64e3be55ff697a1544430d1fe4b5330d5ceb907bada26b42750cf6654fc8ed12b1738ec29fcbeb0b3 +DIST openspecfun-0.5.3.tar.gz 121156 BLAKE2B 4b1d883634524db9a5c1d5c2e291667264f3bc15c2b6cd1c335ef7a4748668091255c4940c54cea27ab0fd301e7c08156825bcdecfef71802b7d571d74af021e SHA512 503da7592b126cce9ecb8af5ce16c667a9b022676721063e5f551fb88c0955f465ed66df7728ed2391f068ea14b77414bfd9934c0ee38081d11b998826d6b88a diff --git a/dev-libs/openspecfun/files/openspecfun-0.5.3-static-libs.patch b/dev-libs/openspecfun/files/openspecfun-0.5.3-static-libs.patch new file mode 100644 index 000000000000..72dd3bc545ff --- /dev/null +++ b/dev-libs/openspecfun/files/openspecfun-0.5.3-static-libs.patch @@ -0,0 +1,21 @@ +--- a/Makefile ++++ b/Makefile +@@ -35,9 +35,7 @@ OSF_MAJOR_SHLIB_EXT := $(SHLIB_EXT).$(SOMAJOR) + endif + endif + +-all: libopenspecfun.a libopenspecfun.$(OSF_MAJOR_MINOR_SHLIB_EXT) +-libopenspecfun.a: $(OBJS) +- $(AR) -rcs libopenspecfun.a $(OBJS) ++all: libopenspecfun.$(OSF_MAJOR_MINOR_SHLIB_EXT) + libopenspecfun.$(OSF_MAJOR_MINOR_SHLIB_EXT): $(OBJS) + $(FC) -shared $(OBJS) $(LDFLAGS) $(LDFLAGS_add) -Wl,$(SONAME_FLAG),libopenspecfun.$(OSF_MAJOR_SHLIB_EXT) -o $@ + ifneq ($(OS),WINNT) +@@ -50,7 +48,6 @@ install: all + mkdir -p $(DESTDIR)$(libdir) + mkdir -p $(DESTDIR)$(includedir) + cp -a libopenspecfun.*$(SHLIB_EXT)* $(DESTDIR)$(shlibdir)/ +- cp -a libopenspecfun.a $(DESTDIR)$(libdir)/ + cp -a Faddeeva/Faddeeva.h $(DESTDIR)$(includedir) + + clean: diff --git a/dev-libs/openspecfun/openspecfun-0.5.3.ebuild b/dev-libs/openspecfun/openspecfun-0.5.3.ebuild new file mode 100644 index 000000000000..9a39e379257d --- /dev/null +++ b/dev-libs/openspecfun/openspecfun-0.5.3.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit fortran-2 toolchain-funcs + +DESCRIPTION="A collection of special mathematical functions" +HOMEPAGE="https://julialang.org" +SRC_URI="https://github.com/JuliaLang/openspecfun/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +DEPEND="sci-libs/openlibm" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-static-libs.patch ) + +src_prepare() { + default + sed -i "s:/lib:/$(get_libdir):" Make.inc || die +} + +src_compile() { + emake prefix="${EPREFIX}/usr" USE_OPENLIBM=1 FC="$(tc-getFC)" +} + +src_install() { + emake DESTDIR="${D}" prefix="${EPREFIX}/usr" \ + libdir="${EPREFIX}/usr/$(get_libdir)" install + einstalldocs + + find "${ED}" -name '*.la' -delete || die +} |