summaryrefslogtreecommitdiff
path: root/kde-base/pykde4/files/pykde4-installation-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'kde-base/pykde4/files/pykde4-installation-fix.patch')
-rw-r--r--kde-base/pykde4/files/pykde4-installation-fix.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/kde-base/pykde4/files/pykde4-installation-fix.patch b/kde-base/pykde4/files/pykde4-installation-fix.patch
new file mode 100644
index 00000000000..a0a3e642d49
--- /dev/null
+++ b/kde-base/pykde4/files/pykde4-installation-fix.patch
@@ -0,0 +1,10 @@
+Index: python/pykde4/tools/pykdeuic4/CMakeLists.txt
+===================================================================
+--- python/pykde4/tools/pykdeuic4/CMakeLists.txt (revision 1001414)
++++ python/pykde4/tools/pykdeuic4/CMakeLists.txt (working copy)
+@@ -1,2 +1,4 @@
+ PYTHON_INSTALL(kde4.py ${PYTHON_SITE_PACKAGES_DIR}/PyQt4/uic/widget-plugins/)
+-PYTHON_INSTALL(pykdeuic4.py ${BIN_INSTALL_DIR}/pykdeuic4)
++PYTHON_INSTALL(pykdeuic4.py ${PYTHON_SITE_PACKAGES_DIR}/PyQt4/uic/)
++find_path(cmake_module_dir create_exe_symlink.cmake ${CMAKE_MODULE_PATH})
++INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -DTARGET=${PYTHON_SITE_PACKAGES_DIR}/PyQt4/uic/pykdeuic4.py -DLINK_NAME=${BIN_INSTALL_DIR}/pykdeuic4 -P ${cmake_module_dir}/create_exe_symlink.cmake)" )