summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-03-07 12:37:45 +0000
committerJustin Lecher <jlec@gentoo.org>2013-03-07 12:37:45 +0000
commit5817a801f8e7755d52b4953a4e0b329bebf9c1c3 (patch)
tree7b11874c97714ce72b78e44f7a3cdcd847a6559b /sys-fs/ncdu/files
parentkeyword ~amd64-linux and ~x86-linux (diff)
downloadgentoo-2-5817a801f8e7755d52b4953a4e0b329bebf9c1c3.tar.gz
gentoo-2-5817a801f8e7755d52b4953a4e0b329bebf9c1c3.tar.bz2
gentoo-2-5817a801f8e7755d52b4953a4e0b329bebf9c1c3.zip
sys-fs/ncdu: Add fix for building against ncurses[tinfo]
(Portage version: 2.2.0_alpha166/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'sys-fs/ncdu/files')
-rw-r--r--sys-fs/ncdu/files/ncdu-1.9-pkgconfig.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/sys-fs/ncdu/files/ncdu-1.9-pkgconfig.patch b/sys-fs/ncdu/files/ncdu-1.9-pkgconfig.patch
new file mode 100644
index 000000000000..0d180b34239f
--- /dev/null
+++ b/sys-fs/ncdu/files/ncdu-1.9-pkgconfig.patch
@@ -0,0 +1,39 @@
+ configure.in | 21 ++++++++++++---------
+ 1 file changed, 12 insertions(+), 9 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index f4a4a2d..1333234 100644
+--- a/configure.in
++++ b/configure.in
+@@ -36,19 +36,22 @@ AC_ARG_WITH([ncursesw],
+ AC_HELP_STRING([--with-ncursesw], [compile/link with wide-char ncurses library @<:@default@:>@]),
+ [ncurses=ncursesw])
+ if test "$ncurses" = "auto" -o "$ncurses" = "ncursesw"; then
+- AC_CHECK_LIB([ncursesw],
+- [initscr],
+- [LIBS="$LIBS -lncursesw"; ncurses=ncursesw],
+- [ncurses=ncurses])
++ PKG_CHECK_MODULES([NCURSES], [ncursesw], [LIBS="$LIBS $NCURSES_LIBS"; ncurses=ncursesw],
++ [AC_CHECK_LIB([ncursesw],
++ [initscr],
++ [LIBS="$LIBS -lncursesw"; ncurses=ncursesw],
++ [ncurses=ncurses])
++ ])
+ fi
+ if test "$ncurses" = "ncurses"; then
+- AC_CHECK_LIB([ncurses],
+- [initscr],
+- [LIBS="$LIBS -lncurses"],
+- [AC_MSG_ERROR(ncurses library is required)])
++ PKG_CHECK_MODULES([NCURSES], [ncurses], [LIBS="$LIBS $NCURSES_LIBS"],
++ [AC_CHECK_LIB([ncurses],
++ [initscr],
++ [LIBS="$LIBS -lncurses"],
++ [AC_MSG_ERROR(ncurses library is required)])
++ ])
+ fi
+
+
+
+ AC_OUTPUT([Makefile])
+-