pykde4 patched for upstream issues, not a final fix

This commit is contained in:
abveritas 2013-01-04 21:35:04 +00:00
parent b89b710533
commit 90c53f9f29
3 changed files with 34 additions and 3 deletions

View File

@ -0,0 +1,17 @@
--- a/pykde4-4.9.97/CMakeLists.txt 2013-01-04 15:47:40.000000000 -0500
+++ b/pykde4-4.9.97/CMakeLists.txt 2013-01-04 13:59:38.571700297 -0500
@@ -1,14 +1,8 @@
project(pykde4)
-cmake_minimum_required(VERSION 2.8.6 FATAL_ERROR)
-
# search packages used by KDE
find_package(KDE4 4.9.4 REQUIRED)
-# Match what's used in the main macros
-cmake_policy(SET CMP0002 OLD)
-find_package(PythonLibrary)
-
include(KDE4Defaults)

View File

@ -18,9 +18,11 @@ license=('GPL' 'LGPL' 'FDL')
depends=('pyqt' 'qscintilla' 'boost-libs' "kdepim-runtime>=${_kdever}")
makedepends=('cmake' 'automoc4' 'polkit-qt' 'boost')
source=("$_mirror/${_pkgname}-$_kdever.tar.xz"
'pykdeuic4.patch')
'pykdeuic4_1.patch'
'CMakeLists.diff')
md5sums=(`grep ${_pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`
'9cffaa289dabe5570ea02615e3b3da65')
'9cffaa289dabe5570ea02615e3b3da65'
'fbdeefc300581174155e8248ddb16226')
groups=("kde" "kdebindings" "kde-uninstall")
provides=('kdebindings-python' 'pykde4')
@ -30,7 +32,8 @@ options=('docs' '!splithdr' 'splitdbg' 'log')
build() {
cd "${srcdir}"
patch -p1 -i ${srcdir}/pykdeuic4.patch
patch -p1 -i ${srcdir}/pykdeuic4_1.patch
patch -p1 -i ${srcdir}/CMakeLists.diff
rm -rf build
mkdir build && cd build

View File

@ -0,0 +1,11 @@
--- a/pykde4-4.9.97/tools/pykdeuic4/CMakeLists.txt 2012-12-30 10:05:50.465108547 +0100
+++ b/pykde4-4.9.97/tools/pykdeuic4/CMakeLists.txt 2013-01-04 14:15:52.468438186 +0100
@@ -10,7 +10,7 @@
if (NOT PYKDEUIC4_ALTINSTALL)
# Step 2: Make a the generated symlink a link to "pykdeuic4"
- install(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink ${BIN_INSTALL_DIR}/${_uic_name} ${BIN_INSTALL_DIR}/pykdeuic4)" )
+ INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -DTARGET=${BIN_INSTALL_DIR}/${_uic_name} -DLINK_NAME=${BIN_INSTALL_DIR}/pykdeuic4 -P ${cmake_module_dir}/create_exe_symlink.cmake)" )
endif()
unset(_uic_name)