From 78d46b5ed652734487e07c9ffd7e697d4cc5f947 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 7 Feb 2020 15:58:25 +0100 Subject: media-gfx/alembic: Switch to PYTHON_MULTI_USEDEP API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- media-gfx/alembic/alembic-1.7.11-r1.ebuild | 111 +++++++++++++++++++++++++++++ media-gfx/alembic/alembic-1.7.11.ebuild | 109 ---------------------------- media-gfx/alembic/alembic-1.7.9.ebuild | 8 ++- 3 files changed, 116 insertions(+), 112 deletions(-) create mode 100644 media-gfx/alembic/alembic-1.7.11-r1.ebuild delete mode 100644 media-gfx/alembic/alembic-1.7.11.ebuild diff --git a/media-gfx/alembic/alembic-1.7.11-r1.ebuild b/media-gfx/alembic/alembic-1.7.11-r1.ebuild new file mode 100644 index 000000000000..8f112f0a4fd3 --- /dev/null +++ b/media-gfx/alembic/alembic-1.7.11-r1.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake multiprocessing 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 ~x86" +IUSE="arnold +boost doc examples hdf5 maya prman python test zlib" +RESTRICT="!test? ( test )" + +# pyalembic python bindings need boost +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + hdf5? ( zlib ) + python? ( boost ) +" + +RDEPEND=" + ${PYTHON_DEPS} + >=media-libs/openexr-2.3.0:= + hdf5? ( >=sci-libs/hdf5-1.10.2:=[zlib(+)] ) + python? ( >=dev-python/pyilmbase-2.3.0[${PYTHON_SINGLE_USEDEP}] ) + zlib? ( >=sys-libs/zlib-1.2.11-r1 ) + $(python_gen_cond_dep ' + boost? ( >=dev-libs/boost-1.65.0:=[python,${PYTHON_MULTI_USEDEP}] ) + ') +" +DEPEND=" + ${RDEPEND} + doc? ( >=app-doc/doxygen-1.8.14-r1 ) +" + +DOCS=( "ACKNOWLEDGEMENTS.txt" "FEEDBACK.txt" "NEWS.txt" "README.txt" ) + +PATCHES=( + "${FILESDIR}/${P}-0001-Fix-to-find-boost-with-cmake-3.11.patch" + "${FILESDIR}/${P}-0002-Find-IlmBase-by-setting-a-proper-ILMBASE_ROOT-value.patch" + "${FILESDIR}/${P}-0003-Fix-env-var-for-renderman.patch" + "${FILESDIR}/${P}-0004-Fix-a-compile-issue-with-const.patch" + "${FILESDIR}/${P}-0005-Fix-install-locations.patch" + "${FILESDIR}/${P}-0006-python-PyAlembic-Tests-CMakeLists.txt-fix-variable.patch" +) + +src_prepare() { + cmake_src_prepare + if use doc; then + doxygen -u Doxyfile || die "Failed to update Doxyfile" + sed -i -e 's|DOT_NUM_THREADS[ \t]*= 0|DOT_NUM_THREADS = '$(makeopts_jobs)'|' Doxyfile || die "Failed to change dot threads" + fi +} + +src_configure() { + local mycmakeargs=( + -DALEMBIC_SHARED_LIBS=ON + # The CMakeLists.txt file needs C++11 or C++-0x if none of them + # is defined + -DALEMBIC_LIB_USES_BOOST=$(usex boost) + -DALEMBIC_LIB_USES_TR1=$(usex !boost) + -DUSE_ARNOLD=$(usex arnold) + -DUSE_BINARIES=ON + -DUSE_EXAMPLES=$(usex examples) + -DUSE_HDF5=$(usex hdf5) + -DUSE_MAYA=$(usex maya) + -DUSE_PRMAN=$(usex prman) + -DUSE_PYALEMBIC=$(usex python) + -DUSE_TESTS=$(usex test) + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + if use doc; then + doxygen Doxyfile || die "Failed to build documentation" + fi +} + +src_install() { + use doc && local HTML_DOCS=( doc/html/. ) + cmake_src_install +} + +pkg_postinst() { + if use arnold; then + einfo "NOTE: The arnold plugin is highly experimental and hasn't been" + einfo "tested, due to missing license. If you have trouble compiling" + einfo "or running it, please file a bug report for the package at" + einfo "Gentoo's bugzilla." + fi + if use maya; then + einfo "NOTE: The maya plugin is highly experimental and hasn't been" + einfo "tested, due to missing license. If you have trouble compiling" + einfo "or running it, please file a bug report for the package at" + einfo "Gentoo's bugzilla." + fi + if use prman; then + einfo "If you're looking for an ebuild for renderman, you may want to" + einfo "try the waebbl overlay: 'eselect repository enable waebbl'" + einfo "followed by 'emerge renderman'" + fi +} diff --git a/media-gfx/alembic/alembic-1.7.11.ebuild b/media-gfx/alembic/alembic-1.7.11.ebuild deleted file mode 100644 index eaf86523653f..000000000000 --- a/media-gfx/alembic/alembic-1.7.11.ebuild +++ /dev/null @@ -1,109 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python2_7 ) - -inherit cmake multiprocessing 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 ~x86" -IUSE="arnold +boost doc examples hdf5 maya prman python test zlib" -RESTRICT="!test? ( test )" - -# pyalembic python bindings need boost -REQUIRED_USE=" - ${PYTHON_REQUIRED_USE} - hdf5? ( zlib ) - python? ( boost ) -" - -RDEPEND=" - ${PYTHON_DEPS} - >=media-libs/openexr-2.3.0:= - boost? ( >=dev-libs/boost-1.65.0:=[python,${PYTHON_USEDEP}] ) - hdf5? ( >=sci-libs/hdf5-1.10.2:=[zlib(+)] ) - python? ( >=dev-python/pyilmbase-2.3.0[${PYTHON_USEDEP}] ) - zlib? ( >=sys-libs/zlib-1.2.11-r1 ) -" -DEPEND=" - ${RDEPEND} - doc? ( >=app-doc/doxygen-1.8.14-r1 ) -" - -DOCS=( "ACKNOWLEDGEMENTS.txt" "FEEDBACK.txt" "NEWS.txt" "README.txt" ) - -PATCHES=( - "${FILESDIR}/${P}-0001-Fix-to-find-boost-with-cmake-3.11.patch" - "${FILESDIR}/${P}-0002-Find-IlmBase-by-setting-a-proper-ILMBASE_ROOT-value.patch" - "${FILESDIR}/${P}-0003-Fix-env-var-for-renderman.patch" - "${FILESDIR}/${P}-0004-Fix-a-compile-issue-with-const.patch" - "${FILESDIR}/${P}-0005-Fix-install-locations.patch" - "${FILESDIR}/${P}-0006-python-PyAlembic-Tests-CMakeLists.txt-fix-variable.patch" -) - -src_prepare() { - cmake_src_prepare - if use doc; then - doxygen -u Doxyfile || die "Failed to update Doxyfile" - sed -i -e 's|DOT_NUM_THREADS[ \t]*= 0|DOT_NUM_THREADS = '$(makeopts_jobs)'|' Doxyfile || die "Failed to change dot threads" - fi -} - -src_configure() { - local mycmakeargs=( - -DALEMBIC_SHARED_LIBS=ON - # The CMakeLists.txt file needs C++11 or C++-0x if none of them - # is defined - -DALEMBIC_LIB_USES_BOOST=$(usex boost) - -DALEMBIC_LIB_USES_TR1=$(usex !boost) - -DUSE_ARNOLD=$(usex arnold) - -DUSE_BINARIES=ON - -DUSE_EXAMPLES=$(usex examples) - -DUSE_HDF5=$(usex hdf5) - -DUSE_MAYA=$(usex maya) - -DUSE_PRMAN=$(usex prman) - -DUSE_PYALEMBIC=$(usex python) - -DUSE_TESTS=$(usex test) - ) - cmake_src_configure -} - -src_compile() { - cmake_src_compile - if use doc; then - doxygen Doxyfile || die "Failed to build documentation" - fi -} - -src_install() { - use doc && local HTML_DOCS=( doc/html/. ) - cmake_src_install -} - -pkg_postinst() { - if use arnold; then - einfo "NOTE: The arnold plugin is highly experimental and hasn't been" - einfo "tested, due to missing license. If you have trouble compiling" - einfo "or running it, please file a bug report for the package at" - einfo "Gentoo's bugzilla." - fi - if use maya; then - einfo "NOTE: The maya plugin is highly experimental and hasn't been" - einfo "tested, due to missing license. If you have trouble compiling" - einfo "or running it, please file a bug report for the package at" - einfo "Gentoo's bugzilla." - fi - if use prman; then - einfo "If you're looking for an ebuild for renderman, you may want to" - einfo "try the waebbl overlay: 'eselect repository enable waebbl'" - einfo "followed by 'emerge renderman'" - fi -} diff --git a/media-gfx/alembic/alembic-1.7.9.ebuild b/media-gfx/alembic/alembic-1.7.9.ebuild index 7acd86b893c6..c04e8c9b6f6b 100644 --- a/media-gfx/alembic/alembic-1.7.9.ebuild +++ b/media-gfx/alembic/alembic-1.7.9.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -28,10 +28,12 @@ REQUIRED_USE=" RDEPEND=" ${PYTHON_DEPS} >=media-libs/openexr-2.2.0-r2:= - boost? ( >=dev-libs/boost-1.65.0:=[python,${PYTHON_USEDEP}] ) hdf5? ( >=sci-libs/hdf5-1.8.18[zlib(+)] ) - python? ( >=dev-python/pyilmbase-2.2.0[${PYTHON_USEDEP}] ) + python? ( >=dev-python/pyilmbase-2.2.0[${PYTHON_SINGLE_USEDEP}] ) zlib? ( >=sys-libs/zlib-1.2.11-r1 ) + $(python_gen_cond_dep ' + boost? ( >=dev-libs/boost-1.65.0:=[python,${PYTHON_MULTI_USEDEP}] ) + ') " DEPEND=" ${RDEPEND} -- cgit v1.2.3-65-gdbad