diff options
Diffstat (limited to 'games-board/xgammon')
-rw-r--r-- | games-board/xgammon/Manifest | 6 | ||||
-rw-r--r-- | games-board/xgammon/files/gcc33.patch | 59 | ||||
-rw-r--r-- | games-board/xgammon/files/xgammon-0.98-broken.patch | 15 | ||||
-rw-r--r-- | games-board/xgammon/files/xgammon-0.98-config.patch | 23 | ||||
-rw-r--r-- | games-board/xgammon/metadata.xml | 8 | ||||
-rw-r--r-- | games-board/xgammon/xgammon-0.98-r1.ebuild | 44 |
6 files changed, 155 insertions, 0 deletions
diff --git a/games-board/xgammon/Manifest b/games-board/xgammon/Manifest new file mode 100644 index 000000000000..210027c02da0 --- /dev/null +++ b/games-board/xgammon/Manifest @@ -0,0 +1,6 @@ +AUX gcc33.patch 3671 BLAKE2B ed7136e938854cac0571e8d0025e04a4011d66d4a72cbef1ac481b8d663349485f818192c895900101647e584c6629ee5a636ed80afbcdd612b44178e68054f1 SHA512 afebed554856cceddda89a85edc2c8fb327718226a6306273ed1dc74c8809f08cc2a5c510d8af7653f0c2d7713689a693aa586d23ce72ac39378d71fe9821093 +AUX xgammon-0.98-broken.patch 258 BLAKE2B e4c6fbd2e89b5aca345928985d60ba22dec12d78a5ea1478501ed6e014b0081da82d7fd7364c5f98a03ea37ddb304772d3bedb6a86568f4906a2ab5da6fcff39 SHA512 602027d7e3e786932b1452a86f1ab530b8ac7651296b4d78fb466c0d083ecdc5b171af6f18632322c519cc56a018276de1c33f419b04a1d34988d7a6a85f7887 +AUX xgammon-0.98-config.patch 799 BLAKE2B 07ac070806ea0082f609e9b1fbc67c57eea3b6c69564f7fa7968ae1fac974fcf327f2c6a7dcd363ea0148854fd4642ca096b5f484889088082482dc53c1a1616 SHA512 e65dfcc1d12c91fff7cb868b69b28df775c602455a359cb05f33642168c2daf764a410d8180b47bde4bf216dd3cdfc1a5748c85e6a193aa67b7ca2f23648e8a9 +DIST xgammon-0.98a.tar.gz 76415 BLAKE2B 617ca76b8ebe22f753f20f94fc536008c119237e24ad1011a88780416405db95c5155759548e6719c328067387e1cbc052b0ebbbc020ad8e028f564cfcd3c3f1 SHA512 1176146d7cf4d5cbf47e911190de329d87650084044d1a2e5a53ed367d2b90ec63c0e906946c4523c2fb21b68df8b86cf0567527a91058e8db66a76086a02092 +EBUILD xgammon-0.98-r1.ebuild 949 BLAKE2B 724a28818381c487e911cacf0067700f6fe5d16a21a12421e6eec95069074b54dbdfe8c2d0d3c9a20fd9857a781002285ca5f36f743c453a5dd39aa15e669c3c SHA512 a6dc0bec5ba59b94d0649bfdf74ed7cc8e4875104b6cfdcde12c11b7500460305aff3889d8ca3cdd0a4a31ace46b92b3b17b73ce554cb7f6b352854377a3d5ad +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 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" +} |