net-libs/libkvkontakte: Fix configure, bug 558512
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Tue, 29 Dec 2015 20:54:59 +0000 (21:54 +0100)
committerMichael Palimaka <kensington@gentoo.org>
Wed, 30 Dec 2015 12:18:06 +0000 (23:18 +1100)
Solution taken from Slackware.

Package-Manager: portage-2.2.24

net-libs/libkvkontakte/files/libkvkontakte-4.12.0-cmake.patch [new file with mode: 0644]
net-libs/libkvkontakte/libkvkontakte-4.12.0.ebuild

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 (file)
index 0000000..c11108d
--- /dev/null
@@ -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
index b7c8a0ad134c457472ca306583ba279b3619b4ee..a6e891b664c9f5e3a7c077dd98884c9c47f58b9c 100644 (file)
@@ -22,3 +22,5 @@ RDEPEND="${DEPEND}"
 
 # accessing network
 RESTRICT="test"
+
+PATCHES=( "${FILESDIR}/${P}-cmake.patch" )