[gentoo-commits] repo/gentoo:master commit in: media-gfx/alembic/files/, media-gfx/alembic/

2021-10-30 Thread Sam James
commit: a0269435cbd4abb653db80470b2094e2ca560c8a
Author: Bernd Waibel  posteo  net>
AuthorDate: Sat Oct 30 11:39:46 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Oct 31 02:22:14 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0269435

media-gfx/alembic: build against ilmbase and openexr:0

Closes: https://bugs.gentoo.org/820746
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Bernd Waibel  posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/22762
Signed-off-by: Sam James  gentoo.org>

 media-gfx/alembic/alembic-1.8.3.ebuild |  5 +-
 ...1.8.3-0001-find-py-ilmbase-in-config-mode.patch | 90 ++
 2 files changed, 94 insertions(+), 1 deletion(-)

diff --git a/media-gfx/alembic/alembic-1.8.3.ebuild 
b/media-gfx/alembic/alembic-1.8.3.ebuild
index c46c467c35e..5cf7be6360a 100644
--- a/media-gfx/alembic/alembic-1.8.3.ebuild
+++ b/media-gfx/alembic/alembic-1.8.3.ebuild
@@ -35,7 +35,10 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}"
 
-PATCHES=( "${FILESDIR}"/${PN}-1.8.0-0001-set-correct-libdir.patch )
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.8.0-0001-set-correct-libdir.patch
+   "${FILESDIR}"/${P}-0001-find-py-ilmbase-in-config-mode.patch
+)
 
 DOCS=( ACKNOWLEDGEMENTS.txt FEEDBACK.txt NEWS.txt README.txt )
 

diff --git 
a/media-gfx/alembic/files/alembic-1.8.3-0001-find-py-ilmbase-in-config-mode.patch
 
b/media-gfx/alembic/files/alembic-1.8.3-0001-find-py-ilmbase-in-config-mode.patch
new file mode 100644
index 000..bc7ac9f507a
--- /dev/null
+++ 
b/media-gfx/alembic/files/alembic-1.8.3-0001-find-py-ilmbase-in-config-mode.patch
@@ -0,0 +1,90 @@
+From: Bernd Waibel 
+Date: Sat, 30 Oct 2021 11:56:04 +0200
+Subject: [PATCH] find (py)ilmbase in config mode
+
+Signed-off-by: Bernd Waibel 
+
+diff --git a/cmake/AlembicIlmBase.cmake b/cmake/AlembicIlmBase.cmake
+index 9f52ca6..f076e14 100644
+--- a/cmake/AlembicIlmBase.cmake
 b/cmake/AlembicIlmBase.cmake
+@@ -43,23 +43,27 @@ IF (Imath_FOUND)
+ ELSE()
+ MESSAGE(STATUS "Could not find Imath looking for IlmBase instead.")
+ # What we really want to do is look for libs Imath and half
+-FIND_PACKAGE(IlmBase)
++FIND_PACKAGE(IlmBase CONFIG REQUIRED)
+ SET(ALEMBIC_USING_IMATH_3 OFF)
++SET(ILMBASE_FOUND True)
++GET_TARGET_PROPERTY(ALEMBIC_ILMBASE_INCLUDE_DIRECTORY 
IlmBase::IlmBaseConfig INTERFACE_INCLUDE_DIRECTORIES)
++SET(ALEMBIC_ILMBASE_HALF_LIB IlmBase::Half)
++SET(ALEMBIC_ILMBASE_IEX_LIB IlmBase::Iex)
++SET(ALEMBIC_ILMBASE_IEXMATH_LIB IlmBase::IexMath)
++SET(ALEMBIC_ILMBASE_ILMTHREAD_LIB IlmBase::IlmThread)
++SET(ALEMBIC_ILMBASE_IMATH_LIB IlmBase::Imath)
++SET(ALEMBIC_ILMBASE_LIBS ${ALEMBIC_ILMBASE_HALF_LIB} 
${ALEMBIC_ILMBASE_IEX_LIB} ${ALEMBIC_ILMBASE_IEXMATH_LIB}
++${ALEMBIC_ILMBASE_ILMTHREAD_LIB} ${ALEMBIC_ILMBASE_IMATH_LIB})
+ 
+ IF (ILMBASE_FOUND)
+ SET(ALEMBIC_ILMBASE_FOUND 1 CACHE STRING "Set to 1 if IlmBase is 
found, 0 otherwise")
+-
+-SET(ALEMBIC_ILMBASE_LIBS
+-${ALEMBIC_ILMBASE_IMATH_LIB}
+-${ALEMBIC_ILMBASE_ILMTHREAD_LIB}
+-${ALEMBIC_ILMBASE_IEX_LIB}
+-${ALEMBIC_ILMBASE_HALF_LIB}
+-)
+-
+-if (${ALEMBIC_ILMBASE_IEXMATH_LIB})
+-SET(ALEMBIC_ILMBASE_LIBS ${ALEMBIC_ILMBASE_LIBS} 
${ALEMBIC_ILMBASE_IEXMATH_LIB})
+-endif (${ALEMBIC_ILMBASE_IEXMATH_LIB})
+-
++MESSAGE(STATUS "Found package IlmBase")
++MESSAGE( STATUS "ILMBASE INCLUDE PATH: 
${ALEMBIC_ILMBASE_INCLUDE_DIRECTORY}" )
++MESSAGE( STATUS "HALF LIB: ${ALEMBIC_ILMBASE_HALF_LIB}" )
++MESSAGE( STATUS "IEX LIB: ${ALEMBIC_ILMBASE_IEX_LIB}" )
++MESSAGE( STATUS "IEXMATH LIB: ${ALEMBIC_ILMBASE_IEXMATH_LIB}" )
++MESSAGE( STATUS "ILMTHREAD LIB: ${ALEMBIC_ILMBASE_ILMTHREAD_LIB}" )
++MESSAGE( STATUS "IMATH LIB: ${ALEMBIC_ILMBASE_IMATH_LIB}" )
+ ELSE()
+ SET(ALEMBIC_ILMBASE_FOUND 0 CACHE STRING "Set to 1 if IlmBase is 
found, 0 otherwise")
+ ENDIF()
+diff --git a/cmake/AlembicPyIlmBase.cmake b/cmake/AlembicPyIlmBase.cmake
+index 249e084..3cc6253 100644
+--- a/cmake/AlembicPyIlmBase.cmake
 b/cmake/AlembicPyIlmBase.cmake
+@@ -43,20 +43,19 @@ IF (Imath_FOUND)
+ SET(ALEMBIC_PYILMBASE_PYIMATH_LIB 
Imath::PyImath_Python${PYTHON_VERSION_MAJOR}_${PYTHON_VERSION_MINOR})
+ MESSAGE(STATUS "Found package Imath using: 
${ALEMBIC_PYILMBASE_PYIMATH_LIB}")
+ ELSE()
+-FIND_PACKAGE(PyIlmBase)
++  MESSAGE(STATUS "Could not find Imath looking for PyIlmBase instead.")
++FIND_PACKAGE(PyIlmBase CONFIG REQUIRED)
++SET(PYILMBASE_FOUND True)
+ IF (PYILMBASE_FOUND)
+ SET(ALEMBIC_PYILMBASE_FOUND 1 CACHE STRING "Set to 1 if PyIlmBase is 
found, 0 otherwise")
+-
+-SET(ALEMBIC_PYILMBASE_LIBS
+-${ALEMBIC_PYILMBASE_PYIMATH_LIB}
+-)
+-
+-GET_FILENAME_COMPONENT(ALEMBIC_PYILMBASE_LIB_DIRECTORY
+-${ALEMBIC_PYILMBASE_PYIMATH_LIB}
+- 

[gentoo-commits] repo/gentoo:master commit in: media-gfx/alembic/files/, media-gfx/alembic/

2021-06-15 Thread Sam James
commit: 08b63a02d1e53cb840ed27a0687c403d46da4b08
Author: Bernd Waibel  posteo  net>
AuthorDate: Mon Jun 14 20:28:25 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jun 15 14:40:21 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08b63a02

media-gfx/alembic: drop 1.7.16

Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Bernd Waibel  posteo.net>
Signed-off-by: Sam James  gentoo.org>

 media-gfx/alembic/Manifest |   1 -
 media-gfx/alembic/alembic-1.7.16.ebuild|  51 -
 ...alembic-1.7.11-0005-Fix-install-locations.patch | 218 -
 media-gfx/alembic/metadata.xml |   1 -
 4 files changed, 271 deletions(-)

diff --git a/media-gfx/alembic/Manifest b/media-gfx/alembic/Manifest
index c6cce3cf760..2ac6f7b5dac 100644
--- a/media-gfx/alembic/Manifest
+++ b/media-gfx/alembic/Manifest
@@ -1,3 +1,2 @@
-DIST alembic-1.7.16.tar.gz 855709 BLAKE2B 
8009ed199b7dca190e40f56969d7c446e65bd78f58cee75dda4883ecf02b6c7ee422db76c4f523a76a4b2d42ef1547ededf5de0055cdb5d801c5cd4918a0b5f4
 SHA512 
bd4777dc4abf15bfb8307b00fd2d67671e89944d0dd8a74a657f4aee49e6a1cd0ab1fe5bb7f9afc63abcce2123466bb8a9a3886d41724ed2c242bc61d7d5b3a1
 DIST alembic-1.8.0.tar.gz 860886 BLAKE2B 
eccb1c74e90094a9b473ecb66260714a519110c20b18248c4fc5ecff5edf2b424b303764f80ee76333e588e85a92499d75a8104b972ccd142cc26532fd89df30
 SHA512 
23fc881863741f7fd081342f5c53c1ec3d00ab300ba8cd10e4a659ee820a9ed1244cf7cf2fd40482f6be32b9d7df44128363246e942bd03c802f3a2a81533b57
 DIST alembic-1.8.1.tar.gz 861482 BLAKE2B 
fd23e6b080dbfd689fe0d63e1cf815cd26dda0624181b4b536e81a59c497d4f22481db1206d8fb140734d90a24f06f2892b6fbd9c57cb81c5fa2d700f3bd4aab
 SHA512 
895493f36c895aef0675e1300ee3bbbf1b8819b4978b842c48810078e51219423500f74014eafe357a318a755ffa8c5c17c2c806b4216bab6cd334908bf684a4

diff --git a/media-gfx/alembic/alembic-1.7.16.ebuild 
b/media-gfx/alembic/alembic-1.7.16.ebuild
deleted file mode 100644
index 674a8240cfd..000
--- a/media-gfx/alembic/alembic-1.7.16.ebuild
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake multiprocessing
-
-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 ~x86"
-IUSE="hdf5 test zlib"
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="hdf5? ( zlib )"
-
-RDEPEND="
-   >=media-libs/openexr-2.5.0:=
-   hdf5? ( >=sci-libs/hdf5-1.10.2:=[zlib(+)] )
-   zlib? ( >=sys-libs/zlib-1.2.11-r1 )
-"
-DEPEND="${RDEPEND}"
-BDEPEND=""
-
-DOCS=( "ACKNOWLEDGEMENTS.txt" "FEEDBACK.txt" "NEWS.txt" "README.txt" )
-
-PATCHES=( "${FILESDIR}/${PN}-1.7.11-0005-Fix-install-locations.patch" )
-
-src_configure() {
-   local mycmakeargs=(
-   -DALEMBIC_SHARED_LIBS=ON
-   # C++-11 and thus {shared,unique,weak}_ptr are common nowadays, 
so these
-   # are no longer needed and using boost fails. Options will get 
removed by
-   # upstream soon
-   -DALEMBIC_LIB_USES_BOOST=OFF
-   -DALEMBIC_LIB_USES_TR1=OFF
-   -DUSE_ARNOLD=OFF
-   -DUSE_BINARIES=ON
-   -DUSE_EXAMPLES=OFF
-   -DUSE_HDF5=$(usex hdf5)
-   -DUSE_MAYA=OFF
-   -DUSE_PRMAN=OFF
-   -DUSE_PYALEMBIC=OFF
-   -DUSE_TESTS=$(usex test)
-   )
-
-   cmake_src_configure
-}

diff --git 
a/media-gfx/alembic/files/alembic-1.7.11-0005-Fix-install-locations.patch 
b/media-gfx/alembic/files/alembic-1.7.11-0005-Fix-install-locations.patch
deleted file mode 100644
index ec3c01d1076..000
--- a/media-gfx/alembic/files/alembic-1.7.11-0005-Fix-install-locations.patch
+++ /dev/null
@@ -1,218 +0,0 @@
-From a867fa646d7af98fe57c9d6c96a407e648fbca24 Mon Sep 17 00:00:00 2001
-From: Bernd Waibel 
-Date: Sat, 15 Jun 2019 16:39:50 +0200
-Subject: [PATCH 5/5] Fix install locations
-
-Signed-off-by: Bernd Waibel 

- CMakeLists.txt   | 8 
- arnold/Procedural/CMakeLists.txt | 2 +-
- bin/AbcConvert/CMakeLists.txt| 2 +-
- bin/AbcDiff/CMakeLists.txt   | 2 +-
- bin/AbcEcho/CMakeLists.txt   | 2 +-
- bin/AbcLs/CMakeLists.txt | 2 +-
- bin/AbcStitcher/CMakeLists.txt   | 2 +-
- bin/AbcTree/CMakeLists.txt   | 2 +-
- lib/Alembic/CMakeLists.txt   | 4 ++--
- maya/AbcExport/CMakeLists.txt| 2 +-
- maya/AbcImport/CMakeLists.txt| 2 +-
- prman/Procedural/CMakeLists.txt  | 4 ++--
- python/PyAlembic/CMakeLists.txt  | 4 ++--
- 13 files changed, 19 insertions(+), 19 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 51a95d7..0622613 100644
 a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -80,12 +80,12 @@ OPTION(ALEMBIC_LIB_USES_TR1
- 
- # Set static/dynamic build options
- 

[gentoo-commits] repo/gentoo:master commit in: media-gfx/alembic/files/, media-gfx/alembic/

2019-08-03 Thread Joonas Niilola
commit: fa426a81732eebf31e85e90286e19c1e1ed3fbca
Author: Bernd Waibel  gmail  com>
AuthorDate: Fri Aug  2 20:13:40 2019 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat Aug  3 14:47:47 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa426a81

media-gfx/alembic: fix a boost_python variable

The patch fixes an issue when USE=test is used, where the
python version suffix was not used in a variable.

Closes: https://bugs.gentoo.org/691300
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Bernd Waibel  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/12602
Signed-off-by: Joonas Niilola  gentoo.org>

 media-gfx/alembic/alembic-1.7.11.ebuild|  1 +
 ...Alembic-Tests-CMakeLists.txt-fix-variable.patch | 29 ++
 2 files changed, 30 insertions(+)

diff --git a/media-gfx/alembic/alembic-1.7.11.ebuild 
b/media-gfx/alembic/alembic-1.7.11.ebuild
index ac081bcaddb..f23a45282d8 100644
--- a/media-gfx/alembic/alembic-1.7.11.ebuild
+++ b/media-gfx/alembic/alembic-1.7.11.ebuild
@@ -45,6 +45,7 @@ PATCHES=(
"${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() {

diff --git 
a/media-gfx/alembic/files/alembic-1.7.11-0006-python-PyAlembic-Tests-CMakeLists.txt-fix-variable.patch
 
b/media-gfx/alembic/files/alembic-1.7.11-0006-python-PyAlembic-Tests-CMakeLists.txt-fix-variable.patch
new file mode 100644
index 000..6bb8090344f
--- /dev/null
+++ 
b/media-gfx/alembic/files/alembic-1.7.11-0006-python-PyAlembic-Tests-CMakeLists.txt-fix-variable.patch
@@ -0,0 +1,29 @@
+From 13b88370a862e16b417e9df6e40c2a9cba10852c Mon Sep 17 00:00:00 2001
+From: Bernd Waibel 
+Date: Fri, 2 Aug 2019 21:31:03 +0200
+Subject: [PATCH] python/PyAlembic/Tests/CMakeLists.txt: fix variable
+
+The patch fixes a boost_python related variable which didn't had
+the version suffix for python.
+
+Signed-off-by: Bernd Waibel 
+---
+ python/PyAlembic/Tests/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/python/PyAlembic/Tests/CMakeLists.txt 
b/python/PyAlembic/Tests/CMakeLists.txt
+index c32a018..ed9b23d 100644
+--- a/python/PyAlembic/Tests/CMakeLists.txt
 b/python/PyAlembic/Tests/CMakeLists.txt
+@@ -57,7 +57,7 @@ TARGET_LINK_LIBRARIES(PyAlembic_Test Alembic::Alembic 
${ALEMBIC_PYILMBASE_LIBS})
+ 
+ ADD_TEST(PyAlembic_Python_TEST PyAlembic_Test)
+ 
+-GET_FILENAME_COMPONENT(BOOST_LIBRARY_DIR ${Boost_PYTHON_LIBRARY} PATH)
++GET_FILENAME_COMPONENT(BOOST_LIBRARY_DIR ${Boost_PYTHON27_LIBRARY} PATH)
+ GET_FILENAME_COMPONENT(ILMBASE_LIBRARY_DIR ${ALEMBIC_ILMBASE_IMATH_LIB} PATH)
+ 
+ CONFIGURE_FILE(
+-- 
+2.22.0
+



[gentoo-commits] repo/gentoo:master commit in: media-gfx/alembic/files/, media-gfx/alembic/

2019-06-16 Thread Andreas Sturmlechner
commit: 60e0198a5d2d01c38f27fba747a7fd389a835198
Author: Bernd Waibel  gmail  com>
AuthorDate: Sat Jun 15 16:14:40 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Jun 16 21:50:54 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60e0198a

media-gfx/alembic: bump to version 1.7.11

Closes: https://bugs.gentoo.org/688114
Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Bernd Waibel  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/12258
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 media-gfx/alembic/Manifest |   1 +
 media-gfx/alembic/alembic-1.7.11.ebuild| 107 ++
 ...11-0001-Fix-to-find-boost-with-cmake-3.11.patch |  60 ++
 ...se-by-setting-a-proper-ILMBASE_ROOT-value.patch |  72 +++
 ...bic-1.7.11-0003-Fix-env-var-for-renderman.patch |  29 +++
 7.11-0004-Fix-a-compile-issue-with-const.patch |  27 +++
 ...alembic-1.7.11-0005-Fix-install-locations.patch | 218 +
 7 files changed, 514 insertions(+)

diff --git a/media-gfx/alembic/Manifest b/media-gfx/alembic/Manifest
index 86ce90b5899..84ee0347aaa 100644
--- a/media-gfx/alembic/Manifest
+++ b/media-gfx/alembic/Manifest
@@ -1 +1,2 @@
+DIST alembic-1.7.11.tar.gz 826833 BLAKE2B 
ea2ee92cefcc92d3658b8c71351ec0f72bd1fb5d5b6c771ceebe81b1db61a280420f480cd3612f44bc134cccb388954be89baba9dc6e5973e102bc55d65cd974
 SHA512 
94b9c218a2fe6e2e24205aff4a2f6bab784851c2aa15592fb60ea91f0e8038b0c0656a118f3a5cba0d3de8917dd90b74d0e2d1c4ac034b9ee3f5d0741d9f6b70
 DIST alembic-1.7.9.tar.gz 813379 BLAKE2B 
599edeb5ad805656755b3e150fba56182d1d60673951b0c1702b3e3e82d9499ec4fcb938303103c27f84458f61ab8de4b872eaa322380ae7713e3b4cd3831af7
 SHA512 
8025c20525ffbd5bdc9dd5a33ad8238e49f063d244ab9d112e7d1ddb7ee7cf9b36ceb74cb45d658ce22d3033552c89bddf6b818cf466ea46aa1a70a41fdeddb2

diff --git a/media-gfx/alembic/alembic-1.7.11.ebuild 
b/media-gfx/alembic/alembic-1.7.11.ebuild
new file mode 100644
index 000..ac081bcaddb
--- /dev/null
+++ b/media-gfx/alembic/alembic-1.7.11.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils 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"
+
+# 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"
+)
+
+src_prepare() {
+   cmake-utils_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-utils_src_configure
+}
+
+src_compile() {
+   cmake-utils_src_compile
+   if use doc; then
+   doxygen Doxyfile || die "Failed to build documentation"
+   fi
+}
+
+src_install() {
+   use doc && local HTML_DOCS=( doc/html/. )
+   cmake-utils_src_install
+}
+
+pkg_postinst() {
+   if use arnold; then
+   einfo "NOTE: The arnold plugin is highly experimental and 
hasn't been"
+