kde-apps/kdiff3: add patch fixing build failure with kde-base/kdelibs-4.14.11

Gentoo-bug: 559014

Package-Manager: portage-2.2.20.1
This commit is contained in:
Michael Palimaka
2015-09-01 00:42:39 +10:00
parent 3277d583c5
commit 79e6eaca02
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
--- po/CMakeLists.txt
+++ po/CMakeLists.txt
@@ -1,3 +1,9 @@
+# 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")

View File

@@ -47,6 +47,8 @@ RDEPEND="${CDEPEND}
RESTRICT="!kde? ( test )"
PATCHES=( "${FILESDIR}/${P}-kdelibs-4.14.11.patch" )
src_unpack(){
if [[ ${PV} == *9999* ]]; then
git-r3_src_unpack