summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-01-09 01:44:12 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-01-09 01:44:12 +0000
commit4cbad7dfe8c04358b1620ed0d5c9e83abe203cb9 (patch)
tree7ecaba2f2bfe242534810b507ea57598450be842 /games-board/xmille
parentinitial commit; ebuild and patch from Bruce Guenter via bug 37626 (diff)
downloadgentoo-2-4cbad7dfe8c04358b1620ed0d5c9e83abe203cb9.tar.gz
gentoo-2-4cbad7dfe8c04358b1620ed0d5c9e83abe203cb9.tar.bz2
gentoo-2-4cbad7dfe8c04358b1620ed0d5c9e83abe203cb9.zip
initial commit; ebuild and patch from Bruce Guenter via bug 37626
Diffstat (limited to 'games-board/xmille')
-rw-r--r--games-board/xmille/ChangeLog10
-rw-r--r--games-board/xmille/Manifest4
-rw-r--r--games-board/xmille/files/2.0.patch86
-rw-r--r--games-board/xmille/files/digest-xmille-2.01
-rw-r--r--games-board/xmille/metadata.xml9
-rw-r--r--games-board/xmille/xmille-2.0.ebuild34
6 files changed, 143 insertions, 1 deletions
diff --git a/games-board/xmille/ChangeLog b/games-board/xmille/ChangeLog
new file mode 100644
index 000000000000..4a5f5750c12d
--- /dev/null
+++ b/games-board/xmille/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-board/xmille
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/xmille/ChangeLog,v 1.1 2004/01/09 01:43:59 mr_bones_ Exp $
+
+*xmille-2.0 (08 Jan 2004)
+
+ 08 Jan 2004; Michael Sterrett <mr_bones_@gentoo.org> metadata.xml,
+ xmille-2.0.ebuild, files/2.0.patch:
+ initial commit; ebuild and patch from Bruce Guenter via bug 37626
+
diff --git a/games-board/xmille/Manifest b/games-board/xmille/Manifest
index ede1cb1cfe9d..11959521cfe8 100644
--- a/games-board/xmille/Manifest
+++ b/games-board/xmille/Manifest
@@ -1,3 +1,5 @@
-MD5 865b51d8d1fbab588fcbeca74b0a4884 xmille-2.0.ebuild 686
+MD5 c316a7e40db36d6ad3ff66296d7b9524 xmille-2.0.ebuild 792
+MD5 a30c9d4ce8f9629d6d7323eaab258343 metadata.xml 241
+MD5 9463cd512a18534bb98162b29c6a01f0 ChangeLog 424
MD5 4110656ac287ba70ad0808dff153218d files/digest-xmille-2.0 66
MD5 b958c2750b407b46c33dce2fc4219350 files/2.0.patch 2125
diff --git a/games-board/xmille/files/2.0.patch b/games-board/xmille/files/2.0.patch
new file mode 100644
index 000000000000..b37d40de40a1
--- /dev/null
+++ b/games-board/xmille/files/2.0.patch
@@ -0,0 +1,86 @@
+--- xmille-2.0.orig/roll.c
++++ xmille-2.0/roll.c
+@@ -7,7 +7,7 @@
+
+ # define reg register
+
+-# if (! defined ultrix && ! defined mips && ! defined vax)
++# if (! defined ultrix && ! defined mips && ! defined vax && ! defined linux && !defined __GNU__ )
+ # define MAXRAND 32767L
+
+ roll(ndie, nsides)
+--- xmille-2.0.orig/save.c
++++ xmille-2.0/save.c
+@@ -1,7 +1,8 @@
+ #include "mille.h"
+ #include <sys/types.h>
+ #include <sys/stat.h>
+-#include <sys/time.h>
++#include <time.h>
++#include <errno.h>
+ # ifdef attron
+ # include <term.h>
+ # define _tty cur_term->Nttyb
+@@ -22,7 +23,7 @@
+ * This routine saves the current game for use at a later date
+ */
+ extern int errno;
+-extern char *sys_errlist[];
++/* extern char *sys_errlist[]; */
+
+ save() {
+
+@@ -50,7 +51,8 @@
+ return FALSE;
+
+ if ((outf = creat(buf, 0644)) < 0) {
+- error(sys_errlist[errno]);
++ /* error(sys_errlist[errno]); */
++ strerror(errno);
+ return FALSE;
+ }
+ Error (buf);
+--- xmille-2.0.orig/ui.c
++++ xmille-2.0/ui.c
+@@ -399,6 +399,10 @@
+ Colormap def_cm;
+
+ dpy = XOpenDisplay ((char *) 0);
++ if (!dpy) {
++ printf("Error: Can't open X Display\n");
++ exit(1);
++ }
+ screen = DefaultScreen(dpy);
+ def_cm = DefaultColormap(dpy, screen);
+
+--- xmille-2.0.orig/CHANGES
++++ xmille-2.0/CHANGES
+@@ -42,3 +42,9 @@
+ Added comments to Imakefile about fonts.
+ Packaged for net submittal.
+ Updated version number (easier for bug reports).
++
++
++2001-03-29 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
++
++ * save.c: Include <time.h> to get struct tm, not <sys/time.h>.
++
+--- xmille-2.0.orig/Imakefile
++++ xmille-2.0/Imakefile
+@@ -5,7 +5,7 @@
+ /**/# Dana Chee
+ /**/#
+ #define IHaveSubdirs
+-#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS) DEFINES=$(DEFINES)'
++#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS) $(DEFINES)'
+
+ HEADERS = ui.h
+ SRCS= comp.c end.c extern.c init.c mille.c misc.c move.c print.c \
+@@ -17,6 +17,7 @@
+ LOCAL_LIBRARIES = control/libcontrol.a cards/libcardlib.a $(XLIB)
+ SYS_LIBRARIES = -lm
+ SUBDIRS = control cards
++BINDIR = /usr/games
+
+ /**/#
+ /**/# This looks better with the timrom12 and timrom12b fonts supplied,
diff --git a/games-board/xmille/files/digest-xmille-2.0 b/games-board/xmille/files/digest-xmille-2.0
new file mode 100644
index 000000000000..3635e5ea6e29
--- /dev/null
+++ b/games-board/xmille/files/digest-xmille-2.0
@@ -0,0 +1 @@
+MD5 406a267f7a972b626c47fda92297fad3 xmille_2.0.orig.tar.gz 68178
diff --git a/games-board/xmille/metadata.xml b/games-board/xmille/metadata.xml
new file mode 100644
index 000000000000..1cef6e243af3
--- /dev/null
+++ b/games-board/xmille/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<maintainer>
+<email>games@gentoo.org</email>
+<name>Games Team</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-board/xmille/xmille-2.0.ebuild b/games-board/xmille/xmille-2.0.ebuild
new file mode 100644
index 000000000000..1328f1ad74c4
--- /dev/null
+++ b/games-board/xmille/xmille-2.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/xmille/xmille-2.0.ebuild,v 1.1 2004/01/09 01:43:59 mr_bones_ Exp $
+
+inherit eutils games
+
+S="${WORKDIR}/${PN}-${PV}.orig"
+DESCRIPTION="Mille Bournes card game"
+SRC_URI="http://ftp.debian.org/debian/pool/main/x/xmille/${PN}_${PV}.orig.tar.gz"
+
+KEYWORDS="x86"
+LICENSE="public-domain"
+SLOT="0"
+IUSE=""
+
+DEPEND="virtual/x11"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch "${FILESDIR}/${PV}.patch"
+}
+
+src_compile() {
+ xmkmf
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ dogamesbin xmille || die "dogamesbin failed"
+ dodoc CHANGES README || die "dodoc failed"
+ newman xmille.man xmille.6 || die "newman failed"
+ prepgamesdirs
+}