summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-08-27 00:07:25 +0200
committerDavid Seifert <soap@gentoo.org>2020-08-27 00:07:25 +0200
commit171f402a800c754265908b078cd95cb72ab424e4 (patch)
treed877e45626a20f7af85ca6da503cf97d17ca6872 /games-board/xgammon/files/xgammon-0.98-broken.patch
parentgames-board/xgammon: Fix building with -fno-common (diff)
downloadgentoo-171f402a800c754265908b078cd95cb72ab424e4.tar.gz
gentoo-171f402a800c754265908b078cd95cb72ab424e4.tar.bz2
gentoo-171f402a800c754265908b078cd95cb72ab424e4.zip
games-board/xgammon: Clean up patches
Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'games-board/xgammon/files/xgammon-0.98-broken.patch')
-rw-r--r--games-board/xgammon/files/xgammon-0.98-broken.patch63
1 files changed, 61 insertions, 2 deletions
diff --git a/games-board/xgammon/files/xgammon-0.98-broken.patch b/games-board/xgammon/files/xgammon-0.98-broken.patch
index 5e334e83aec..eff5bf509e5 100644
--- a/games-board/xgammon/files/xgammon-0.98-broken.patch
+++ b/games-board/xgammon/files/xgammon-0.98-broken.patch
@@ -1,7 +1,7 @@
--- a/lib/db.c
+++ b/lib/db.c
-@@ -259,10 +259,11 @@
- close(fid);
+@@ -267,10 +267,11 @@
+ fclose(fid);
}
-void main()
@@ -13,3 +13,62 @@
set_V_Werte();
+ return(0);
}
+--- a/xgammon.c
++++ b/xgammon.c
+@@ -944,31 +944,31 @@
+ for (option=1; option<argc; option++) {
+ if (strcmp (argv[option], "-?") == 0 ||
+ strcmp (argv[option], "-help") == 0) {
+-puts ("xgammon [-otherdisplay (display)]
+- [-boardgeometry (string)]
+- [-boardcolor (color)] [-bc (color)]
+- [-darkcolor (color)] [-dc (color)]
+- [-lightcolor (color)] [-lc (color)]
+- [-barcolor (color)] [-b (color)]
+- [-whitecolor (color)] the stone color for \"white\"
+- [-blackcolor (color)] the stone color for \"black\"
+- [-doublerfont (font)] sets the (big) font for the doubler dice
+- [-doubling +doubling] sets if you wish the computer to double
+- [-h (black|white)] set the color for the human player
+- (implies a human versus computer game)
+- [-gamekind -g (hvc|cvc|hvh)] sets the gamekind to either
+- human vs. human computer vs. computer
+- or human vs. computer (default)
+- [-winat (points)] play a tournament up to \"points\" points
+- [-watchmove +wachmove] if you wish to see the flying stones
+- [-buttonmove +buttonmove] set stones by simply pressing button
+- [-autoplay +autoplay] automatic play when only one move
+- is possible
+- [-stonesteps (number)] sets the stepsize the stones fly
+- in pixel (implies +watchmove)
+- [-delaytime (tsec.)] sets the time the cumputer waits
+- after each turn (implies -watchmove)
+- [-?] [-help] print this string");
++puts ("xgammon [-otherdisplay (display)]\n"
++" [-boardgeometry (string)]\n"
++" [-boardcolor (color)] [-bc (color)]\n"
++" [-darkcolor (color)] [-dc (color)]\n"
++" [-lightcolor (color)] [-lc (color)]\n"
++" [-barcolor (color)] [-b (color)]\n"
++" [-whitecolor (color)] the stone color for \"white\"\n"
++" [-blackcolor (color)] the stone color for \"black\"\n"
++" [-doublerfont (font)] sets the (big) font for the doubler dice\n"
++" [-doubling +doubling] sets if you wish the computer to double\n"
++" [-h (black|white)] set the color for the human player\n"
++" (implies a human versus computer game)\n"
++" [-gamekind -g (hvc|cvc|hvh)] sets the gamekind to either\n"
++" human vs. human computer vs. computer\n"
++" or human vs. computer (default)\n"
++" [-winat (points)] play a tournament up to \"points\" points\n"
++" [-watchmove +wachmove] if you wish to see the flying stones\n"
++" [-buttonmove +buttonmove] set stones by simply pressing button\n"
++" [-autoplay +autoplay] automatic play when only one move\n"
++" is possible\n"
++" [-stonesteps (number)] sets the stepsize the stones fly\n"
++" in pixel (implies +watchmove)\n"
++" [-delaytime (tsec.)] sets the time the cumputer waits\n"
++" after each turn (implies -watchmove)\n"
++" [-?] [-help] print this string");
+ exit (0);
+ } else {
+ fprintf (stderr,"xgammon: unknown option %s (ignored)\n", argv[option]);