Skip to content

Commit

Permalink
games-roguelike/angband: fix build with sys-libs/ncurses[tinfo]
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/679942
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Stefan Strogin <[email protected]>
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
steils authored and mgorny committed Apr 5, 2019
1 parent 4b6a6ed commit f3045e7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions games-roguelike/angband/angband-4.1.3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ DEPEND="${RDEPEND}"
BDEPEND="dev-python/docutils
virtual/pkgconfig"

PATCHES=( "${FILESDIR}"/${P}-tinfo.patch )

src_prepare() {
default

Expand Down
29 changes: 29 additions & 0 deletions games-roguelike/angband/files/angband-4.1.3-tinfo.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From de53f9644323af0ff084bc82ef17b26aa6db250e Mon Sep 17 00:00:00 2001
From: Stefan Strogin <[email protected]>
Date: Thu, 4 Apr 2019 04:24:49 +0300
Subject: [PATCH] Link against tinfow or tinfo if needed

It is needed on systems where libtinfo is separate from libncurses.
See: https://bugs.gentoo.org/679942

Upstream-Status: Submitted [https://github.com/angband/angband/pull/522]
Signed-off-by: Stefan Strogin <[email protected]>
---
configure.ac | 1 +
1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 4a671f33..04fa8cae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -244,6 +244,7 @@ if test "$enable_curses" = "yes"; then
LIBS="${LIBS} -lncursesw"
MAINFILES="${MAINFILES} \$(GCUMAINFILES)"
])
+ AC_SEARCH_LIBS([keypad], [tinfow tinfo])
fi
fi

--
2.21.0

0 comments on commit f3045e7

Please sign in to comment.