From: Stefan Strogin Date: Mon, 11 Feb 2019 00:41:09 +0000 (+0200) Subject: games-roguelike/moria: fix build with sys-libs/ncurses[tinfo] X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=87873260e20e28328606357a3bf8c41eeae87dbb;p=gentoo.git games-roguelike/moria: fix build with sys-libs/ncurses[tinfo] Closes: https://bugs.gentoo.org/677672 Package-Manager: Portage-2.3.59, Repoman-2.3.12 Signed-off-by: Stefan Strogin Closes: https://github.com/gentoo/gentoo/pull/11025 Signed-off-by: James Le Cuirot --- diff --git a/games-roguelike/moria/files/moria-5.7.10-tinfo.patch b/games-roguelike/moria/files/moria-5.7.10-tinfo.patch new file mode 100644 index 000000000000..5173a7d00f4e --- /dev/null +++ b/games-roguelike/moria/files/moria-5.7.10-tinfo.patch @@ -0,0 +1,24 @@ +From aa3ebbd2eb4b4a6ab92833060c212255d90c68b4 Mon Sep 17 00:00:00 2001 +From: Stefan Strogin +Date: Mon, 11 Feb 2019 01:53:10 +0200 +Subject: [PATCH] Find NCurses library on Linux/Mac + +--- + CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 372d838..f39ebcd 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -261,6 +261,7 @@ elseif ((MSYS OR MINGW) AND NOT "$ENV{MINGW}" STREQUAL "") + set(CURSES_LIBRARIES "/$ENV{MINGW}/lib/libncurses.a") + else () + message(STATUS "NOTE: Configuring build for macOS/Linux release...") ++ set(CURSES_NEED_NCURSES TRUE) + find_package(Curses REQUIRED) + endif () + +-- +2.20.1 + diff --git a/games-roguelike/moria/moria-5.7.10.ebuild b/games-roguelike/moria/moria-5.7.10.ebuild index 77fadf27a040..999c073daa4f 100644 --- a/games-roguelike/moria/moria-5.7.10.ebuild +++ b/games-roguelike/moria/moria-5.7.10.ebuild @@ -21,7 +21,10 @@ BDEPEND="virtual/pkgconfig" S="${WORKDIR}/umoria-${PV}" -PATCHES=( "${FILESDIR}/${P}-gentoo-paths.patch" ) +PATCHES=( + "${FILESDIR}/${P}-gentoo-paths.patch" + "${FILESDIR}/${P}-tinfo.patch" +) pkg_setup(){ enewgroup gamestat 36