conky: Add a conky not depending on lua:0
[shuber-gentoo-overlay.git] / app-admin / conky / files / conky-1.10.8-use-pkgconfig.patch
1 Reversed patch
2
3 From abd0be51a00444d3be6b213e0926675e5a4e5ed3 Mon Sep 17 00:00:00 2001
4 From: Brenden Matthews <brenden@diddyinc.com>
5 Date: Tue, 23 Jan 2018 12:56:06 -0500
6 Subject: [PATCH] Use FindCurses instead of pkg_check_modules.
7
8 This should resolve #217.
9 ---
10 cmake/ConkyPlatformChecks.cmake | 10 +++++-----
11 1 file changed, 5 insertions(+), 5 deletions(-)
12
13 diff --git a/cmake/ConkyPlatformChecks.cmake b/cmake/ConkyPlatformChecks.cmake
14 index c5b39b2f..19ec7b9b 100644
15 --- a/cmake/ConkyPlatformChecks.cmake
16 +++ b/cmake/ConkyPlatformChecks.cmake
17 @@ -129,12 +129,12 @@ if(BUILD_HTTP)
18 endif(BUILD_HTTP)
19
20 if(BUILD_NCURSES)
21 + pkg_check_modules(NCURSES ncurses)
22 + if(NOT NCURSES_FOUND)
23 - include(FindCurses)
24 - if(NOT CURSES_FOUND)
25 message(FATAL_ERROR "Unable to find ncurses library")
26 + endif(NOT NCURSES_FOUND)
27 + set(conky_libs ${conky_libs} ${NCURSES_LIBRARIES})
28 + set(conky_includes ${conky_includes} ${NCURSES_INCLUDE_DIRS})
29 - endif(NOT CURSES_FOUND)
30 - set(conky_libs ${conky_libs} ${CURSES_LIBRARIES})
31 - set(conky_includes ${conky_includes} ${CURSES_INCLUDE_DIR})
32 endif(BUILD_NCURSES)
33
34 if(BUILD_MYSQL)