kde-apps/kgamma: add patch to solve build failure with >=dev-util/cmake-3.4.0
authorMichael Palimaka <kensington@gentoo.org>
Thu, 26 Nov 2015 16:22:52 +0000 (03:22 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Thu, 26 Nov 2015 16:23:17 +0000 (03:23 +1100)
Gentoo-bug: 566814

Package-Manager: portage-2.2.26

kde-apps/kgamma/files/kgamma-4.14.3-cmake34.patch [new file with mode: 0644]
kde-apps/kgamma/kgamma-4.14.3.ebuild

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 (file)
index 0000000..4aa0969
--- /dev/null
@@ -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)
+ 
index d01b4224df84a4cc8e93af2fb0e4054f5453a125..50dfbd28e6212780abba542f34b148f5776e82f1 100644 (file)
@@ -17,3 +17,5 @@ RDEPEND="
 DEPEND="${RDEPEND}
        x11-proto/xf86vidmodeproto
 "
+
+PATCHES=( "${FILESDIR}/${P}-cmake34.patch" )