summaryrefslogtreecommitdiff
path: root/games-board/xgammon
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-board/xgammon
reinit the tree, so we can have metadata
Diffstat (limited to 'games-board/xgammon')
-rw-r--r--games-board/xgammon/Manifest9
-rw-r--r--games-board/xgammon/files/gcc33.patch59
-rw-r--r--games-board/xgammon/files/xgammon-0.98-broken.patch15
-rw-r--r--games-board/xgammon/files/xgammon-0.98-config.patch23
-rw-r--r--games-board/xgammon/metadata.xml8
-rw-r--r--games-board/xgammon/xgammon-0.98-r1.ebuild44
-rw-r--r--games-board/xgammon/xgammon-0.98.ebuild46
7 files changed, 204 insertions, 0 deletions
diff --git a/games-board/xgammon/Manifest b/games-board/xgammon/Manifest
new file mode 100644
index 000000000000..82bd71cdc900
--- /dev/null
+++ b/games-board/xgammon/Manifest
@@ -0,0 +1,9 @@
+AUX gcc33.patch 3671 SHA256 7412a2983cd9eb4d34357b090937636341a7cff9ccbd3f48583fc33415bc180f SHA512 afebed554856cceddda89a85edc2c8fb327718226a6306273ed1dc74c8809f08cc2a5c510d8af7653f0c2d7713689a693aa586d23ce72ac39378d71fe9821093 WHIRLPOOL 81825dcc4411ea92cad0d5ddf329aa0bb465580aafdfaed4929aae9fb14a29345bcb91f9601ed055d5a8c59ffa511bf4d46abe08cdc324b432a06b7ece7c6ddd
+AUX xgammon-0.98-broken.patch 258 SHA256 7332a368d044d934c2292d83560e1e7cf458206c357fb7e2d5ce5ee5132ffbf1 SHA512 602027d7e3e786932b1452a86f1ab530b8ac7651296b4d78fb466c0d083ecdc5b171af6f18632322c519cc56a018276de1c33f419b04a1d34988d7a6a85f7887 WHIRLPOOL d9d0642a9be140f715c9f8ff8927c4aa6e15f4065e68b5e0593a5d0dd1e54f2e8384895dd3d26a75c09ea22505098beffb6063e95f2cac2540086b442ae007b3
+AUX xgammon-0.98-config.patch 799 SHA256 331a779d82973a5c4251889f64941e2b4c4283d2b498730b2aeb2fc06834f567 SHA512 e65dfcc1d12c91fff7cb868b69b28df775c602455a359cb05f33642168c2daf764a410d8180b47bde4bf216dd3cdfc1a5748c85e6a193aa67b7ca2f23648e8a9 WHIRLPOOL 86f2ca2b932bc12d690f2e47834b71cfc5036c6aa56df4bab5f2c4fe3f5a07169030af67d6c6a5a745f0947777cbdf30935b2641b76202f93bb74d143c22720e
+DIST xgammon-0.98a.tar.gz 76415 SHA256 c11d4efa7c6d9755b1d7bca8afc6a41058a92f5935ad8e08b6e6375954d453fc SHA512 1176146d7cf4d5cbf47e911190de329d87650084044d1a2e5a53ed367d2b90ec63c0e906946c4523c2fb21b68df8b86cf0567527a91058e8db66a76086a02092 WHIRLPOOL 776a3a4efc020e3a9420b63e58d32fd44dcdb8a525f153d65806bbee336971511ac08e47fd30dbcb133bb71c5d1faf32f76a874bd0d029dfbfe7df70f2b89fcb
+EBUILD xgammon-0.98-r1.ebuild 949 SHA256 877bda462094f83d9b94ebe21ae6055e6573014cd5936f9fa62b696676913261 SHA512 a6dc0bec5ba59b94d0649bfdf74ed7cc8e4875104b6cfdcde12c11b7500460305aff3889d8ca3cdd0a4a31ace46b92b3b17b73ce554cb7f6b352854377a3d5ad WHIRLPOOL 157862447343c9fe3a9a1bd5f1c7a59dda77e531e3e94c5f12316799f30d728416f9465ee555e2f87b4a28474c832b0133c49f15659e255a4fc8b51ff2ef248e
+EBUILD xgammon-0.98.ebuild 996 SHA256 20dd458a42a13d3098b22450c45e68a3ffdeae5ed237f54e8c5f0a0567687daf SHA512 150fa87074430455591e34169dd86224a3cb1274730bae7d0dd5a5cfa2b86d762c5700bd1828bbc23c18479e556038cbf416de4e7495e3d34deedf985c2773a3 WHIRLPOOL 69654a2c84cb003140a22a9cdf15c4203d732b87aa7a52bcf73daa0fc250f8cb56216c745742e38a3e42f4bbe960c7ab8e410acad973a78ce42d7fcf16bacc23
+MISC ChangeLog 2857 SHA256 29574ac36e8b101b1b71278f8e94a1158a76b796b55d841967065cb3d26ddb52 SHA512 bda92f5269b355c33ee984d97d7ab594a7e8416ae23e2cd1b4790bf43238faa2a3147368ea0639cd6056071ee5c10b18c9e3344b4f98381ad987b213caa876a1 WHIRLPOOL 58c2888c81914d687d8aa8bf75fe9a375a9745c0c03ac564aae8b8000ad3399709c0853dfeb31fa89aa2f43164c115aba72a9cc8a070d6739c45da193ad2fd44
+MISC ChangeLog-2015 2250 SHA256 aa8c4f7299ac1d2cb7d5736ed1a51150d8421403acf684169a35abfc03bec123 SHA512 613df9e239c09b937b85f583bc36de603702c1acc6a3890ef61a970a88dc5e314e37cf153c6d40e52ec50de7e8cad5d4810a4dd93c227d9fb2fcf67303349879 WHIRLPOOL 8322966ff6af54b5826324ee8c73979cef0dce48418c648c36cd0c993f0bbea7d2fe775c0509b5e3a723029d7d8714ce6ea49689715ab57289b19b17b0c29990
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-board/xgammon/files/gcc33.patch b/games-board/xgammon/files/gcc33.patch
new file mode 100644
index 000000000000..82dcadd990c7
--- /dev/null
+++ b/games-board/xgammon/files/gcc33.patch
@@ -0,0 +1,59 @@
+--- a/xgammon.c 2004-05-07 14:44:07.000000000 -0700
++++ b/xgammon.c 2004-05-07 14:45:52.000000000 -0700
+@@ -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]);
diff --git a/games-board/xgammon/files/xgammon-0.98-broken.patch b/games-board/xgammon/files/xgammon-0.98-broken.patch
new file mode 100644
index 000000000000..e94afa0792a1
--- /dev/null
+++ b/games-board/xgammon/files/xgammon-0.98-broken.patch
@@ -0,0 +1,15 @@
+--- xgammon/lib/db.c Sat Jan 6 12:14:12 2001
++++ xgammon/lib/db.c Sat Jan 6 12:13:56 2001
+@@ -259,10 +259,11 @@
+ close(fid);
+ }
+
+-void main()
++int main()
+ {
+ set_binom();
+ set_naufm();
+ set_offset();
+ set_V_Werte();
++ return(0);
+ }
diff --git a/games-board/xgammon/files/xgammon-0.98-config.patch b/games-board/xgammon/files/xgammon-0.98-config.patch
new file mode 100644
index 000000000000..1cedd03de3dd
--- /dev/null
+++ b/games-board/xgammon/files/xgammon-0.98-config.patch
@@ -0,0 +1,23 @@
+--- xgammon-0.98/xgammon.ad Tue Aug 29 01:35:39 1995
++++ xgammon-0.98/xgammon.ad Wed Aug 12 18:22:25 1998
+@@ -67,4 +67,4 @@
+ xgammon.buttonmove: false
+ xgammon.stonesteps: 5
+ xgammon.delaytime: 5
+-xgammon.database: lib/xgammon.db
++xgammon.database: /usr/lib/X11/xgammon/xgammon.db
+--- xgammon-0.98/Imakefile Wed Aug 23 15:26:39 1995
++++ xgammon-0.98/Imakefile Wed Aug 12 18:42:55 1998
+@@ -12,9 +12,9 @@
+
+ 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
diff --git a/games-board/xgammon/metadata.xml b/games-board/xgammon/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-board/xgammon/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-board/xgammon/xgammon-0.98-r1.ebuild b/games-board/xgammon/xgammon-0.98-r1.ebuild
new file mode 100644
index 000000000000..d00b4f94fe5f
--- /dev/null
+++ b/games-board/xgammon/xgammon-0.98-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs eutils
+
+DESCRIPTION="very nice backgammon game for X"
+HOMEPAGE="http://fawn.unibw-hamburg.de/steuer/xgammon/xgammon.html"
+SRC_URI="http://fawn.unibw-hamburg.de/steuer/xgammon/Downloads/${P}a.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libXaw"
+DEPEND="${RDEPEND}
+ app-text/rman
+ x11-misc/imake"
+
+S=${WORKDIR}/${P}a
+
+PATCHES=(
+ "${FILESDIR}/${P}-broken.patch"
+ "${FILESDIR}/${P}-config.patch"
+ "${FILESDIR}/gcc33.patch"
+)
+
+src_configure() {
+ xmkmf || die
+}
+
+src_compile() {
+ env PATH=".:${PATH}" emake \
+ EXTRA_LDOPTIONS="${LDFLAGS}" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ CC=$(tc-getCC)
+}
+
+pkg_postinst() {
+ einfo "xgammon need helvetica fonts"
+ einfo "They can be loaded emerging media-fonts/font-adobe-100dpi"
+ einfo "or similar. Remember to restart X after loading fonts"
+}
diff --git a/games-board/xgammon/xgammon-0.98.ebuild b/games-board/xgammon/xgammon-0.98.ebuild
new file mode 100644
index 000000000000..9af77aea982a
--- /dev/null
+++ b/games-board/xgammon/xgammon-0.98.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit toolchain-funcs eutils games
+
+DESCRIPTION="very nice backgammon game for X"
+HOMEPAGE="http://fawn.unibw-hamburg.de/steuer/xgammon/xgammon.html"
+SRC_URI="http://fawn.unibw-hamburg.de/steuer/xgammon/Downloads/${P}a.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="x11-libs/libXaw"
+DEPEND="${RDEPEND}
+ app-text/rman
+ x11-misc/imake"
+
+S=${WORKDIR}/${P}a
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${P}-broken.patch" \
+ "${FILESDIR}/${P}-config.patch" \
+ "${FILESDIR}/gcc33.patch"
+}
+
+src_configure() {
+ xmkmf || die
+}
+
+src_compile() {
+ env PATH=".:${PATH}" emake \
+ EXTRA_LDOPTIONS="${LDFLAGS}" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ CC=$(tc-getCC)
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ einfo "xgammon need helvetica fonts"
+ einfo "They can be loaded emerging media-fonts/font-adobe-100dpi"
+ einfo "or similar. Remember to restart X after loading fonts"
+}