From e304c8b200a1b64e0547febeafa1686ed0834b39 Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Tue, 1 Sep 2015 01:21:53 +1000 Subject: [PATCH] kde-misc/kde-gtk-config: improve kde-base/kdelibs-4.14.11 compatibility patch Gentoo-bug: 559108 Package-Manager: portage-2.2.20.1 --- ...kde-gtk-config-2.2.1-kdelibs-4.14.11.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/kde-misc/kde-gtk-config/files/kde-gtk-config-2.2.1-kdelibs-4.14.11.patch b/kde-misc/kde-gtk-config/files/kde-gtk-config-2.2.1-kdelibs-4.14.11.patch index ca20682104f3..86c8b4c32582 100644 --- a/kde-misc/kde-gtk-config/files/kde-gtk-config-2.2.1-kdelibs-4.14.11.patch +++ b/kde-misc/kde-gtk-config/files/kde-gtk-config-2.2.1-kdelibs-4.14.11.patch @@ -50,3 +50,30 @@ index 9821cbf..18ee2d5 100644 -- 2.4.6 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -47,6 +47,4 @@ + add_subdirectory(gtkproxies) + add_subdirectory(gtk3proxies) + add_subdirectory(icons) +-find_package(Msgfmt REQUIRED) +-find_package(Gettext REQUIRED) + add_subdirectory( po ) + +--- a/po/CMakeLists.txt ++++ b/po/CMakeLists.txt +@@ -0,0 +1,14 @@ ++# The pofiles macro creates in some versions same name targets ++# which since cmake 2.8 leads to target clashes. ++# Hence force the old policy for all po directories. ++# http://public.kitware.com/Bug/view.php?id=12952 ++cmake_policy(SET CMP0002 OLD) ++ ++find_package(Gettext REQUIRED) ++if (NOT GETTEXT_MSGMERGE_EXECUTABLE) ++MESSAGE(FATAL_ERROR "Please install msgmerge binary") ++endif (NOT GETTEXT_MSGMERGE_EXECUTABLE) ++if (NOT GETTEXT_MSGFMT_EXECUTABLE) ++MESSAGE(FATAL_ERROR "Please install msgmerge binary") ++endif (NOT GETTEXT_MSGFMT_EXECUTABLE) ++ -- 2.26.2