games-roguelike/moria: fix build with sys-libs/ncurses[tinfo]
authorStefan Strogin <stefan.strogin@gmail.com>
Mon, 11 Feb 2019 00:41:09 +0000 (02:41 +0200)
committerJames Le Cuirot <chewi@gentoo.org>
Tue, 12 Feb 2019 22:01:26 +0000 (22:01 +0000)
Closes: https://bugs.gentoo.org/677672
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/11025
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
games-roguelike/moria/files/moria-5.7.10-tinfo.patch [new file with mode: 0644]
games-roguelike/moria/moria-5.7.10.ebuild

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 (file)
index 0000000..5173a7d
--- /dev/null
@@ -0,0 +1,24 @@
+From aa3ebbd2eb4b4a6ab92833060c212255d90c68b4 Mon Sep 17 00:00:00 2001
+From: Stefan Strogin <stefan.strogin@gmail.com>
+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
+
index 77fadf27a040a7f28ce118969e12edfb57580880..999c073daa4f5bfd3be545e01c18cb1f5463de27 100644 (file)
@@ -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