commit: 07abe915900c7a3d352261354f96cd5800e0c42e
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Tue Dec 29 20:54:59 2015 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Dec 30 12:18:06 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07abe915
net-libs/libkvkontakte: Fix configure, bug 558512
Solution taken from Slackware.
Package-Manager: portage-2.2.24
net-libs/libkvkontakte/files/libkvkontakte-4.12.0-cmake.patch | 9 +++++++++
net-libs/libkvkontakte/libkvkontakte-4.12.0.ebuild | 2 ++
2 files changed, 11 insertions(+)
diff --git a/net-libs/libkvkontakte/files/libkvkontakte-4.12.0-cmake.patch
b/net-libs/libkvkontakte/files/libkvkontakte-4.12.0-cmake.patch
new file mode 100644
index 0000000..c11108d
--- /dev/null
+++ b/net-libs/libkvkontakte/files/libkvkontakte-4.12.0-cmake.patch
@@ -0,0 +1,9 @@
+--- a/CMakeLists.txt 2015-06-28 16:54:32.000000000 +0200
++++ b/CMakeLists.txt 2015-12-29 21:47:15.485256424 +0100
+@@ -1,4 +1,6 @@
+ cmake_minimum_required(VERSION 2.8.12)
++cmake_policy(SET CMP0022 OLD)
++cmake_policy(SET CMP0059 OLD)
+ project(kvkontakte)
+
+ # the version number, needed for
diff --git a/net-libs/libkvkontakte/libkvkontakte-4.12.0.ebuild
b/net-libs/libkvkontakte/libkvkontakte-4.12.0.ebuild
index b7c8a0a..a6e891b 100644
--- a/net-libs/libkvkontakte/libkvkontakte-4.12.0.ebuild
+++ b/net-libs/libkvkontakte/libkvkontakte-4.12.0.ebuild
@@ -22,3 +22,5 @@ RDEPEND="${DEPEND}"
# accessing network
RESTRICT="test"
+
+PATCHES=( "${FILESDIR}/${P}-cmake.patch" )