media-sound/ncmpc: link against ncursesw instead of ncurses (bug #554256)
authorChristoph Mende <angelos@gentoo.org>
Sun, 18 Oct 2015 15:10:07 +0000 (17:10 +0200)
committerChristoph Mende <angelos@gentoo.org>
Sun, 18 Oct 2015 15:10:32 +0000 (17:10 +0200)
media-sound/ncmpc/files/ncmpc-0.24-tinfo.patch
media-sound/ncmpc/ncmpc-0.24-r2.ebuild [moved from media-sound/ncmpc/ncmpc-0.24-r1.ebuild with 86% similarity]

index 40ee0066e3d37ef7b32880f1ea0f98abc813366d..5c11e7682b596f71f295560ba0cf6de7b6fedb6b 100644 (file)
@@ -1,6 +1,8 @@
+diff --git a/configure.ac b/configure.ac
+index 2d79f35..b82dd49 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -17,11 +17,8 @@
+@@ -17,11 +17,8 @@ AC_CONFIG_MACRO_DIR([m4])
  dnl Check for programs
  AC_PROG_CC_C99
  AC_PROG_INSTALL
  
  dnl =======================================================
  dnl initialize variables
-@@ -83,6 +80,19 @@
+@@ -83,6 +80,19 @@ mingw32* | windows*)
  esac
  AM_CONDITIONAL([HAVE_WINDOWS], [test $HAVE_WINDOWS -eq 1])
  
-+dnl ncurses
++dnl ncursesw
 +
-+PKG_CHECK_MODULES([ncurses], [ncurses],[
-+      LIBS="$LIBS $ncurses_LIBS"
++PKG_CHECK_MODULES([ncursesw], [ncursesw],[
++      LIBS="$LIBS $ncursesw_LIBS"
 +      ax_cv_curses_color=yes
 +      ax_cv_curses_mouse=yes
 +      ax_cv_curses_enhanced=yes
 +      AC_DEFINE([HAVE_NCURSES_H], [1], [Define to 1 if the Ncurses library is present])
-+      AC_SUBST([CURSES_LIB],[$ncurses_LIBS])
++      AC_SUBST([CURSES_LIB],[$ncursesw_LIBS])
 +      ],
 +      [AC_MSG_ERROR([No curses support detected.])])
 +
@@ -33,7 +35,7 @@
  dnl multi-byte character support
  
  AC_ARG_ENABLE([multibyte],
-@@ -207,12 +217,6 @@
+@@ -207,12 +217,6 @@ AM_CONDITIONAL(ENABLE_HELP_SCREEN, test x$enable_help_screen = xyes)
  
  dnl Optional - curses getmouse support
  
similarity index 86%
rename from media-sound/ncmpc/ncmpc-0.24-r1.ebuild
rename to media-sound/ncmpc/ncmpc-0.24-r2.ebuild
index 1e6e9f90e66f8953ac3609029ac7a3394a4cfa35..533e1df3a8013869db9c87ad40c04c7ff6b1610c 100644 (file)
@@ -16,9 +16,8 @@ IUSE="artist-screen chat-screen colors debug +help-screen key-screen lirc lyrics
 
 RDEPEND=">=dev-libs/glib-2.12:2
        >=media-libs/libmpdclient-2.3
-       sys-libs/ncurses
-       lirc? ( app-misc/lirc )
-       nls? ( sys-libs/ncurses[unicode] )"
+       sys-libs/ncurses[unicode]
+       lirc? ( app-misc/lirc )"
 DEPEND="${RDEPEND}
        app-arch/xz-utils
        virtual/pkgconfig"
@@ -26,7 +25,9 @@ DEPEND="${RDEPEND}
 DOCS=( AUTHORS NEWS README doc/config.sample doc/keys.sample )
 
 src_prepare() {
-       epatch "${FILESDIR}"/${PN}-0.24-tinfo.patch
+       # default ax_with_curses.m4 produces automagic dependency on ncursesw
+       # also, ncursesw is required for colors (bug #554245), so we force it here
+       epatch "${FILESDIR}"/${PN}-0.24-tinfo2.patch
 
        cp "${FILESDIR}"/ax_require_defined.m4 m4/ || die