commit: d44be9b34321798058970dd8c282644978a671b4
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 26 16:22:52 2015 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Nov 26 16:23:17 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d44be9b3
kde-apps/kgamma: add patch to solve build failure with >=dev-util/cmake-3.4.0
Gentoo-bug: 566814
Package-Manager: portage-2.2.26
kde-apps/kgamma/files/kgamma-4.14.3-cmake34.patch | 16 ++++++++++++++++
kde-apps/kgamma/kgamma-4.14.3.ebuild | 2 ++
2 files changed, 18 insertions(+)
diff --git a/kde-apps/kgamma/files/kgamma-4.14.3-cmake34.patch
b/kde-apps/kgamma/files/kgamma-4.14.3-cmake34.patch
new file mode 100644
index 0000000..4aa0969
--- /dev/null
+++ b/kde-apps/kgamma/files/kgamma-4.14.3-cmake34.patch
@@ -0,0 +1,16 @@
+Fix build with >=cmake-3.4
+
+Gentoo-bug: 566814
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 6f8a16f..8565f88 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -3,6 +3,7 @@ project(kgamma)
+ find_package(KDE4 REQUIRED)
+ include(KDE4Defaults)
+ include(MacroLibrary)
++include(CheckIncludeFiles)
+
+ find_package(X11 REQUIRED)
+
diff --git a/kde-apps/kgamma/kgamma-4.14.3.ebuild
b/kde-apps/kgamma/kgamma-4.14.3.ebuild
index d01b422..50dfbd2 100644
--- a/kde-apps/kgamma/kgamma-4.14.3.ebuild
+++ b/kde-apps/kgamma/kgamma-4.14.3.ebuild
@@ -17,3 +17,5 @@ RDEPEND="
DEPEND="${RDEPEND}
x11-proto/xf86vidmodeproto
"
+
+PATCHES=( "${FILESDIR}/${P}-cmake34.patch" )