1 |
commit: 27ceecbc68bc9256aeec93babb25ea544f8c52c4 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 1 18:39:02 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 1 18:39:02 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27ceecbc |
7 |
|
8 |
games-board/xgammon: remove deprecated games eclass |
9 |
|
10 |
Also update to EAPI 6 |
11 |
|
12 |
Gentoo-Bug: https://bugs.gentoo.org/574082 |
13 |
|
14 |
Package-Manager: portage-2.3.0 |
15 |
|
16 |
games-board/xgammon/files/gcc33.patch | 4 +- |
17 |
.../xgammon/files/xgammon-0.98-broken.patch | 2 +- |
18 |
.../xgammon/files/xgammon-0.98-config.patch | 4 +- |
19 |
games-board/xgammon/xgammon-0.98-r1.ebuild | 45 ++++++++++++++++++++++ |
20 |
4 files changed, 50 insertions(+), 5 deletions(-) |
21 |
|
22 |
diff --git a/games-board/xgammon/files/gcc33.patch b/games-board/xgammon/files/gcc33.patch |
23 |
index 90b001f..82dcadd 100644 |
24 |
--- a/games-board/xgammon/files/gcc33.patch |
25 |
+++ b/games-board/xgammon/files/gcc33.patch |
26 |
@@ -1,5 +1,5 @@ |
27 |
---- xgammon.c.orig 2004-05-07 14:44:07.000000000 -0700 |
28 |
-+++ xgammon.c 2004-05-07 14:45:52.000000000 -0700 |
29 |
+--- a/xgammon.c 2004-05-07 14:44:07.000000000 -0700 |
30 |
++++ b/xgammon.c 2004-05-07 14:45:52.000000000 -0700 |
31 |
@@ -944,31 +944,31 @@ |
32 |
for (option=1; option<argc; option++) { |
33 |
if (strcmp (argv[option], "-?") == 0 || |
34 |
|
35 |
diff --git a/games-board/xgammon/files/xgammon-0.98-broken.patch b/games-board/xgammon/files/xgammon-0.98-broken.patch |
36 |
index e02ac10..e94afa0 100644 |
37 |
--- a/games-board/xgammon/files/xgammon-0.98-broken.patch |
38 |
+++ b/games-board/xgammon/files/xgammon-0.98-broken.patch |
39 |
@@ -1,4 +1,4 @@ |
40 |
---- xgammon/lib/db.c.orig Sat Jan 6 12:14:12 2001 |
41 |
+--- xgammon/lib/db.c Sat Jan 6 12:14:12 2001 |
42 |
+++ xgammon/lib/db.c Sat Jan 6 12:13:56 2001 |
43 |
@@ -259,10 +259,11 @@ |
44 |
close(fid); |
45 |
|
46 |
diff --git a/games-board/xgammon/files/xgammon-0.98-config.patch b/games-board/xgammon/files/xgammon-0.98-config.patch |
47 |
index 363d173..1cedd03 100644 |
48 |
--- a/games-board/xgammon/files/xgammon-0.98-config.patch |
49 |
+++ b/games-board/xgammon/files/xgammon-0.98-config.patch |
50 |
@@ -1,4 +1,4 @@ |
51 |
---- xgammon-0.98/xgammon.ad.rhconfig Tue Aug 29 01:35:39 1995 |
52 |
+--- xgammon-0.98/xgammon.ad Tue Aug 29 01:35:39 1995 |
53 |
+++ xgammon-0.98/xgammon.ad Wed Aug 12 18:22:25 1998 |
54 |
@@ -67,4 +67,4 @@ |
55 |
xgammon.buttonmove: false |
56 |
@@ -6,7 +6,7 @@ |
57 |
xgammon.delaytime: 5 |
58 |
-xgammon.database: lib/xgammon.db |
59 |
+xgammon.database: /usr/lib/X11/xgammon/xgammon.db |
60 |
---- xgammon-0.98/Imakefile.rhconfig Wed Aug 23 15:26:39 1995 |
61 |
+--- xgammon-0.98/Imakefile Wed Aug 23 15:26:39 1995 |
62 |
+++ xgammon-0.98/Imakefile Wed Aug 12 18:42:55 1998 |
63 |
@@ -12,9 +12,9 @@ |
64 |
|
65 |
|
66 |
diff --git a/games-board/xgammon/xgammon-0.98-r1.ebuild b/games-board/xgammon/xgammon-0.98-r1.ebuild |
67 |
new file mode 100644 |
68 |
index 0000000..1c2aeed |
69 |
--- /dev/null |
70 |
+++ b/games-board/xgammon/xgammon-0.98-r1.ebuild |
71 |
@@ -0,0 +1,45 @@ |
72 |
+# Copyright 1999-2016 Gentoo Foundation |
73 |
+# Distributed under the terms of the GNU General Public License v2 |
74 |
+# $Id$ |
75 |
+ |
76 |
+EAPI=6 |
77 |
+inherit toolchain-funcs eutils |
78 |
+ |
79 |
+DESCRIPTION="very nice backgammon game for X" |
80 |
+HOMEPAGE="http://fawn.unibw-hamburg.de/steuer/xgammon/xgammon.html" |
81 |
+SRC_URI="http://fawn.unibw-hamburg.de/steuer/xgammon/Downloads/${P}a.tar.gz" |
82 |
+ |
83 |
+LICENSE="GPL-2" |
84 |
+SLOT="0" |
85 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
86 |
+IUSE="" |
87 |
+ |
88 |
+RDEPEND="x11-libs/libXaw" |
89 |
+DEPEND="${RDEPEND} |
90 |
+ app-text/rman |
91 |
+ x11-misc/imake" |
92 |
+ |
93 |
+S=${WORKDIR}/${P}a |
94 |
+ |
95 |
+PATCHES=( |
96 |
+ "${FILESDIR}/${P}-broken.patch" |
97 |
+ "${FILESDIR}/${P}-config.patch" |
98 |
+ "${FILESDIR}/gcc33.patch" |
99 |
+) |
100 |
+ |
101 |
+src_configure() { |
102 |
+ xmkmf || die |
103 |
+} |
104 |
+ |
105 |
+src_compile() { |
106 |
+ env PATH=".:${PATH}" emake \ |
107 |
+ EXTRA_LDOPTIONS="${LDFLAGS}" \ |
108 |
+ CDEBUGFLAGS="${CFLAGS}" \ |
109 |
+ CC=$(tc-getCC) |
110 |
+} |
111 |
+ |
112 |
+pkg_postinst() { |
113 |
+ einfo "xgammon need helvetica fonts" |
114 |
+ einfo "They can be loaded emerging media-fonts/font-adobe-100dpi" |
115 |
+ einfo "or similar. Remember to restart X after loading fonts" |
116 |
+} |