From c8fd0d84af0bfd1949542adc2cbb735b1d28f9ed Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 7 May 2021 01:33:16 +0100 Subject: gentoo resync : 07.05.2021 --- dev-libs/imath/Manifest | 3 ++ dev-libs/imath/imath-3.0.1.ebuild | 90 +++++++++++++++++++++++++++++++++++++++ dev-libs/imath/metadata.xml | 25 +++++++++++ 3 files changed, 118 insertions(+) create mode 100644 dev-libs/imath/Manifest create mode 100644 dev-libs/imath/imath-3.0.1.ebuild create mode 100644 dev-libs/imath/metadata.xml (limited to 'dev-libs/imath') diff --git a/dev-libs/imath/Manifest b/dev-libs/imath/Manifest new file mode 100644 index 000000000000..df9be449f7ff --- /dev/null +++ b/dev-libs/imath/Manifest @@ -0,0 +1,3 @@ +DIST imath-3.0.1.tar.gz 527715 BLAKE2B 45d8f6524fd2505bdb3318f571c44228c9baf6df869d194d4b90a9c045f1dbb8f905253aeaf6b6a9254e4b0c0c19d753b7e4ae068732f0367fc936d4a111520d SHA512 40cdae81d624636b3dd7eb456e6e205e5b7adf7aed17f6e9168374f8830f1b5755dcd32ac790f94e768513d06ab96d94a2bc57ec80a079e4ac94a3857e5e3988 +EBUILD imath-3.0.1.ebuild 1995 BLAKE2B a892bd2b5876b373e2f75e073ba2b459d9376b43072242e13eb95901da47028c964dd28d1711631b7b83d788021b571584cf6f722e5807932b58bef0e4900d49 SHA512 b6dd8b75e5c39b0f6641c51d117a0b2e5dba2b7e6446f0eeab23a8796203ac0d88198da377042cad88ec3a821942e10f21ce57c2562daf75a3ba37ee507283eb +MISC metadata.xml 819 BLAKE2B 20d1b4527861c2c01c4e6b9f413f539b6119934932ec3c8d1a7a272f52a9579832f230279de518fee775e104c6f2f149479b6dc774567e28b612676b0ce6f399 SHA512 06d1832ce88a1a1c83ddd09687a242fb109c43e3d38d4d3d8cd236308d11a649a9f060c7fd7af7c69a209b560cf1e541e18212ce62309357186183d749304031 diff --git a/dev-libs/imath/imath-3.0.1.ebuild b/dev-libs/imath/imath-3.0.1.ebuild new file mode 100644 index 000000000000..5fce7b3bf25b --- /dev/null +++ b/dev-libs/imath/imath-3.0.1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8,9} ) + +inherit cmake python-single-r1 + +MY_PN=Imath + +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" +# re-keywording needed for (according to ilmbase keywords): +# ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x64-macos ~x86-solaris +KEYWORDS="~amd64 ~ia64 ~x86 ~amd64-linux ~x86-linux" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="BSD" +SLOT="0/27" +IUSE="doc large-stack python static-libs test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +# libImath.so conflicts with ilmbase +RDEPEND=" + !media-libs/ilmbase + sys-libs/zlib + python? ( + !dev-python/pyilmbase + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-libs/boost:=[python?,${PYTHON_MULTI_USEDEP}] + dev-python/numpy[${PYTHON_MULTI_USEDEP}] + ') + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( $(python_gen_cond_dep 'dev-python/breathe[${PYTHON_MULTI_USEDEP}]') ) + python? ( ${PYTHON_DEPS} ) +" + +DOCS=( CHANGES.md CONTRIBUTORS.md README.md SECURITY.md docs/PortingGuide2-3.md ) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=$(usex !static-libs) + -DIMATH_ENABLE_LARGE_STACK=$(usex large-stack) + -DIMATH_INSTALL_PKG_CONFIG=ON + -DIMATH_USE_CLANG_TIDY=OFF + ) + + if use python; then + mycmakeargs+=( + -DPYTHON=ON + -DPython3_EXECUTABLE="${PYTHON}" + -DPython3_INCLUDE_DIR=$(python_get_includedir) + -DPython3_LIBRARY=$(python_get_library_path) + ) + fi + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc; then + pushd "${S}"/docs 2>/dev/null || die + doxygen || die + emake html + popd 2>/dev/null || die + fi +} + +src_install() { + cmake_src_install + + if use doc; then + HTML_DOCS=( "${S}/docs/_build/html/." ) + einstalldocs + fi +} diff --git a/dev-libs/imath/metadata.xml b/dev-libs/imath/metadata.xml new file mode 100644 index 000000000000..e33071a52354 --- /dev/null +++ b/dev-libs/imath/metadata.xml @@ -0,0 +1,25 @@ + + + + + waebbl-gentoo@posteo.net + Bernd Waibel + + + proxy-maint@gentoo.org + Gentoo Proxy Maintainers + + + Basic, light-weight C++ library for efficient representation of 2D + and 3D vectors and matrices and data type common to computer graphics + applications. + + + + Enables code to take advantage of large stack support + + + + AcademySoftwareFoundation/Imath + + -- cgit v1.2.3