From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 35D0D13835A for ; Tue, 4 May 2021 22:03:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8D8EBE087E; Tue, 4 May 2021 22:03:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5D692E087F for ; Tue, 4 May 2021 22:03:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 737F0340DAE for ; Tue, 4 May 2021 22:02:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A027A752 for ; Tue, 4 May 2021 22:02:52 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1620165735.ab42e90c0df8cb286b35d6f27d0e7fbe6011e73d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/imath/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/imath/Manifest dev-libs/imath/imath-3.0.1.ebuild dev-libs/imath/metadata.xml X-VCS-Directories: dev-libs/imath/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ab42e90c0df8cb286b35d6f27d0e7fbe6011e73d X-VCS-Branch: master Date: Tue, 4 May 2021 22:02:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7aecafb7-ea00-487b-a1ee-0a8b33697005 X-Archives-Hash: df336f9cd542c0f6e4ac196926588a84 commit: ab42e90c0df8cb286b35d6f27d0e7fbe6011e73d Author: Bernd Waibel posteo net> AuthorDate: Tue Mar 16 16:28:34 2021 +0000 Commit: Sam James gentoo org> CommitDate: Tue May 4 22:02:15 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab42e90c dev-libs/imath: new package Package starts with version 3.0.1, as it was historically outsourced from the ilmbase / openexr packages. Closes: https://bugs.gentoo.org/776607 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Bernd Waibel posteo.net> Signed-off-by: Sam James gentoo.org> dev-libs/imath/Manifest | 1 + dev-libs/imath/imath-3.0.1.ebuild | 90 +++++++++++++++++++++++++++++++++++++++ dev-libs/imath/metadata.xml | 25 +++++++++++ 3 files changed, 116 insertions(+) diff --git a/dev-libs/imath/Manifest b/dev-libs/imath/Manifest new file mode 100644 index 00000000000..6778d92c9bd --- /dev/null +++ b/dev-libs/imath/Manifest @@ -0,0 +1 @@ +DIST imath-3.0.1.tar.gz 527715 BLAKE2B 45d8f6524fd2505bdb3318f571c44228c9baf6df869d194d4b90a9c045f1dbb8f905253aeaf6b6a9254e4b0c0c19d753b7e4ae068732f0367fc936d4a111520d SHA512 40cdae81d624636b3dd7eb456e6e205e5b7adf7aed17f6e9168374f8830f1b5755dcd32ac790f94e768513d06ab96d94a2bc57ec80a079e4ac94a3857e5e3988 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 00000000000..bf6da0d3e7e --- /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 ~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 00000000000..e33071a5235 --- /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 + +