summaryrefslogtreecommitdiffstats
path: root/kde/pre-install
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-09-02 09:55:57 +0200
committer Eric Hameleers <alien@slackware.com>2015-09-02 09:55:57 +0200
commitaf5fe581cb81e5408fd8b221e50189a125bcc46b (patch)
treecc7d2381f67f62a386adef3e21caa1b9b299c355 /kde/pre-install
parent7a938b769d842e17e6f78f97f3077348eccc3b84 (diff)
downloadktown-af5fe581cb81e5408fd8b221e50189a125bcc46b.tar.gz
ktown-af5fe581cb81e5408fd8b221e50189a125bcc46b.tar.xz
Several applications need tweaks in their pre-install or post-install stage
Diffstat (limited to 'kde/pre-install')
-rw-r--r--kde/pre-install/kde-runtime.pre-install8
-rw-r--r--kde/pre-install/kdepimlibs4.pre-install7
-rw-r--r--kde/pre-install/smokekde.pre-install7
3 files changed, 22 insertions, 0 deletions
diff --git a/kde/pre-install/kde-runtime.pre-install b/kde/pre-install/kde-runtime.pre-install
new file mode 100644
index 0000000..c32e2ce
--- /dev/null
+++ b/kde/pre-install/kde-runtime.pre-install
@@ -0,0 +1,8 @@
+# For some reason, cmake stumbles over identical directory names in
+# doc/kcontrol and doc/kioslave
+sed -i \
+ -e "s/add_subdirectory(bookmarks)/add_subdirectory(kiobookmarks)/" \
+ -e "s/add_subdirectory(smb)/add_subdirectory(kiosmb)/" \
+ doc/kioslave/CMakeLists.txt
+mv -i doc/kioslave/{,kio}bookmarks
+mv -i doc/kioslave/{,kio}smb
diff --git a/kde/pre-install/kdepimlibs4.pre-install b/kde/pre-install/kdepimlibs4.pre-install
new file mode 100644
index 0000000..a663cc6
--- /dev/null
+++ b/kde/pre-install/kdepimlibs4.pre-install
@@ -0,0 +1,7 @@
+# Temporary (hopefully) fix:
+if ! grep -q 'cmake_minimum_required' CMakeLists.txt ; then
+ # Prepend a cmake_minimum_required stanza at the top, which enables
+ # newer cmake features which the build needs:
+ sed -i -e '1icmake_minimum_required(VERSION 2.8.9)\' CMakeLists.txt
+fi
+
diff --git a/kde/pre-install/smokekde.pre-install b/kde/pre-install/smokekde.pre-install
new file mode 100644
index 0000000..a663cc6
--- /dev/null
+++ b/kde/pre-install/smokekde.pre-install
@@ -0,0 +1,7 @@
+# Temporary (hopefully) fix:
+if ! grep -q 'cmake_minimum_required' CMakeLists.txt ; then
+ # Prepend a cmake_minimum_required stanza at the top, which enables
+ # newer cmake features which the build needs:
+ sed -i -e '1icmake_minimum_required(VERSION 2.8.9)\' CMakeLists.txt
+fi
+