1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
8 inherit cmake-utils multiprocessing python-single-r1
10 DESCRIPTION="Open framework for storing and sharing scene data"
11 HOMEPAGE="https://www.alembic.io/"
12 SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="arnold +boost doc examples hdf5 maya prman python test zlib"
19 RESTRICT="!test? ( test )"
21 # pyalembic python bindings need boost
23 ${PYTHON_REQUIRED_USE}
30 >=media-libs/openexr-2.3.0:=
31 boost? ( >=dev-libs/boost-1.65.0:=[python,${PYTHON_USEDEP}] )
32 hdf5? ( >=sci-libs/hdf5-1.10.2:=[zlib(+)] )
33 python? ( >=dev-python/pyilmbase-2.3.0[${PYTHON_USEDEP}] )
34 zlib? ( >=sys-libs/zlib-1.2.11-r1 )
38 doc? ( >=app-doc/doxygen-1.8.14-r1 )
41 DOCS=( "ACKNOWLEDGEMENTS.txt" "FEEDBACK.txt" "NEWS.txt" "README.txt" )
44 "${FILESDIR}/${P}-0001-Fix-to-find-boost-with-cmake-3.11.patch"
45 "${FILESDIR}/${P}-0002-Find-IlmBase-by-setting-a-proper-ILMBASE_ROOT-value.patch"
46 "${FILESDIR}/${P}-0003-Fix-env-var-for-renderman.patch"
47 "${FILESDIR}/${P}-0004-Fix-a-compile-issue-with-const.patch"
48 "${FILESDIR}/${P}-0005-Fix-install-locations.patch"
49 "${FILESDIR}/${P}-0006-python-PyAlembic-Tests-CMakeLists.txt-fix-variable.patch"
53 cmake-utils_src_prepare
55 doxygen -u Doxyfile || die "Failed to update Doxyfile"
56 sed -i -e 's|DOT_NUM_THREADS[ \t]*= 0|DOT_NUM_THREADS = '$(makeopts_jobs)'|' Doxyfile || die "Failed to change dot threads"
62 -DALEMBIC_SHARED_LIBS=ON
63 # The CMakeLists.txt file needs C++11 or C++-0x if none of them
65 -DALEMBIC_LIB_USES_BOOST=$(usex boost)
66 -DALEMBIC_LIB_USES_TR1=$(usex !boost)
67 -DUSE_ARNOLD=$(usex arnold)
69 -DUSE_EXAMPLES=$(usex examples)
70 -DUSE_HDF5=$(usex hdf5)
71 -DUSE_MAYA=$(usex maya)
72 -DUSE_PRMAN=$(usex prman)
73 -DUSE_PYALEMBIC=$(usex python)
74 -DUSE_TESTS=$(usex test)
76 cmake-utils_src_configure
80 cmake-utils_src_compile
82 doxygen Doxyfile || die "Failed to build documentation"
87 use doc && local HTML_DOCS=( doc/html/. )
88 cmake-utils_src_install
93 einfo "NOTE: The arnold plugin is highly experimental and hasn't been"
94 einfo "tested, due to missing license. If you have trouble compiling"
95 einfo "or running it, please file a bug report for the package at"
96 einfo "Gentoo's bugzilla."
99 einfo "NOTE: The maya plugin is highly experimental and hasn't been"
100 einfo "tested, due to missing license. If you have trouble compiling"
101 einfo "or running it, please file a bug report for the package at"
102 einfo "Gentoo's bugzilla."
105 einfo "If you're looking for an ebuild for renderman, you may want to"
106 einfo "try the waebbl overlay: 'eselect repository enable waebbl'"
107 einfo "followed by 'emerge renderman'"