summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2020-09-06 13:12:12 +0100
committerJames Le Cuirot <chewi@gentoo.org>2020-09-06 21:22:33 +0100
commit471f9fa083cb439d8aaee6e904891e98a493e8b1 (patch)
tree4b4670f906fb5ea01afb62c6eabd9a25fd40b0fd /games-board/xgammon/files
parentdev-vcs/mercurial: Stabilize 5.4.2 arm, #740684 (diff)
downloadgentoo-471f9fa083cb439d8aaee6e904891e98a493e8b1.tar.gz
gentoo-471f9fa083cb439d8aaee6e904891e98a493e8b1.tar.bz2
gentoo-471f9fa083cb439d8aaee6e904891e98a493e8b1.zip
games-board/xgammon fix endgame database not found
Change where the program looks by default for its end game db (sed version - thanks chewi) Without this fix, the program reports this on startup: $ xgammon endgame database not found you should create one Signed-off-by: Paul Healy <lmiphay@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/17394 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-board/xgammon/files')
-rw-r--r--games-board/xgammon/files/xgammon-0.98-r2-config.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/games-board/xgammon/files/xgammon-0.98-r2-config.patch b/games-board/xgammon/files/xgammon-0.98-r2-config.patch
new file mode 100644
index 000000000000..8e9fc68fab2e
--- /dev/null
+++ b/games-board/xgammon/files/xgammon-0.98-r2-config.patch
@@ -0,0 +1,26 @@
+diff --git a/Imakefile b/Imakefile
+index 332deee..1c43ff5 100644
+--- a/Imakefile
++++ b/Imakefile
+@@ -12,9 +12,9 @@ SRCS = allow.c drawing.c load.c rollout.c \
+
+ ComplexProgramTarget(xgammon)
+ InstallAppDefaults(XGammon)
+-MakeDirectories(install, $(LIBDIR)/xgammon)
+-InstallNonExec(lib/xgammon.db, $(LIBDIR)/xgammon)
+-MANSUFFIX = 6
++MakeDirectories(install,$(LIBDIR)/xgammon)
++InstallNonExec(lib/xgammon.db,$(LIBDIR)/xgammon)
++MANSUFFIX = 1
+
+ xgammon.o: xgammon.c
+ $(CC) $(CFLAGS) -DDATABASE=\"$(LIBDIR)/xgammon/xgammon.db\" -c xgammon.c
+@@ -35,7 +35,7 @@ lib/xgammon.db:
+ @echo "Database complete"
+
+ XGammon.ad: xgammon.ad
+- $(LN) xgammon.ad XGammon.ad
++ sed -e "s:lib/xgammon.db:$(LIBDIR)/xgammon/xgammon.db:" xgammon.ad >XGammon.ad
+
+ xgammon.man: xgammon.6
+ $(LN) xgammon.6 xgammon.man