summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Strogin <stefan.strogin@gmail.com>2019-04-04 04:48:42 +0300
committerMichał Górny <mgorny@gentoo.org>2019-04-05 07:13:20 +0200
commitf3045e7b24b7c267ad7152c2b964f20a59beb88d (patch)
treec8c591519c50e774acbe7f55805cb0ba5406ddbd
parentsys-devel/llvm: Backport dangling symlink failure fix (diff)
downloadgentoo-f3045e7b24b7c267ad7152c2b964f20a59beb88d.tar.gz
gentoo-f3045e7b24b7c267ad7152c2b964f20a59beb88d.tar.bz2
gentoo-f3045e7b24b7c267ad7152c2b964f20a59beb88d.zip
games-roguelike/angband: fix build with sys-libs/ncurses[tinfo]
Closes: https://bugs.gentoo.org/679942 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--games-roguelike/angband/angband-4.1.3.ebuild2
-rw-r--r--games-roguelike/angband/files/angband-4.1.3-tinfo.patch29
2 files changed, 31 insertions, 0 deletions
diff --git a/games-roguelike/angband/angband-4.1.3.ebuild b/games-roguelike/angband/angband-4.1.3.ebuild
index 8a55a7470633..29f6be451fb6 100644
--- a/games-roguelike/angband/angband-4.1.3.ebuild
+++ b/games-roguelike/angband/angband-4.1.3.ebuild
@@ -37,6 +37,8 @@ DEPEND="${RDEPEND}"
BDEPEND="dev-python/docutils
virtual/pkgconfig"
+PATCHES=( "${FILESDIR}"/${P}-tinfo.patch )
+
src_prepare() {
default
diff --git a/games-roguelike/angband/files/angband-4.1.3-tinfo.patch b/games-roguelike/angband/files/angband-4.1.3-tinfo.patch
new file mode 100644
index 000000000000..8a1f487e6f6d
--- /dev/null
+++ b/games-roguelike/angband/files/angband-4.1.3-tinfo.patch
@@ -0,0 +1,29 @@
+From de53f9644323af0ff084bc82ef17b26aa6db250e Mon Sep 17 00:00:00 2001
+From: Stefan Strogin <stefan.strogin@gmail.com>
+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 <stefan.strogin@gmail.com>
+---
+ 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
+