mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Bug: https://bugs.gentoo.org/473598 Bug: https://bugs.gentoo.org/720224 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
42 lines
822 B
Bash
42 lines
822 B
Bash
# 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"
|
|
|
|
DEPEND="sci-libs/openlibm:="
|
|
RDEPEND="${DEPEND}"
|
|
|
|
PATCHES=( "${FILESDIR}"/${P}-Makefile.patch )
|
|
|
|
src_configure() {
|
|
tc-export CC
|
|
}
|
|
|
|
src_compile() {
|
|
emake \
|
|
prefix="${EPREFIX}"/usr \
|
|
libdir="${EPREFIX}"/usr/$(get_libdir) \
|
|
USE_OPENLIBM=1
|
|
}
|
|
|
|
src_install() {
|
|
emake \
|
|
prefix="${EPREFIX}"/usr \
|
|
libdir="${EPREFIX}"/usr/$(get_libdir) \
|
|
DESTDIR="${D}" \
|
|
install
|
|
einstalldocs
|
|
|
|
find "${ED}" -name '*.la' -delete || die
|
|
}
|