app-shells/tcsh: fix linking on some Prefix platforms
authorFabian Groffen <grobian@gentoo.org>
Sun, 21 Jul 2019 12:40:45 +0000 (14:40 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sun, 21 Jul 2019 12:40:59 +0000 (14:40 +0200)
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11

app-shells/tcsh/files/tcsh-6.21.00-use-ncurses.patch [new file with mode: 0644]
app-shells/tcsh/tcsh-6.21.00.ebuild

diff --git a/app-shells/tcsh/files/tcsh-6.21.00-use-ncurses.patch b/app-shells/tcsh/files/tcsh-6.21.00-use-ncurses.patch
new file mode 100644 (file)
index 0000000..d268474
--- /dev/null
@@ -0,0 +1,11 @@
+--- tcsh-6.21.00/configure.ac
++++ tcsh-6.21.00/configure.ac
+@@ -317,7 +317,7 @@
+ dnl Checks for libraries
+ AC_SEARCH_LIBS(crypt, crypt)
+ AC_SEARCH_LIBS(getspnam, sec)
+-AC_SEARCH_LIBS([tgetent], [termlib tinfo termcap curses ncurses], [], [
++AC_SEARCH_LIBS([tgetent], [tinfo ncurses], [], [
+    AC_MSG_ERROR([unable to find the tgetent() function])
+ ])
+ AC_SEARCH_LIBS(gethostbyname, nsl)
index c4e52506794fdfeb4d464f7c864857d2806ad7c4..3dc6aa72e6bf641cc5791fedbf3cb366d58d0c28 100644 (file)
@@ -33,6 +33,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-6.20.00-debian-dircolors.patch # bug #120792
        "${FILESDIR}"/${PN}-6.18.01-aix.patch
        "${FILESDIR}"/${PN}-6.21.00-no-nls.patch
+       "${FILESDIR}"/${PN}-6.21.00-use-ncurses.patch
 )
 
 src_prepare() {