commit:     33b42de042c6917873cf867425b76e327036f895
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Fri Dec  8 12:10:25 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 10 12:32:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33b42de0

media-gfx/alembic: add 1.8.6

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/34217
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-gfx/alembic/Manifest             |  1 +
 media-gfx/alembic/alembic-1.8.6.ebuild | 72 ++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/media-gfx/alembic/Manifest b/media-gfx/alembic/Manifest
index 158586ffd746..711e1186c6d7 100644
--- a/media-gfx/alembic/Manifest
+++ b/media-gfx/alembic/Manifest
@@ -1,2 +1,3 @@
 DIST alembic-1.8.4.tar.gz 867788 BLAKE2B 
b7bc5ebcaebc5905a9a2e45be21170a72923fd6af6d9f97b81bdc7e8b80bb037ed3f667ea15a5b96194b33687010fda455e4df8355f92fc29aa000beae32cae8
 SHA512 
2473f4b9afe3fddbd2d0477bdc85d93697e413410253a7f7f0f030fba919dfb63dabd2d2d13829f59f3f901643ab842d230a9f08fb667e2c16cef0e751a8a687
 DIST alembic-1.8.5.tar.gz 867976 BLAKE2B 
715ff6212ab78b2b4d3f5ea3b448468ade488008a8362193b4976671a69ad89337f926082c7736e64a0b07bf71e04d774df5e22abe409f8cfab1a15ccb3c86bb
 SHA512 
89a480970eb09893112bf650011ede852205d1fa3718680a3983392bbcf3eb3f22f4ec01f42d12bfcaf655ce43d7d6f583b764ec03f4c5a84023359502b3636e
+DIST alembic-1.8.6.tar.gz 868945 BLAKE2B 
1ac30ffa75a4b8bbb3f32820e6f67cebcd894465f16cd12ee0396c88611af821b13973f46228fd59726c6bc0cc8885afd4de81a0cebaa0f94cb30fd9daba9885
 SHA512 
6371b830242be90d4ea833248df5fd42d9e713e305d15eb1383d04410319acdae5743d48d65e8f75f1cedce777d2af7d969cde095f678b17322c19f1c69f477b

diff --git a/media-gfx/alembic/alembic-1.8.6.ebuild 
b/media-gfx/alembic/alembic-1.8.6.ebuild
new file mode 100644
index 000000000000..1c865e9c2b1f
--- /dev/null
+++ b/media-gfx/alembic/alembic-1.8.6.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit cmake python-single-r1
+
+DESCRIPTION="Open framework for storing and sharing scene data"
+HOMEPAGE="https://www.alembic.io/";
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE="examples hdf5 python test"
+REQUIRED_USE="
+       ${PYTHON_REQUIRED_USE}
+       examples? ( python )
+"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       ${PYTHON_DEPS}
+       dev-libs/imath:=
+       python? ( dev-libs/imath:=[python,${PYTHON_SINGLE_USEDEP}] )
+       hdf5? (
+               >=sci-libs/hdf5-1.10.2:=[zlib(+)]
+               >=sys-libs/zlib-1.2.11-r1
+       )
+       python? ( $(python_gen_cond_dep 
'dev-libs/boost[python,${PYTHON_USEDEP}]') )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.8.5-set-correct-libdir.patch )
+
+DOCS=( ACKNOWLEDGEMENTS.txt FEEDBACK.txt NEWS.txt README.txt )
+
+src_prepare() {
+       cmake_src_prepare
+       # Tests are broken with python 3.11.  See also: 
https://github.com/alembic/alembic/issues/411
+       cmake_run_in "${S}/python/PyAlembic" cmake_comment_add_subdirectory 
Tests
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DALEMBIC_BUILD_LIBS=ON
+               -DALEMBIC_DEBUG_WARNINGS_AS_ERRORS=OFF
+               -DALEMBIC_SHARED_LIBS=ON
+               # currently does nothing but require doxygen
+               -DDOCS_PATH=OFF
+               -DUSE_ARNOLD=OFF
+               -DUSE_BINARIES=ON
+               -DUSE_EXAMPLES=$(usex examples)
+               -DUSE_HDF5=$(usex hdf5)
+               -DUSE_MAYA=OFF
+               -DUSE_PRMAN=OFF
+               -DUSE_PYALEMBIC=$(usex python)
+               -DUSE_TESTS=$(usex test)
+       )
+
+       use python && mycmakeargs+=( -DPython3_EXECUTABLE=${PYTHON} )
+
+       cmake_src_configure
+}
+
+# some tests may fail if run in parallel mode
+# see https://github.com/alembic/alembic/issues/401
+src_test() {
+       cmake_src_test -j1
+}

Reply via email to