From 9f0d9a3b0107b2552a736d80bb46e87c328430c4 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Mon, 6 May 2013 15:31:28 +0300 Subject: [PATCH] KDE 4.10: kdesdk-thumbnailers: Patch the build system to fix build failure. Patch contributed by Karn Kallio. --- .../desktops/kde-4.10/kdesdk/kdesdk-thumbnailers.nix | 4 +++- .../kdesdk/thumbnailers-add-subdirectory.patch | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 pkgs/desktops/kde-4.10/kdesdk/thumbnailers-add-subdirectory.patch diff --git a/pkgs/desktops/kde-4.10/kdesdk/kdesdk-thumbnailers.nix b/pkgs/desktops/kde-4.10/kdesdk/kdesdk-thumbnailers.nix index 782ef72ce5aa..f96b0df2b955 100644 --- a/pkgs/desktops/kde-4.10/kdesdk/kdesdk-thumbnailers.nix +++ b/pkgs/desktops/kde-4.10/kdesdk/kdesdk-thumbnailers.nix @@ -1,9 +1,11 @@ { kde, kdelibs, gettext }: kde { -#todo: doesn't build + buildInputs = [ kdelibs gettext ]; + patches = [ ./thumbnailers-add-subdirectory.patch ]; + meta = { description = "PO file format thumbnailer"; }; diff --git a/pkgs/desktops/kde-4.10/kdesdk/thumbnailers-add-subdirectory.patch b/pkgs/desktops/kde-4.10/kdesdk/thumbnailers-add-subdirectory.patch new file mode 100644 index 000000000000..5b4f7643bf45 --- /dev/null +++ b/pkgs/desktops/kde-4.10/kdesdk/thumbnailers-add-subdirectory.patch @@ -0,0 +1,12 @@ +diff -Naur kdesdk-4.10.2-upstream/kdesdk-thumbnailers/CMakeLists.txt kdesdk-4.10.2/kdesdk-thumbnailers/CMakeLists.txt +--- kdesdk-4.10.2-upstream/kdesdk-thumbnailers/CMakeLists.txt 2013-05-02 21:05:56.446226846 -0430 ++++ kdesdk-4.10.2/kdesdk-thumbnailers/CMakeLists.txt 2013-05-02 21:09:58.504053136 -0430 +@@ -9,7 +9,7 @@ + macro_log_feature(GETTEXTPO_FOUND "gettext-po" "A library for processing PO files" "www.gnu.org/software/gettext" FALSE "" "Required to build the PO thumbnailer") + + if(GETTEXTPO_FOUND) +-macro_optional_add_subdirectory(po_thumbnailer) ++add_subdirectory(po_thumbnailer) + endif(GETTEXTPO_FOUND) + + macro_display_feature_log()