Blame 0001-Ensure-SIP-files-are-installed-to-the-right-path-bas.patch

Rex Dieter 0a78b1a
From bfde1bec8426411f562011b30edcf05bc9561b0d Mon Sep 17 00:00:00 2001
Rex Dieter 0a78b1a
From: Luca Beltrame <lbeltrame@kde.org>
Rex Dieter 0a78b1a
Date: Sat, 2 Mar 2013 16:25:23 +0100
Rex Dieter 0a78b1a
Subject: [PATCH] Ensure SIP files are installed to the right path basing on
Rex Dieter 0a78b1a
 the INSTALL_PREFIX, rather than hardcode install directories.
Rex Dieter 0a78b1a
Rex Dieter 0a78b1a
This allows full installation of PyKDE4 outside of the system
Rex Dieter 0a78b1a
directories (the other bits were done in kdelibs prior to 4.10).
Rex Dieter 0a78b1a
Rex Dieter 0a78b1a
Based on a patch by Artem Serebriyskiy.
Rex Dieter 0a78b1a
Rex Dieter 0a78b1a
Reviewed by krop and tested by shumski.
Rex Dieter 0a78b1a
Rex Dieter 0a78b1a
REVIEW: 101903
Rex Dieter 0a78b1a
CCMAIL: hrvoje.senjan@gmail.com
Rex Dieter 0a78b1a
CCMAIL: v.for.vandal@gmail.com
Rex Dieter 0a78b1a
---
Rex Dieter 0a78b1a
 CMakeLists.txt | 6 ++++--
Rex Dieter 0a78b1a
 1 file changed, 4 insertions(+), 2 deletions(-)
Rex Dieter 0a78b1a
Rex Dieter 0a78b1a
diff --git a/CMakeLists.txt b/CMakeLists.txt
Rex Dieter 0a78b1a
index c2837b6..09fcc34 100644
Rex Dieter 0a78b1a
--- a/CMakeLists.txt
Rex Dieter 0a78b1a
+++ b/CMakeLists.txt
Rex Dieter 0a78b1a
@@ -241,6 +241,8 @@ endforeach (_X ${SIP_DISABLE_FEATURES})
Rex Dieter 0a78b1a
 
Rex Dieter 0a78b1a
 get_filename_component(LIB_DIR ${KDE4_LIB_DIR} NAME)
Rex Dieter 0a78b1a
 
Rex Dieter 0a78b1a
+set (SIP_FILES_INSTALL_DIR ${SHARE_INSTALL_PREFIX}/sip)
Rex Dieter 0a78b1a
+
Rex Dieter 0a78b1a
 set(SIP_CONFIGURATION "
Rex Dieter 0a78b1a
 kde_version_parts = '${KDE_VERSION}'.split('.')
Rex Dieter 0a78b1a
 kde_version_hex = int(kde_version_parts[0])*65536 + int(kde_version_parts[1])*256 + int(kde_version_parts[2])
Rex Dieter 0a78b1a
@@ -258,7 +260,7 @@ _pkg_config = {
Rex Dieter 0a78b1a
     'pykde_kde_sip_flags':  '${_SIP_TAGS} ${_SIP_X} ${SIP_EXTRA_OPTIONS}',
Rex Dieter 0a78b1a
     'pykde_mod_dir':        '${PYTHON_SITE_PACKAGES_INSTALL_DIR}/PyKDE4',
Rex Dieter 0a78b1a
     'pykde_modules':        '${PYKDE_MODULES}',
Rex Dieter 0a78b1a
-    'pykde_sip_dir':        '${SIP_DEFAULT_SIP_DIR}/PyKDE4',
Rex Dieter 0a78b1a
+    'pykde_sip_dir':        '${SIP_FILES_INSTALL_DIR}/PyKDE4',
Rex Dieter 0a78b1a
     'pykde_version':        kde_version_hex,
Rex Dieter 0a78b1a
     'pykde_version_str':    '${KDE_VERSION}'
Rex Dieter 0a78b1a
 }
Rex Dieter 0a78b1a
@@ -270,7 +272,7 @@ python_install(${CMAKE_CURRENT_BINARY_DIR}/pykdeconfig.py ${PYTHON_SITE_PACKAGES
Rex Dieter 0a78b1a
 
Rex Dieter 0a78b1a
 # Install the .sip files for anyone that wants to build bindings on top of PyKDE4.
Rex Dieter 0a78b1a
 # (Don't forget the / at the end of sip/.)
Rex Dieter 0a78b1a
-install(DIRECTORY sip/ DESTINATION ${SIP_DEFAULT_SIP_DIR}/PyKDE4
Rex Dieter 0a78b1a
+install(DIRECTORY sip/ DESTINATION ${SIP_FILES_INSTALL_DIR}/PyKDE4
Rex Dieter 0a78b1a
     PATTERN "*~" EXCLUDE    # This sucks, why can't I just whitelist what I _do_ want?
Rex Dieter 0a78b1a
     PATTERN ".svn" EXCLUDE
Rex Dieter 0a78b1a
     PATTERN "*.in" EXCLUDE)
Rex Dieter 0a78b1a
-- 
Rex Dieter 0a78b1a
1.8.1.4
Rex Dieter 0a78b1a