mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 18:47:16 -08:00
dev-libs/imath: add 3.1.11
These changes also: - reintroduce the doc USE flag Release: - https://github.com/AcademySoftwareFoundation/Imath/releases/tag/v3.1.11 Closes: https://bugs.gentoo.org/923812 Signed-off-by: Aliaksei Urbanski <aliaksei.urbanski@gmail.com> Co-authored-by: Arthur Zamarin <arthurzam@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/35188 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
co-authored by
Arthur Zamarin
parent
c54f425895
commit
286b3eb7a3
@@ -1,2 +1,3 @@
|
||||
DIST imath-3.1.11.tar.gz 596585 BLAKE2B d5fc8d7607070bc96619e74eb67c60048695023c1baa715e3ab5de84a49bf1f7381cc19e3a047b75f8520e20a9976c58503b2063feb2add7b6dfcc7c73e13ad7 SHA512 0bc86bea3a2aca89d02b501b4fba3c13ca861e914cec558e820fe9e4c43ab14cac34e31ff278b8c35b5fe76f7bea32f2c8105c0d33eb92224eb23d42d7a402e9
|
||||
DIST imath-3.1.6.tar.gz 573255 BLAKE2B c4d5a785a2aed9c5b9b1441ab016a5cf47abeb1d44c0625f0654e8c4d1e47dddddd62c61f83fd7b160beae8aaf5db9350d2a3bc43754e795fe75b10c4836a1b8 SHA512 c099a291ed7fd7702a7609575f2f3d2ed7f95256c23c2180e2ef1f76ceb07734365f57da5244b1d6cec81ca9859864eb4c9236df02a64aa783af6639a3b59acd
|
||||
DIST imath-3.1.9.tar.gz 598497 BLAKE2B fe3afce26c19f5ddace3c420f9b83caca7b4c75902820fc2182ef9fb9f4d27581f27ca72262b63d65f794eeb73af55782412ba846d142072e0090ff7224d8960 SHA512 ad96b2ac306fc13c01e8ea3256f885499c3f545be327feaba0f5e093b70b544bcca6f8b353fa7e35107aae515c19caced44331a95d0414f367ead4691ec73564
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
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/29"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc large-stack python test"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/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+=(
|
||||
-DBoost_NO_BOOST_CMAKE=OFF
|
||||
-DPYTHON=ON
|
||||
-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
|
||||
}
|
||||
Reference in New Issue
Block a user