diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-libs/libyui-ncurses/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-libs/libyui-ncurses/files')
-rw-r--r-- | x11-libs/libyui-ncurses/files/libyui-ncurses-2.46.4-tinfo.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/x11-libs/libyui-ncurses/files/libyui-ncurses-2.46.4-tinfo.patch b/x11-libs/libyui-ncurses/files/libyui-ncurses-2.46.4-tinfo.patch new file mode 100644 index 000000000000..b69aafe797b1 --- /dev/null +++ b/x11-libs/libyui-ncurses/files/libyui-ncurses-2.46.4-tinfo.patch @@ -0,0 +1,21 @@ +Fixes building with sys-libs/ncurses[tinfo] + +--- cmake/Modules/FindCurses6.cmake.orig 2014-09-25 16:32:20.000000000 +0400 ++++ cmake/Modules/FindCurses6.cmake 2014-09-25 16:33:16.000000000 +0400 +@@ -11,11 +11,12 @@ + FIND_LIBRARY(CURSES6_TINFO_LIBRARY NAMES tinfo PATHS ${path}/ncurses6 ${path} NO_DEFAULT_PATH) + ENDFOREACH() + +-SET(CURSES6_LIBRARIES ${CURSES6_NCURSESW_LIBRARY} ${CURSES6_PANELW_LIBRARY}) + # tinfo is optional (in 12.1 is not there) +-IF(${CURSES6_TINFO_LIBRARY}) +- SET(CURSES6_LIBRARIES "${CURSES6_LIBRARIES} ${CURSES6_TINFO_LIBRARY}") +-ENDIF(${CURSES6_TINFO_LIBRARY}) ++IF(NOT ${CURSES6_TINFO_LIBRARY} STREQUAL "CURSES6_TINFO_LIBRARY-NOTFOUND") ++ SET(CURSES6_LIBRARIES ${CURSES6_NCURSESW_LIBRARY} ${CURSES6_PANELW_LIBRARY} ${CURSES6_TINFO_LIBRARY}) ++ELSE() ++ SET(CURSES6_LIBRARIES ${CURSES6_NCURSESW_LIBRARY} ${CURSES6_PANELW_LIBRARY}) ++ENDIF() + + FIND_PATH(CURSES6_INCLUDE_DIR ncurses.h PATH_SUFFIXES ncurses6) + |