Skip to content

Commit

Permalink
kde-misc/kde-gtk-config: improve kde-base/kdelibs-4.14.11 compatibili…
Browse files Browse the repository at this point in the history
…ty patch

Gentoo-bug: 559108

Package-Manager: portage-2.2.20.1
  • Loading branch information
kensington committed Aug 31, 2015
1 parent fcaae00 commit e304c8b
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
+

0 comments on commit e304c8b

Please sign in to comment.