1 |
commit: 471f9fa083cb439d8aaee6e904891e98a493e8b1 |
2 |
Author: Paul Healy <lmiphay <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Sep 6 12:12:12 2020 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 6 20:22:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=471f9fa0 |
7 |
|
8 |
games-board/xgammon fix endgame database not found |
9 |
|
10 |
Change where the program looks by default for its end game db (sed |
11 |
version - thanks chewi) |
12 |
|
13 |
Without this fix, the program reports this on startup: |
14 |
|
15 |
$ xgammon |
16 |
endgame database not found |
17 |
you should create one |
18 |
|
19 |
Signed-off-by: Paul Healy <lmiphay <AT> gmail.com> |
20 |
Closes: https://github.com/gentoo/gentoo/pull/17394 |
21 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
22 |
|
23 |
.../xgammon/files/xgammon-0.98-r2-config.patch | 26 ++++++++++++ |
24 |
games-board/xgammon/xgammon-0.98-r2.ebuild | 49 ++++++++++++++++++++++ |
25 |
2 files changed, 75 insertions(+) |
26 |
|
27 |
diff --git a/games-board/xgammon/files/xgammon-0.98-r2-config.patch b/games-board/xgammon/files/xgammon-0.98-r2-config.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..8e9fc68fab2 |
30 |
--- /dev/null |
31 |
+++ b/games-board/xgammon/files/xgammon-0.98-r2-config.patch |
32 |
@@ -0,0 +1,26 @@ |
33 |
+diff --git a/Imakefile b/Imakefile |
34 |
+index 332deee..1c43ff5 100644 |
35 |
+--- a/Imakefile |
36 |
++++ b/Imakefile |
37 |
+@@ -12,9 +12,9 @@ SRCS = allow.c drawing.c load.c rollout.c \ |
38 |
+ |
39 |
+ ComplexProgramTarget(xgammon) |
40 |
+ InstallAppDefaults(XGammon) |
41 |
+-MakeDirectories(install, $(LIBDIR)/xgammon) |
42 |
+-InstallNonExec(lib/xgammon.db, $(LIBDIR)/xgammon) |
43 |
+-MANSUFFIX = 6 |
44 |
++MakeDirectories(install,$(LIBDIR)/xgammon) |
45 |
++InstallNonExec(lib/xgammon.db,$(LIBDIR)/xgammon) |
46 |
++MANSUFFIX = 1 |
47 |
+ |
48 |
+ xgammon.o: xgammon.c |
49 |
+ $(CC) $(CFLAGS) -DDATABASE=\"$(LIBDIR)/xgammon/xgammon.db\" -c xgammon.c |
50 |
+@@ -35,7 +35,7 @@ lib/xgammon.db: |
51 |
+ @echo "Database complete" |
52 |
+ |
53 |
+ XGammon.ad: xgammon.ad |
54 |
+- $(LN) xgammon.ad XGammon.ad |
55 |
++ sed -e "s:lib/xgammon.db:$(LIBDIR)/xgammon/xgammon.db:" xgammon.ad >XGammon.ad |
56 |
+ |
57 |
+ xgammon.man: xgammon.6 |
58 |
+ $(LN) xgammon.6 xgammon.man |
59 |
|
60 |
diff --git a/games-board/xgammon/xgammon-0.98-r2.ebuild b/games-board/xgammon/xgammon-0.98-r2.ebuild |
61 |
new file mode 100644 |
62 |
index 00000000000..bc9581d4f52 |
63 |
--- /dev/null |
64 |
+++ b/games-board/xgammon/xgammon-0.98-r2.ebuild |
65 |
@@ -0,0 +1,49 @@ |
66 |
+# Copyright 1999-2020 Gentoo Authors |
67 |
+# Distributed under the terms of the GNU General Public License v2 |
68 |
+ |
69 |
+EAPI=7 |
70 |
+ |
71 |
+inherit toolchain-funcs |
72 |
+ |
73 |
+DESCRIPTION="very nice backgammon game for X" |
74 |
+HOMEPAGE="http://fawn.unibw-hamburg.de/steuer/xgammon/xgammon.html" |
75 |
+SRC_URI="http://fawn.unibw-hamburg.de/steuer/xgammon/Downloads/${P}a.tar.gz" |
76 |
+ |
77 |
+LICENSE="GPL-2" |
78 |
+SLOT="0" |
79 |
+KEYWORDS="~amd64 ~x86" |
80 |
+ |
81 |
+RDEPEND=" |
82 |
+ x11-libs/libX11 |
83 |
+ x11-libs/libXaw |
84 |
+ x11-libs/libXt" |
85 |
+DEPEND="${RDEPEND}" |
86 |
+BDEPEND=" |
87 |
+ app-text/rman |
88 |
+ x11-misc/imake" |
89 |
+ |
90 |
+S="${WORKDIR}/${P}a" |
91 |
+ |
92 |
+PATCHES=( |
93 |
+ "${FILESDIR}"/${P}-broken.patch |
94 |
+ "${FILESDIR}"/${P}-r2-config.patch |
95 |
+ "${FILESDIR}"/${P}-glibc-2.32.patch |
96 |
+ "${FILESDIR}"/${P}-fno-common.patch |
97 |
+) |
98 |
+ |
99 |
+src_configure() { |
100 |
+ xmkmf || die |
101 |
+} |
102 |
+ |
103 |
+src_compile() { |
104 |
+ env PATH=".:${PATH}" emake \ |
105 |
+ EXTRA_LDOPTIONS="${LDFLAGS}" \ |
106 |
+ CDEBUGFLAGS="${CFLAGS}" \ |
107 |
+ CC="$(tc-getCC)" |
108 |
+} |
109 |
+ |
110 |
+pkg_postinst() { |
111 |
+ einfo "xgammon need helvetica fonts" |
112 |
+ einfo "They can be loaded emerging media-fonts/font-adobe-100dpi" |
113 |
+ einfo "or similar. Remember to restart X after loading fonts" |
114 |
+} |