Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/alembic/, media-gfx/alembic/files/
Date: Wed, 03 Oct 2018 16:13:25
Message-Id: 1538582259.162768ac2cb3e927725d077a815b2f8de34f6ae4.asturm@gentoo
1 commit: 162768ac2cb3e927725d077a815b2f8de34f6ae4
2 Author: Bernd Waibel <waebbl <AT> gmail <DOT> com>
3 AuthorDate: Fri Sep 28 14:37:33 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 3 15:57:39 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=162768ac
7
8 media-gfx/alembic: bump to version 1.7.9
9
10 add experimental support for arnold, maya and renderman plugins
11 fix import error in python
12
13 Bug: https://bugs.gentoo.org/667230
14 Signed-off-by: Bernd Waibel <waebbl <AT> gmail.com>
15 Package-Manager: Portage-2.3.49, Repoman-2.3.10
16 Closes: https://github.com/gentoo/gentoo/pull/10003
17 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
18
19 media-gfx/alembic/Manifest | 1 +
20 media-gfx/alembic/alembic-1.7.9.ebuild | 107 ++++++++++++
21 .../files/alembic-1.7.9-CMakeLists-fix_lib.patch | 189 +++++++++++++++++++++
22 ...lembic-1.7.9-find-pyilmbase-python-module.patch | 13 ++
23 .../files/alembic-1.7.9-fix-python-import.patch | 30 ++++
24 media-gfx/alembic/files/alembic-1.7.9-prman.patch | 26 +++
25 media-gfx/alembic/metadata.xml | 18 +-
26 7 files changed, 383 insertions(+), 1 deletion(-)
27
28 diff --git a/media-gfx/alembic/Manifest b/media-gfx/alembic/Manifest
29 index 84e5a72ffb7..9e761d9c16c 100644
30 --- a/media-gfx/alembic/Manifest
31 +++ b/media-gfx/alembic/Manifest
32 @@ -1 +1,2 @@
33 DIST alembic-1.7.4.tar.gz 805503 BLAKE2B b8a8b986d0323dbe3748e1dde5436d66e08620a28852c3331ee612d43a414e381a1cdbbb63200b8f146ce94ebb0e3d0ae6f70f33575bd9ff25e9121f2cd73d1a SHA512 8e752d6d85bea3b6a53582d35a589fc40824456098d950974effe0a6a0e359fec1e056af1ea1379f7e23b7ffed2c05c7f5269fa4b64757631b7d57fb60ee98b0
34 +DIST alembic-1.7.9.tar.gz 813379 BLAKE2B 599edeb5ad805656755b3e150fba56182d1d60673951b0c1702b3e3e82d9499ec4fcb938303103c27f84458f61ab8de4b872eaa322380ae7713e3b4cd3831af7 SHA512 8025c20525ffbd5bdc9dd5a33ad8238e49f063d244ab9d112e7d1ddb7ee7cf9b36ceb74cb45d658ce22d3033552c89bddf6b818cf466ea46aa1a70a41fdeddb2
35
36 diff --git a/media-gfx/alembic/alembic-1.7.9.ebuild b/media-gfx/alembic/alembic-1.7.9.ebuild
37 new file mode 100644
38 index 00000000000..638b12a639b
39 --- /dev/null
40 +++ b/media-gfx/alembic/alembic-1.7.9.ebuild
41 @@ -0,0 +1,107 @@
42 +# Copyright 1999-2018 Gentoo Foundation
43 +# Distributed under the terms of the GNU General Public License v2
44 +
45 +EAPI=6
46 +
47 +PYTHON_COMPAT=( python2_7 )
48 +
49 +inherit cmake-utils python-single-r1
50 +
51 +DESCRIPTION="Open framework for storing and sharing scene data"
52 +HOMEPAGE="https://www.alembic.io/"
53 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
54 +
55 +LICENSE="BSD"
56 +
57 +SLOT="0"
58 +# TODO: ~x86 currently depends on new =dev-python/pyilmbase-2.3.0 which has
59 +# ~x86 keyword. As soon as it's updated in the tree, the keyword can be
60 +# added here.
61 +KEYWORDS="~amd64"
62 +IUSE="arnold +boost doc examples hdf5 maya prman python test zlib"
63 +
64 +# pyalembic python bindings need boost
65 +REQUIRED_USE="
66 + ${PYTHON_REQUIRED_USE}
67 + hdf5? ( zlib )
68 + python? ( boost )
69 +"
70 +
71 +RDEPEND="
72 + ${PYTHON_DEPS}
73 + >=media-libs/openexr-2.2.0-r2:=
74 + boost? ( >=dev-libs/boost-1.65.0:=[python,${PYTHON_USEDEP}] )
75 + hdf5? ( >=sci-libs/hdf5-1.8.18[zlib(+)] )
76 + python? ( >=dev-python/pyilmbase-2.2.0[${PYTHON_USEDEP}] )
77 + zlib? ( >=sys-libs/zlib-1.2.11-r1 )
78 +"
79 +DEPEND="
80 + ${RDEPEND}
81 + >=dev-util/cmake-3.9.6
82 + doc? ( >=app-doc/doxygen-1.8.13-r1 )
83 +"
84 +
85 +DOCS=( "ACKNOWLEDGEMENTS.txt" "FEEDBACK.txt" "NEWS.txt" "README.txt" )
86 +
87 +PATCHES=(
88 + "${FILESDIR}/${PN}-FindIlmBase-pkgconfig.patch"
89 + "${FILESDIR}/${P}-CMakeLists-fix_lib.patch"
90 + "${FILESDIR}/${P}-prman.patch"
91 + "${FILESDIR}/${P}-fix-python-import.patch"
92 + "${FILESDIR}/${P}-find-pyilmbase-python-module.patch"
93 +)
94 +
95 +src_configure() {
96 + local mycmakeargs=(
97 + -DALEMBIC_SHARED_LIBS=ON
98 + # The CMakeLists.txt file needs C++11 or C++-0x if none of them
99 + # is defined
100 + -DALEMBIC_LIB_USES_BOOST=$(usex boost)
101 + -DALEMBIC_LIB_USES_TR1=$(usex !boost)
102 + -DUSE_ARNOLD=$(usex arnold)
103 + -DUSE_BINARIES=ON
104 + -DUSE_EXAMPLES=$(usex examples)
105 + -DUSE_HDF5=$(usex hdf5)
106 + -DUSE_MAYA=$(usex maya)
107 + -DUSE_PRMAN=$(usex prman)
108 + -DUSE_PYALEMBIC=$(usex python)
109 + -DUSE_TESTS=$(usex test)
110 + )
111 + cmake-utils_src_configure
112 +}
113 +
114 +src_compile() {
115 + cmake-utils_src_compile
116 + if use doc; then
117 + doxygen -u Doxyfile || die
118 + doxygen Doxyfile || die
119 + fi
120 +}
121 +
122 +src_install() {
123 + use doc && local HTML_DOCS=( doc/html/. )
124 + cmake-utils_src_install
125 +}
126 +
127 +pkg_postinst() {
128 + if use arnold; then
129 + einfo "NOTE: The arnold plugin is highly experimental and hasn't been"
130 + einfo "tested, due to missing license. If you have trouble compiling"
131 + einfo "or running it, please file a bug report for the package at"
132 + einfo "Gentoo's bugzilla."
133 + fi
134 + if use maya; then
135 + einfo "NOTE: The maya plugin is highly experimental and hasn't been"
136 + einfo "tested, due to missing license. If you have trouble compiling"
137 + einfo "or running it, please file a bug report for the package at"
138 + einfo "Gentoo's bugzilla."
139 + fi
140 + if use prman; then
141 + einfo "NOTE: The renderman plugin is still experimental and has not"
142 + einfo "been tested much. If you have trouble running it, please file"
143 + einfo "a bug report for the package at Gentoo's bugzilla."
144 + einfo "If you're looking for an ebuild for renderman, you may want to"
145 + einfo "try the waebbl overlay: 'eselect repository enable waebbl'"
146 + einfo "followed by 'emerge renderman'"
147 + fi
148 +}
149
150 diff --git a/media-gfx/alembic/files/alembic-1.7.9-CMakeLists-fix_lib.patch b/media-gfx/alembic/files/alembic-1.7.9-CMakeLists-fix_lib.patch
151 new file mode 100644
152 index 00000000000..06ebf60b0d6
153 --- /dev/null
154 +++ b/media-gfx/alembic/files/alembic-1.7.9-CMakeLists-fix_lib.patch
155 @@ -0,0 +1,189 @@
156 +diff --git a/CMakeLists.txt b/CMakeLists.txt
157 +index 298f4be..18b3ff5 100644
158 +--- a/CMakeLists.txt
159 ++++ b/CMakeLists.txt
160 +@@ -80,12 +80,12 @@ OPTION(ALEMBIC_LIB_USES_TR1
161 +
162 + # Set static/dynamic build options
163 + SET(LIB_TYPE STATIC)
164 +-SET(RUNTIME_INSTALL_DIR lib)
165 +-SET(LIBRARY_INSTALL_DIR lib)
166 +-SET(ARCHIVE_INSTALL_DIR lib)
167 ++SET(RUNTIME_INSTALL_DIR lib${LIB_SUFFIX})
168 ++SET(LIBRARY_INSTALL_DIR lib${LIB_SUFFIX})
169 ++SET(ARCHIVE_INSTALL_DIR lib${LIB_SUFFIX})
170 + IF (ALEMBIC_SHARED_LIBS)
171 + SET(LIB_TYPE SHARED)
172 +- SET(ARCHIVE_INSTALL_DIR lib)
173 ++ SET(ARCHIVE_INSTALL_DIR lib${LIB_SUFFIX})
174 + IF (WIN32)
175 + ADD_DEFINITIONS(-DALEMBIC_DLL)
176 + ENDIF()
177 +diff --git a/arnold/Procedural/CMakeLists.txt b/arnold/Procedural/CMakeLists.txt
178 +index 69e00da..47ccf66 100644
179 +--- a/arnold/Procedural/CMakeLists.txt
180 ++++ b/arnold/Procedural/CMakeLists.txt
181 +@@ -60,7 +60,7 @@ TARGET_LINK_LIBRARIES( AlembicArnoldProcedural Alembic::Alembic)
182 +
183 + set_target_properties(AlembicArnoldProcedural PROPERTIES
184 + INSTALL_RPATH_USE_LINK_PATH TRUE
185 +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
186 ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
187 +
188 + INSTALL ( TARGETS
189 + AlembicArnoldProcedural
190 +diff --git a/bin/AbcConvert/CMakeLists.txt b/bin/AbcConvert/CMakeLists.txt
191 +index 451409c..c882971 100644
192 +--- a/bin/AbcConvert/CMakeLists.txt
193 ++++ b/bin/AbcConvert/CMakeLists.txt
194 +@@ -38,6 +38,6 @@ TARGET_LINK_LIBRARIES(abcconvert Alembic::Alembic)
195 +
196 + set_target_properties(abcconvert PROPERTIES
197 + INSTALL_RPATH_USE_LINK_PATH TRUE
198 +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
199 ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
200 +
201 + INSTALL(TARGETS abcconvert DESTINATION bin)
202 +diff --git a/bin/AbcDiff/CMakeLists.txt b/bin/AbcDiff/CMakeLists.txt
203 +index 511864a..bed92b2 100644
204 +--- a/bin/AbcDiff/CMakeLists.txt
205 ++++ b/bin/AbcDiff/CMakeLists.txt
206 +@@ -38,6 +38,6 @@ TARGET_LINK_LIBRARIES(abcdiff Alembic::Alembic)
207 +
208 + set_target_properties(abcdiff PROPERTIES
209 + INSTALL_RPATH_USE_LINK_PATH TRUE
210 +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
211 ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
212 +
213 + INSTALL(TARGETS abcdiff DESTINATION bin)
214 +diff --git a/bin/AbcEcho/CMakeLists.txt b/bin/AbcEcho/CMakeLists.txt
215 +index be5f5c1..eca449a 100644
216 +--- a/bin/AbcEcho/CMakeLists.txt
217 ++++ b/bin/AbcEcho/CMakeLists.txt
218 +@@ -41,6 +41,6 @@ TARGET_LINK_LIBRARIES(abcechobounds Alembic::Alembic)
219 +
220 + set_target_properties(abcecho abcechobounds PROPERTIES
221 + INSTALL_RPATH_USE_LINK_PATH TRUE
222 +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
223 ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
224 +
225 + INSTALL(TARGETS abcecho abcechobounds DESTINATION bin)
226 +diff --git a/bin/AbcLs/CMakeLists.txt b/bin/AbcLs/CMakeLists.txt
227 +index 815f84f..92f83c4 100644
228 +--- a/bin/AbcLs/CMakeLists.txt
229 ++++ b/bin/AbcLs/CMakeLists.txt
230 +@@ -39,6 +39,6 @@ TARGET_LINK_LIBRARIES(abcls Alembic::Alembic)
231 +
232 + set_target_properties(abcls PROPERTIES
233 + INSTALL_RPATH_USE_LINK_PATH TRUE
234 +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
235 ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
236 +
237 + INSTALL(TARGETS abcls DESTINATION bin)
238 +diff --git a/bin/AbcStitcher/CMakeLists.txt b/bin/AbcStitcher/CMakeLists.txt
239 +index a963420..a84e00b 100644
240 +--- a/bin/AbcStitcher/CMakeLists.txt
241 ++++ b/bin/AbcStitcher/CMakeLists.txt
242 +@@ -38,6 +38,6 @@ TARGET_LINK_LIBRARIES(abcstitcher Alembic::Alembic)
243 +
244 + set_target_properties(abcstitcher PROPERTIES
245 + INSTALL_RPATH_USE_LINK_PATH TRUE
246 +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
247 ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
248 +
249 + INSTALL(TARGETS abcstitcher DESTINATION bin)
250 +diff --git a/bin/AbcTree/CMakeLists.txt b/bin/AbcTree/CMakeLists.txt
251 +index b4f65f1..74225ac 100644
252 +--- a/bin/AbcTree/CMakeLists.txt
253 ++++ b/bin/AbcTree/CMakeLists.txt
254 +@@ -38,6 +38,6 @@ TARGET_LINK_LIBRARIES(abctree Alembic::Alembic)
255 +
256 + set_target_properties(abctree PROPERTIES
257 + INSTALL_RPATH_USE_LINK_PATH TRUE
258 +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
259 ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
260 +
261 + INSTALL(TARGETS abctree DESTINATION bin)
262 +diff --git a/lib/Alembic/CMakeLists.txt b/lib/Alembic/CMakeLists.txt
263 +index fb3def8..d5bbcec 100644
264 +--- a/lib/Alembic/CMakeLists.txt
265 ++++ b/lib/Alembic/CMakeLists.txt
266 +@@ -84,7 +84,7 @@ IF ( ${ALEMBIC_LIB_USES_TR1} AND CMAKE_COMPILER_IS_GNUCXX AND
267 + TARGET_LINK_LIBRARIES( Alembic atomic )
268 + ENDIF()
269 +
270 +-SET( ALEMBIC_LIB_INSTALL_DIR lib CACHE PATH "Where to install the Alembic libs")
271 ++SET( ALEMBIC_LIB_INSTALL_DIR lib${LIB_SUFFIX} CACHE PATH "Where to install the Alembic libs")
272 + INSTALL(TARGETS Alembic
273 + EXPORT AlembicTargets
274 + LIBRARY DESTINATION ${ALEMBIC_LIB_INSTALL_DIR}
275 +@@ -117,7 +117,7 @@ EXPORT(TARGETS
276 + Alembic::
277 + )
278 +
279 +-SET(ConfigPackageLocation lib/cmake/Alembic CACHE PATH
280 ++SET(ConfigPackageLocation lib${LIB_SUFFIX}/cmake/Alembic CACHE PATH
281 + "Where to install the Alembic's cmake files")
282 +
283 + INSTALL(FILES
284 +diff --git a/maya/AbcExport/CMakeLists.txt b/maya/AbcExport/CMakeLists.txt
285 +index 50d2fd2..f8bc850 100644
286 +--- a/maya/AbcExport/CMakeLists.txt
287 ++++ b/maya/AbcExport/CMakeLists.txt
288 +@@ -77,7 +77,7 @@ TARGET_LINK_LIBRARIES(AbcExport
289 +
290 + set_target_properties(AbcExport PROPERTIES
291 + INSTALL_RPATH_USE_LINK_PATH TRUE
292 +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
293 ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
294 +
295 + INSTALL(TARGETS AbcExport
296 + DESTINATION ${ALEMBIC_MAYA_PLUGINS_INSTALL_DIR})
297 +diff --git a/maya/AbcImport/CMakeLists.txt b/maya/AbcImport/CMakeLists.txt
298 +index 6826183..e71e612 100644
299 +--- a/maya/AbcImport/CMakeLists.txt
300 ++++ b/maya/AbcImport/CMakeLists.txt
301 +@@ -81,7 +81,7 @@ TARGET_LINK_LIBRARIES(AbcImport
302 +
303 + set_target_properties(AbcImport PROPERTIES
304 + INSTALL_RPATH_USE_LINK_PATH TRUE
305 +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
306 ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
307 +
308 + INSTALL(TARGETS AbcImport
309 + DESTINATION ${ALEMBIC_MAYA_PLUGINS_INSTALL_DIR})
310 +diff --git a/prman/Procedural/CMakeLists.txt b/prman/Procedural/CMakeLists.txt
311 +index 6b46e91..3635bcc 100644
312 +--- a/prman/Procedural/CMakeLists.txt
313 ++++ b/prman/Procedural/CMakeLists.txt
314 +@@ -60,7 +60,7 @@ TARGET_LINK_LIBRARIES(AlembicRiProcedural Alembic::Alembic)
315 +
316 + set_target_properties(AlembicRiProcedural PROPERTIES
317 + INSTALL_RPATH_USE_LINK_PATH TRUE
318 +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
319 ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
320 +
321 + INSTALL(TARGETS
322 + AlembicRiProcedural
323 +diff --git a/python/PyAlembic/CMakeLists.txt b/python/PyAlembic/CMakeLists.txt
324 +index 91c45c4..c87eec6 100644
325 +--- a/python/PyAlembic/CMakeLists.txt
326 ++++ b/python/PyAlembic/CMakeLists.txt
327 +@@ -128,7 +128,7 @@ IF (Boost_PYTHON_LIBRARY AND ALEMBIC_PYTHON_LIBRARY)
328 + )
329 +
330 + SET( ALEMBIC_PYTHON_INSTALL_DIR
331 +- lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
332 ++ lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
333 + CACHE PATH
334 + "Alembic's python bindings install directory"
335 + )
336 +@@ -143,7 +143,7 @@ IF (Boost_PYTHON_LIBRARY AND ALEMBIC_PYTHON_LIBRARY)
337 +
338 + set_target_properties(alembic PROPERTIES
339 + INSTALL_RPATH_USE_LINK_PATH TRUE
340 +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
341 ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
342 + ELSE()
343 + MESSAGE(FATAL_ERROR "Unable to find Python libs")
344 + ENDIF()
345
346 diff --git a/media-gfx/alembic/files/alembic-1.7.9-find-pyilmbase-python-module.patch b/media-gfx/alembic/files/alembic-1.7.9-find-pyilmbase-python-module.patch
347 new file mode 100644
348 index 00000000000..4acdc5d7d88
349 --- /dev/null
350 +++ b/media-gfx/alembic/files/alembic-1.7.9-find-pyilmbase-python-module.patch
351 @@ -0,0 +1,13 @@
352 +diff --git a/cmake/Modules/FindPyIlmBase.cmake b/cmake/Modules/FindPyIlmBase.cmake
353 +index 5cb9108..c3f80a2 100644
354 +--- a/cmake/Modules/FindPyIlmBase.cmake
355 ++++ b/cmake/Modules/FindPyIlmBase.cmake
356 +@@ -44,7 +44,7 @@ ELSE()
357 + SET(ALEMBIC_PYILMBASE_ROOT NOTFOUND)
358 + ELSE()
359 + # TODO: set to default install path when shipping out
360 +- SET(ALEMBIC_PYILMBASE_ROOT "/usr/local/pyilmbase/")
361 ++ SET(ALEMBIC_PYILMBASE_ROOT "/usr")
362 + ENDIF()
363 + ELSE()
364 + IF (${WINDOWS})
365
366 diff --git a/media-gfx/alembic/files/alembic-1.7.9-fix-python-import.patch b/media-gfx/alembic/files/alembic-1.7.9-fix-python-import.patch
367 new file mode 100644
368 index 00000000000..ca8bedef57a
369 --- /dev/null
370 +++ b/media-gfx/alembic/files/alembic-1.7.9-fix-python-import.patch
371 @@ -0,0 +1,30 @@
372 +diff --git a/cmake/Modules/FindPyIlmBase.cmake b/cmake/Modules/FindPyIlmBase.cmake
373 +index c677549..5cb9108 100644
374 +--- a/cmake/Modules/FindPyIlmBase.cmake
375 ++++ b/cmake/Modules/FindPyIlmBase.cmake
376 +@@ -60,11 +60,11 @@ ELSE()
377 +
378 + SET(LIBRARY_PATHS
379 + ${ALEMBIC_PYILMBASE_ROOT}/lib
380 +- ${ALEMBIC_PYILMBASE_MODULE_DIRECTORY}
381 ++# ${ALEMBIC_PYILMBASE_MODULE_DIRECTORY} # this is defined nowhere
382 + ~/Library/Frameworks
383 + /Library/Frameworks
384 +- /usr/local/lib
385 +- /usr/lib
386 ++ /usr/local/lib${LIB_SUFFIX}
387 ++ /usr/lib${LIB_SUFFIX}
388 + /sw/lib
389 + /opt/local/lib
390 + /opt/csw/lib
391 +@@ -118,8 +118,8 @@ ELSE()
392 + FIND_PATH(ALEMBIC_PYIMATH_MODULE_DIRECTORY imathmodule.so
393 + PATHS
394 + ${LIBRARY_PATHS}
395 +- /usr/local/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
396 +- ${ALEMBIC_PYILMBASE_ROOT}/lib64/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
397 ++ /usr/local/lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
398 ++ ${ALEMBIC_PYILMBASE_ROOT}/lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
399 + DOC "The imathmodule.so module directory"
400 + )
401 +
402
403 diff --git a/media-gfx/alembic/files/alembic-1.7.9-prman.patch b/media-gfx/alembic/files/alembic-1.7.9-prman.patch
404 new file mode 100644
405 index 00000000000..cfd299c79bb
406 --- /dev/null
407 +++ b/media-gfx/alembic/files/alembic-1.7.9-prman.patch
408 @@ -0,0 +1,26 @@
409 +diff --git a/cmake/AlembicPRMan.cmake b/cmake/AlembicPRMan.cmake
410 +index e02b237..fdbf26c 100644
411 +--- a/cmake/AlembicPRMan.cmake
412 ++++ b/cmake/AlembicPRMan.cmake
413 +@@ -66,8 +66,8 @@ ELSE()
414 + ENDIF()
415 +
416 + # Prefer PRMAN_ROOT set from the environment over the CMakeCache'd variable
417 +-IF(NOT $ENV{PRMAN_ROOT}x STREQUAL "x")
418 +- SET( ALEMBIC_PRMAN_ROOT $ENV{PRMAN_ROOT})
419 ++IF(NOT $ENV{RMANTREE}x STREQUAL "x")
420 ++ SET( ALEMBIC_PRMAN_ROOT $ENV{RMANTREE})
421 + ENDIF()
422 +
423 +
424 +diff --git a/prman/Procedural/CMakeLists.txt b/prman/Procedural/CMakeLists.txt
425 +index 6b46e91..0cb2aa6 100644
426 +--- a/prman/Procedural/CMakeLists.txt
427 ++++ b/prman/Procedural/CMakeLists.txt
428 +@@ -65,5 +65,5 @@ set_target_properties(AlembicRiProcedural PROPERTIES
429 + INSTALL(TARGETS
430 + AlembicRiProcedural
431 + DESTINATION
432 +- prman/procedurals
433 ++ $ENV{RMANTREE}/lib/plugins
434 + )
435
436 diff --git a/media-gfx/alembic/metadata.xml b/media-gfx/alembic/metadata.xml
437 index 3d75399517f..30e01e315c7 100644
438 --- a/media-gfx/alembic/metadata.xml
439 +++ b/media-gfx/alembic/metadata.xml
440 @@ -14,9 +14,25 @@
441 developed by Sony Pictures Imageworks Inc. and Lucasfilm Ltd.
442 </longdescription>
443 <use>
444 + <flag name="arnold">
445 + Add support for arnold renderer (experimental)
446 + </flag>
447 <flag name="boost">Use <pkg>dev-libs/boost</pkg> library</flag>
448 + <flag name="examples">Install alembic examples</flag>
449 <flag name="hdf5">Add support <pkg>sci-libs/hdf5</pkg></flag>
450 - <flag name="pyalembic">Build pyalembic python bindings (needs <pkg>dev-python/pyilmbase</pkg>)</flag>
451 + <flag name="maya">
452 + Compile Alembic plugin for Maya (experimental)
453 + </flag>
454 + <flag name="prman">
455 + Compile Alembic plugin for Renderman (experimental)
456 + </flag>
457 + <flag name="pyalembic">
458 + <!-- renamed to python in 1.7.9 -->
459 + Build pyalembic python bindings (needs <pkg>dev-python/pyilmbase</pkg>)
460 + </flag>
461 + <flag name="python">
462 + Build pyalembic python bindings (needs <pkg>dev-python/pyilmbase</pkg>)
463 + </flag>
464 <flag name="test">Build and run the test-suite</flag>
465 <flag name="zlib">Use <pkg>sys-libs/zlib</pkg> for compressions</flag>
466 </use>