Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/pinfo/files: pinfo-0.6.10-tinfo.patch
Date: Wed, 27 Feb 2013 20:20:43
Message-Id: 20130227202039.AD3612171E@flycatcher.gentoo.org
1 jer 13/02/27 20:20:39
2
3 Added: pinfo-0.6.10-tinfo.patch
4 Log:
5 Fix building against sys-libs/ncurses[-tinfo] (bug #459528).
6
7 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key A792A613)
8
9 Revision Changes Path
10 1.1 app-text/pinfo/files/pinfo-0.6.10-tinfo.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/pinfo/files/pinfo-0.6.10-tinfo.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/pinfo/files/pinfo-0.6.10-tinfo.patch?rev=1.1&content-type=text/plain
14
15 Index: pinfo-0.6.10-tinfo.patch
16 ===================================================================
17 --- a/configure.ac
18 +++ b/configure.ac
19 @@ -118,7 +118,24 @@
20
21
22 # curses
23 +PKG_CHECK_MODULES(ncursesw,ncursesw,[
24 + curses_includes="$ncursesw_CFLAGS"
25 + curses_libs="$ncursesw_LIBS"
26 + curses_h=ncurses.h
27 + stop_searching=true
28 + found_curses_h=true
29 + USE_CURSES=true],[
30 + PKG_CHECK_MODULES(ncurses,ncurses,[
31 + curses_includes="$ncurses_CFLAGS"
32 + curses_libs="$ncurses_LIBS"
33 + curses_h=ncurses.h
34 + stop_searching=true
35 + found_curses_h=true
36 + USE_CURSES=true],
37 + [])])
38 +
39 AC_CHECK_CURSES
40 +
41 if ! test "x$USE_CURSES" = "xtrue"; then
42 AC_MSG_ERROR([Curses not found. You need curses to compile pinfo])
43 fi
44 --- a/macros/curses.m4
45 +++ b/macros/curses.m4
46 @@ -175,8 +175,8 @@
47 AC_DEFUN([AC_SEARCH_CURSES_H], [
48 AC_MSG_CHECKING([location of curses.h file])
49
50 - stop_searching=false
51 - found_curses_h=false
52 +# stop_searching=false
53 +# found_curses_h=false
54
55 dnl if a particular location was specified
56 if test "x$curses_location" != "xfalse"