Files
gentoo/media-gfx/openvdb/files/openvdb-4.0.0-python-module-install-dir-fix.patch
T
Jonathan Scruggs e85a57635c media-gfx/openvdb: Version bump to 4.0.0
* Switched to CMake and a sane ebuild
* Added abi3-compat USE Flag
* Removed openvdb-compression as it's now hard enabled

Signed-off by: Jonathan Scruggs (j.scruggs@gmail.com)
Closes: https://github.com/gentoo/gentoo/pull/3473
2017-01-15 14:31:36 +01:00

17 lines
824 B
Diff

diff -purN a/openvdb/CMakeLists.txt b/openvdb/CMakeLists.txt
--- a/openvdb/CMakeLists.txt 2016-11-16 20:24:17.000000000 +0000
+++ b/openvdb/CMakeLists.txt 2017-01-09 13:46:00.000000000 +0000
@@ -426,10 +426,11 @@ IF ( OPENVDB_BUILD_PYTHON_MODULE )
ADD_TEST ( pytest ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/python/test/TestOpenVDB.py )
SET_TESTS_PROPERTIES ( pytest PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}")
+ SET ( PYOENVDB_INSTALL_DIRECTORY lib/python${OPENVDB_PYTHON_VERSION_MAJOR}.${OPENVDB_PYTHON_VERSION_MINOR} CACHE STRING "The directory to install the pyopenvdb.so module.")
INSTALL ( TARGETS
pyopenvdb
DESTINATION
- lib/python${OPENVDB_PYTHON_VERSION_MAJOR}.${OPENVDB_PYTHON_VERSION_MINOR}
+ ${PYOENVDB_INSTALL_DIRECTORY}
)
ENDIF ( OPENVDB_BUILD_PYTHON_MODULE )