Install this version:
emerge -a =dev-libs/imath-3.2.2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/imath-3.2.2
Or alternatively:
emerge --autounmask-write -a =dev-libs/imath-3.2.2
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 3.2.2 | 8 | amd64 ~arm arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc x86 | 3/30 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..14} )
inherit cmake python-single-r1
MY_PN=${PN^}
DESCRIPTION="Imath basic math package"
HOMEPAGE="https://imath.readthedocs.io"
SRC_URI="https://github.com/AcademySoftwareFoundation/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="BSD"
SLOT="3/30"
KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc x86"
IUSE="doc large-stack python test"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RESTRICT="!test? ( test )"
RDEPEND="
virtual/zlib:=
python? (
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-libs/boost:=[python,${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
')
)
"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
doc? (
app-text/doxygen
$(python_gen_cond_dep '
dev-python/breathe[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/sphinx-press-theme[${PYTHON_USEDEP}]
')
)
python? ( ${PYTHON_DEPS} )
"
DOCS=( CHANGES.md CONTRIBUTORS.md README.md SECURITY.md )
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_configure() {
local mycmakeargs=(
-DBUILD_WEBSITE="$(usex doc)"
-DIMATH_ENABLE_LARGE_STACK="$(usex large-stack)"
# the following options are at their default value
-DIMATH_HALF_USE_LOOKUP_TABLE=ON
-DIMATH_INSTALL_PKG_CONFIG=ON
-DIMATH_USE_CLANG_TIDY=OFF
-DIMATH_USE_DEFAULT_VISIBILITY=OFF
-DIMATH_USE_NOEXCEPT=ON
)
if use python; then
mycmakeargs+=(
-DPYTHON=ON
# looks up Python first, then Python3 and Python2, so we specify both..
-DPython_EXECUTABLE="${PYTHON}"
-DPython3_EXECUTABLE="${PYTHON}"
-DPython3_INCLUDE_DIR="$(python_get_includedir)"
-DPython3_LIBRARY="$(python_get_library_path)"
)
fi
cmake_src_configure
}
src_install() {
use doc && HTML_DOCS=( "${BUILD_DIR}/website/sphinx/." )
cmake_src_install
}
Manage flags for this package:
euse -i <flag> -p dev-libs/imath |
euse -E <flag> -p dev-libs/imath |
euse -D <flag> -p dev-libs/imath
virtual/zlib:=
python? (
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-libs/boost:=[python,${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
')
)
virtual/zlib:=
python? (
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-libs/boost:=[python,${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
')
)
virtual/pkgconfig
doc? (
app-text/doxygen
$(python_gen_cond_dep '
dev-python/breathe[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/sphinx-press-theme[${PYTHON_USEDEP}]
')
)
python? ( ${PYTHON_DEPS} )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | imath-3.2.2.tar.gz | 689217 bytes | https://github.com/AcademySoftwareFoundation/Imath/archive/refs/tags/v3.2.2.tar.gz |