summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2017-07-29 07:30:58 -0400
committerTim Harder <radhermit@gentoo.org>2017-07-29 07:32:25 -0400
commit46793735da631fae7af30b9826c267a666439057 (patch)
tree5d5b7e1260d33699a9c9c7b75c934fbf21a64cb2 /media-sound/csound/files/csound-6.09.1-python.patch
parentmedia-sound/lilypond: version bump to 2.19.64 (diff)
downloadgentoo-46793735da631fae7af30b9826c267a666439057.tar.gz
gentoo-46793735da631fae7af30b9826c267a666439057.tar.bz2
gentoo-46793735da631fae7af30b9826c267a666439057.zip
media-sound/csound: version bump to 6.09.1
Merge csound-manual back in as releases now appear to be coordinated for both on github.
Diffstat (limited to 'media-sound/csound/files/csound-6.09.1-python.patch')
-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})