pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/chat/weechat



Module Name:    pkgsrc
Committed By:   maya
Date:           Mon Jul 23 22:57:22 UTC 2018

Modified Files:
        pkgsrc/chat/weechat: Makefile distinfo
        pkgsrc/chat/weechat/patches: patch-cmake_FindNcurses.cmake

Log Message:
weechat: minimal patch to allow using netbsd curses.
Now uses fake ncurses.

less likely to cause problems to people who try to hide their base curses.
bump pkgrevision (again).


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 pkgsrc/chat/weechat/Makefile
cvs rdiff -u -r1.49 -r1.50 pkgsrc/chat/weechat/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/chat/weechat/patches/patch-cmake_FindNcurses.cmake

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/chat/weechat/Makefile
diff -u pkgsrc/chat/weechat/Makefile:1.87 pkgsrc/chat/weechat/Makefile:1.88
--- pkgsrc/chat/weechat/Makefile:1.87   Sun Jul 22 21:32:34 2018
+++ pkgsrc/chat/weechat/Makefile        Mon Jul 23 22:57:22 2018
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.87 2018/07/22 21:32:34 maya Exp $
+# $NetBSD: Makefile,v 1.88 2018/07/23 22:57:22 maya Exp $
 
 DISTNAME=      weechat-2.1
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    chat
 MASTER_SITES=  https://www.weechat.org/files/src/
 EXTRACT_SUFX=  .tar.bz2
@@ -18,6 +18,7 @@ USE_TOOLS+=           msgfmt pkg-config
 USE_LANGUAGES=         c99
 USE_LIBTOOL=           yes
 USE_CMAKE=             yes
+FAKE_NCURSES=          yes
 
 CMAKE_ARGS+=           -DENABLE_ASPELL:BOOL=OFF
 CMAKE_ARGS+=           -DENABLE_GUILE:BOOL=OFF

Index: pkgsrc/chat/weechat/distinfo
diff -u pkgsrc/chat/weechat/distinfo:1.49 pkgsrc/chat/weechat/distinfo:1.50
--- pkgsrc/chat/weechat/distinfo:1.49   Sun Jul 22 21:32:34 2018
+++ pkgsrc/chat/weechat/distinfo        Mon Jul 23 22:57:22 2018
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.49 2018/07/22 21:32:34 maya Exp $
+$NetBSD: distinfo,v 1.50 2018/07/23 22:57:22 maya Exp $
 
 SHA1 (weechat-2.1.tar.bz2) = a537358336beef9391d668a6149bea1953c7b1d0
 RMD160 (weechat-2.1.tar.bz2) = 63c4e9f7ffb772ea81076454f0d653126750e987
 SHA512 (weechat-2.1.tar.bz2) = f49eb7d7a05edc8ada71a48e6dc190227daaec971d2386bee86fdd6151216a9e035bd2c682666f3a57582f8d63614bb92e69f3db5410c01cc5ff508483e6df1d
 Size (weechat-2.1.tar.bz2) = 2865960 bytes
 SHA1 (patch-CMakeLists.txt) = 493e49c0c698ff7b2685ba489d693fc1d388318d
-SHA1 (patch-cmake_FindNcurses.cmake) = 18cc0f7582b1dfc0d79ec4824d924abf6eabef64
+SHA1 (patch-cmake_FindNcurses.cmake) = bcc15b2c968a5850f1161608a83f38a03296b2a8
 SHA1 (patch-po_CMakeLists.txt) = 9b97a4a4da4175e31ea53352fd0b95e1c985ba1e
 SHA1 (patch-src_plugins_charset_charset.c) = f0b6e5268908caab5efa8048c8a55b0083ec0ca4

Index: pkgsrc/chat/weechat/patches/patch-cmake_FindNcurses.cmake
diff -u pkgsrc/chat/weechat/patches/patch-cmake_FindNcurses.cmake:1.1 pkgsrc/chat/weechat/patches/patch-cmake_FindNcurses.cmake:1.2
--- pkgsrc/chat/weechat/patches/patch-cmake_FindNcurses.cmake:1.1       Sun Jul 22 21:32:34 2018
+++ pkgsrc/chat/weechat/patches/patch-cmake_FindNcurses.cmake   Mon Jul 23 22:57:22 2018
@@ -1,9 +1,6 @@
-$NetBSD: patch-cmake_FindNcurses.cmake,v 1.1 2018/07/22 21:32:34 maya Exp $
+$NetBSD: patch-cmake_FindNcurses.cmake,v 1.2 2018/07/23 22:57:22 maya Exp $
 
-Try the following order:
-ncursesw, then plain curses, then ncurses.
-NCURSES_LIBRARY must be defined.
-(for netbsd curses)
+Don't try to look for ncurses.h, so FAKE_NCURSES works for netbsd curses.
 
 --- cmake/FindNcurses.cmake.orig       2018-03-18 06:41:40.000000000 +0000
 +++ cmake/FindNcurses.cmake
@@ -16,52 +13,3 @@ NCURSES_LIBRARY must be defined.
    PATHS /usr/include/ncursesw /usr/include/ncurses /usr/include
    /usr/local/include/ncursesw /usr/local/include/ncurses /usr/local/include
    /usr/pkg/include/ncursesw /usr/pkg/include/ncurses /usr/pkg/include
-@@ -33,6 +33,16 @@ find_library(NCURSESW_LIBRARY
-   PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
- )
- 
-+find_library(NCURSES_LIBRARY
-+  NAMES ncurses
-+  PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
-+)
-+
-+find_library(CURSES_LIBRARY
-+  NAMES curses
-+  PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
-+)
-+
- if(NCURSESW_LIBRARY)
-   find_package(PkgConfig QUIET)
-   if(PKG_CONFIG_FOUND)
-@@ -40,21 +50,21 @@ if(NCURSESW_LIBRARY)
-     set(NCURSESW_LIBRARY ${NCURSES_LIBRARIES} ${NCURSES_CFLAGS_OTHER})
-   endif()
-   set(NCURSES_LIBRARY ${NCURSESW_LIBRARY})
--else()
--  find_library(NCURSES_LIBRARY
--    NAMES ncurses
--    PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
--  )
-+
-+
-+elseif(CURSES_LIBRARY)
-+  set(NCURSES_LIBRARY ${CURSES_LIBRARY})
-+
-+
-+elseif(NCURSES_LIBRARY)
-   find_package(PkgConfig QUIET)
-   if(PKG_CONFIG_FOUND)
-     pkg_search_module(NCURSES ncurses)
-     set(NCURSES_LIBRARY ${NCURSES_LIBRARIES} ${NCURSES_CFLAGS_OTHER})
-   endif()
--  if(NCURSES_LIBRARY)
--    message("*** WARNING:\n"
--      "*** ncursesw library not found! Falling back to \"ncurses\"\n"
--      "*** Be careful, UTF-8 display may not work properly if your locale is UTF-8.")
--  endif()
-+  message("*** WARNING:\n"
-+    "*** ncursesw library not found! Falling back to \"ncurses\"\n"
-+    "*** Be careful, UTF-8 display may not work properly if your locale is UTF-8.")
- endif()
- 
- if(NCURSES_INCLUDE_PATH AND NCURSES_LIBRARY)



Home | Main Index | Thread Index | Old Index