diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/openspecfun/openspecfun-0.5.1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/openspecfun/openspecfun-0.5.1.ebuild')
-rw-r--r-- | dev-libs/openspecfun/openspecfun-0.5.1.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-libs/openspecfun/openspecfun-0.5.1.ebuild b/dev-libs/openspecfun/openspecfun-0.5.1.ebuild new file mode 100644 index 000000000000..5cad71a2cd9c --- /dev/null +++ b/dev-libs/openspecfun/openspecfun-0.5.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit fortran-2 multilib + +DESCRIPTION="A collection of special mathematical functions" +HOMEPAGE="http://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" +IUSE="static-libs" + +DEPEND="sci-libs/openlibm" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i "s:/lib:/$(get_libdir):" Make.inc || die + default +} + +src_compile() { + emake prefix="${EPREFIX}/usr" USE_OPENLIBM=1 +} + +src_install() { + emake DESTDIR="${D}" prefix="${EPREFIX}/usr" \ + libdir="${EPREFIX}/usr/$(get_libdir)" install + use static-libs || rm "${D}/${EPREFIX}/usr/$(get_libdir)/libopenspecfun.a" || die "rm failed" + dodoc README.md +} |