summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/csound/files')
-rw-r--r--media-sound/csound/files/csound-6.09.1-python.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/media-sound/csound/files/csound-6.09.1-python.patch b/media-sound/csound/files/csound-6.09.1-python.patch
new file mode 100644
index 000000000000..47461e48aaf4
--- /dev/null
+++ b/media-sound/csound/files/csound-6.09.1-python.patch
@@ -0,0 +1,23 @@
+Respect externally set PYTHON_MODULE_INSTALL_DIR.
+
+--- csound-6.09.1/CMakeLists.txt
++++ csound-6.09.1/CMakeLists.txt
+@@ -218,11 +218,13 @@
+ set(PLUGIN_INSTALL_DIR "${LIBRARY_INSTALL_DIR}/csound/plugins-${APIVERSION}")
+ endif()
+
+-execute_process (
+- COMMAND python -c
+- "import site, sys; sys.stdout.write(site.getusersitepackages())"
+- OUTPUT_VARIABLE PYTHON_MODULE_INSTALL_DIR
+- )
++if(NOT DEFINED PYTHON_MODULE_INSTALL_DIR)
++ execute_process (
++ COMMAND python -c
++ "import site, sys; sys.stdout.write(site.getusersitepackages())"
++ OUTPUT_VARIABLE PYTHON_MODULE_INSTALL_DIR
++ )
++endif()
+
+ set(JAVA_MODULE_INSTALL_DIR ${LIBRARY_INSTALL_DIR})
+ set(LUA_MODULE_INSTALL_DIR ${LIBRARY_INSTALL_DIR})