Install this version:
emerge -a =sci-libs/openlibm-0.8.7
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sci-libs/openlibm-0.8.7
Or alternatively:
emerge --autounmask-write -a =sci-libs/openlibm-0.8.7
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.8.7 | 9 | ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~x86 | 0/4 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
inherit toolchain-funcs
DESCRIPTION="High quality system independent, open source libm"
HOMEPAGE="https://github.com/JuliaLang/openlibm"
SRC_URI="https://github.com/JuliaMath/openlibm/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="public-domain MIT ISC BSD-2 LGPL-2.1+"
# See https://abi-laboratory.pro/index.php?view=timeline&l=openlibm
SLOT="0/4"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~x86"
IUSE="static-libs"
src_prepare() {
default
sed -e "/^OLM_LIBS :=/s/^/#/" -i Makefile || die
if ! use static-libs ; then
sed -e "/install: /s/install-static//" -i Makefile || die
fi
}
src_compile() {
# Build system uses different ARCH for the following arches
case "${ARCH}" in
loong) export ARCH=loongarch64 ;;
riscv) export ARCH=riscv64 ;;
x86) export ARCH=i387 ;;
esac
emake \
CC="$(tc-getCC)" \
CXX="$(tc-getCXX)" \
FC="$(tc-getFC)" \
AR="$(tc-getAR)" \
LD="$(tc-getLD)"
}
src_install() {
emake DESTDIR="${D}" prefix="${EPREFIX}/usr" \
CC="$(tc-getCC)" \
libdir="${EPREFIX}/usr/$(get_libdir)" install
dodoc README.md
}
Manage flags for this package:
euse -i <flag> -p sci-libs/openlibm |
euse -E <flag> -p sci-libs/openlibm |
euse -D <flag> -p sci-libs/openlibm
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | openlibm-0.8.7.tar.gz | 374759 bytes | https://github.com/JuliaMath/openlibm/archive/v0.8.7.tar.gz |