kde-misc/kde-gtk-config: improve kde-base/kdelibs-4.14.11 compatibility patch
authorMichael Palimaka <kensington@gentoo.org>
Mon, 31 Aug 2015 15:21:53 +0000 (01:21 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Mon, 31 Aug 2015 15:22:22 +0000 (01:22 +1000)
Gentoo-bug: 559108

Package-Manager: portage-2.2.20.1

kde-misc/kde-gtk-config/files/kde-gtk-config-2.2.1-kdelibs-4.14.11.patch

index ca20682104f34030b545c36045f60d2e7784be50..86c8b4c32582175951d6668642b4f57d3398138c 100644 (file)
@@ -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)
++