summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-11 12:22:49 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-11 12:22:49 +0000
commit0a66313722aa914ebab9c10951f6eebfec37cedc (patch)
tree99b4f3ae29b1a59ea05a34efa7cb32a0265c9e82 /games-simulation/lincity
parentfix dvdr support (diff)
downloadhistorical-0a66313722aa914ebab9c10951f6eebfec37cedc.tar.gz
historical-0a66313722aa914ebab9c10951f6eebfec37cedc.tar.bz2
historical-0a66313722aa914ebab9c10951f6eebfec37cedc.zip
simulation type games
Diffstat (limited to 'games-simulation/lincity')
-rw-r--r--games-simulation/lincity/ChangeLog36
-rw-r--r--games-simulation/lincity/Manifest6
-rw-r--r--games-simulation/lincity/files/digest-lincity-1.11a-r11
-rw-r--r--games-simulation/lincity/files/digest-lincity-1.12_pre531
-rw-r--r--games-simulation/lincity/files/lincity-1.11a-gcc3.patch56
-rw-r--r--games-simulation/lincity/lincity-1.11a-r1.ebuild48
-rw-r--r--games-simulation/lincity/lincity-1.12_pre53.ebuild39
7 files changed, 187 insertions, 0 deletions
diff --git a/games-simulation/lincity/ChangeLog b/games-simulation/lincity/ChangeLog
new file mode 100644
index 000000000000..bb18915bb52f
--- /dev/null
+++ b/games-simulation/lincity/ChangeLog
@@ -0,0 +1,36 @@
+# ChangeLog for app-games/lincity
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/lincity/ChangeLog,v 1.1 2003/09/11 12:22:49 vapier Exp $
+
+*lincity-1.12_pre53 (13 Jul 2003)
+
+ 13 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
+ Version bumped to update to the new install process and fix
+ the HOMEPAGE for #17434.
+
+*lincity-1.11a-r1 (5 May 2002)
+
+ 01 Nov 2002; Jon Nall <nall@gentoo.org> lincity-1.11a-r1.ebuild :
+ added PPC to KEYWORDS
+
+ 01 Oct 2002; Mike Frysinger <vapier@gentoo.org> lincity-1.11a-r1.ebuild lincity-1.11a-gcc3.patch lincity-1.11a-Makefile.diff :
+ Deleted old patch and made a new one to address same issues and more ... #8448
+
+ 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> lincity-1.11a-r1.ebuild :
+ Added LICENSE, KEYWORDS.
+
+ 5 May 2002; B.Verwilst <verwilst@gentoo.org> ChangeLog :
+
+ Fixed bug #2194, now installs fine with sandbox.
+ when X in use, links xlincity to lincity, to keep standard startup
+ method
+
+*lincity-1.11a (1 Feb 2002)
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/games-simulation/lincity/Manifest b/games-simulation/lincity/Manifest
new file mode 100644
index 000000000000..d2a30e243284
--- /dev/null
+++ b/games-simulation/lincity/Manifest
@@ -0,0 +1,6 @@
+MD5 5a79891a4ecd6276a5f69f2831da8f6c ChangeLog 1494
+MD5 882aaa6a1493241d542ee983fb9fec4c lincity-1.11a-r1.ebuild 1438
+MD5 c155970d7c81ba45daed72e535f66552 lincity-1.12_pre53.ebuild 901
+MD5 9d479577214df05bbb7b09489252c02a files/digest-lincity-1.11a-r1 71
+MD5 f0c7afe8a3ed9c700239695a0388abf7 files/lincity-1.11a-gcc3.patch 1863
+MD5 e26860a82f7b2aaa40ebff37d2ba5bfa files/digest-lincity-1.12_pre53 69
diff --git a/games-simulation/lincity/files/digest-lincity-1.11a-r1 b/games-simulation/lincity/files/digest-lincity-1.11a-r1
new file mode 100644
index 000000000000..3b0c546e57b8
--- /dev/null
+++ b/games-simulation/lincity/files/digest-lincity-1.11a-r1
@@ -0,0 +1 @@
+MD5 61d562da06a2c10bc24a4918f2fb27d7 lincity-1.11-patch1.tar.gz 475307
diff --git a/games-simulation/lincity/files/digest-lincity-1.12_pre53 b/games-simulation/lincity/files/digest-lincity-1.12_pre53
new file mode 100644
index 000000000000..b4bce128e790
--- /dev/null
+++ b/games-simulation/lincity/files/digest-lincity-1.12_pre53
@@ -0,0 +1 @@
+MD5 6afd41d06c919f3f74250f6caf2c7a91 lincity-1.12pre53.tar.gz 770453
diff --git a/games-simulation/lincity/files/lincity-1.11a-gcc3.patch b/games-simulation/lincity/files/lincity-1.11a-gcc3.patch
new file mode 100644
index 000000000000..1843c0212278
--- /dev/null
+++ b/games-simulation/lincity/files/lincity-1.11a-gcc3.patch
@@ -0,0 +1,56 @@
+--- ./Imakefile.orig 2002-10-01 00:55:45.000000000 -0400
++++ ./Imakefile 2002-10-01 00:57:59.000000000 -0400
+@@ -8,7 +8,7 @@
+
+ LOCAL_LIBRARIES = $(XLIB)
+ DEPLIBS = $(DEPXLIB)
+- SYS_LIBRARIES = -lm
++ SYS_LIBRARIES = -lm -lstdc++
+
+ SRCS = main.cxx mouse.cxx screen.cxx mps.cxx typeinit.cxx\
+ engine.cxx transport.cxx market.cxx help.cxx lcx11.cxx
+--- ./Makefile.orig 2002-10-01 00:55:45.000000000 -0400
++++ ./Makefile 2002-10-01 00:57:44.000000000 -0400
+@@ -1,19 +1,19 @@
+ # Makefile for LinCity (c) I J Peters 1995,1996.
+
+ # This is where the binaries for LinCity will be placed.
+-LC_BINDIR = /usr/local/bin
++LC_BINDIR = /usr/bin
+ # for solaris you might choose...
+ # LC_BINDIR = /opt/lcity/bin
+
+ # This is where the library/data files will be placed.
+-LC_LIBDIR = /usr/local/lib/lincity
++LC_LIBDIR = /usr/lib/lincity
+ # for solaris you might choose...
+ # LC_LIBDIR = /opt/lcity/lib
+
+ # export LC_LIBDIR
+
+ # This is where the manpage will be placed.
+-LC_MANDIR = /usr/local/man/man6
++LC_MANDIR = /usr/man/man6
+ LC_MANSUF = 6
+ # for solaris you might choose...
+ # LC_LIBDIR = /opt/lcity/man/man6
+@@ -250,7 +250,7 @@
+ $(CC) -c picedit.cxx -o xpicedit.o $(CFLAGS) -DP_X
+ imake -f XPImakefile -s XPMakefile $(LC_IMAKE_ARGS)
+ make -f XPMakefile
+- cp xpicedit /usr/local/bin
++ cp xpicedit /usr/bin
+ -mkdir -p $(LC_LIBDIR)/opening
+ cp opening/alt-8x8 $(LC_LIBDIR)/opening
+ cp colour.pal $(LC_LIBDIR)
+--- ./mouse.cxx.orig 2002-10-01 01:10:56.000000000 -0400
++++ ./mouse.cxx 2002-10-01 01:11:10.000000000 -0400
+@@ -48,7 +48,7 @@
+ cs_mouse_xmax = 640 - 1;
+ cs_mouse_ymax = 480 - 1;
+ Fgl_getbox (mox, moy, 8, 8, under_mouse_pointer);
+- mouse_seteventhandler (cs_mouse_handler);
++ mouse_seteventhandler ((void*)cs_mouse_handler);
+ }
+
+ void
diff --git a/games-simulation/lincity/lincity-1.11a-r1.ebuild b/games-simulation/lincity/lincity-1.11a-r1.ebuild
new file mode 100644
index 000000000000..750deaf677ea
--- /dev/null
+++ b/games-simulation/lincity/lincity-1.11a-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/lincity/lincity-1.11a-r1.ebuild,v 1.1 2003/09/11 12:22:49 vapier Exp $
+
+MY_P=${P/a/-patch1}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="city/country simulation game for X and Linux SVGALib"
+SRC_URI="http://www-personal.engin.umich.edu/~gsharp/${PN}/${MY_P}.tar.gz"
+HOMEPAGE="http://www.floot.demon.co.uk/lincity.html"
+
+KEYWORDS="x86 ppc"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="X svga"
+
+DEPEND="virtual/glibc
+ svga? ( media-libs/svgalib )
+ X? ( virtual/x11 )
+ || ( svga? ( ) X? ( ) virtual/x11 )"
+
+src_unpack() {
+ unpack lincity-1.11-patch1.tar.gz
+ cd ${S}
+ patch -p0 < ${FILESDIR}/lincity-1.11a-gcc3.patch
+}
+
+src_compile() {
+ # we cant do emake || die because it will always fail ... stupid man pages
+ if [ "`use X`" ] || [ -z "`use X``use svga`" ] ; then
+ emake xlincity EXTRA_OPTS="${CFLAGS}"
+ [ -x ${S}/xlincity ] || die "emake failed"
+ fi
+ if [ "`use svga`" ] ; then
+ emake lincity EXTRA_OPTS="${CFLAGS}"
+ [ -x ${S}/lincity ] || die "emake failed"
+ fi
+}
+
+src_install() {
+ make LC_BINDIR=${D}usr/bin LC_LIBDIR=${D}usr/lib/lincity \
+ LC_MANDIR={D}/usr/share/man install || die
+
+ dodoc BUGS CHANGES COPYING COPYRIGHT FAQ README README.INSTALL \
+ README.aix README.freebsd README.irix README.profiling \
+ README.sco README.win32
+
+ use svga || dosym /usr/bin/xlincity /usr/bin/lincity
+}
diff --git a/games-simulation/lincity/lincity-1.12_pre53.ebuild b/games-simulation/lincity/lincity-1.12_pre53.ebuild
new file mode 100644
index 000000000000..112033b90d5b
--- /dev/null
+++ b/games-simulation/lincity/lincity-1.12_pre53.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/lincity/lincity-1.12_pre53.ebuild,v 1.1 2003/09/11 12:22:49 vapier Exp $
+
+inherit games
+
+MY_P=${P/_}
+DESCRIPTION="city/country simulation game for X and Linux SVGALib"
+SRC_URI="mirror://sourceforge/lincity/${MY_P}.tar.gz"
+HOMEPAGE="http://lincity.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+IUSE="X svga"
+
+DEPEND="virtual/glibc
+ svga? ( media-libs/svgalib )
+ X? ( virtual/x11 )
+ || ( svga? ( ) X? ( ) virtual/x11 )"
+
+S=${WORKDIR}/${MY_P}
+
+src_compile() {
+ egamesconf \
+ --with-gzip \
+ `use_with X x` \
+ `use_with svga` \
+ || die
+ emake || die
+}
+
+src_install() {
+ make install DESTDIR=${D} || die
+ dodoc Acknowledgements CHANGES FAQ README* TODO
+ cd ${D}/${GAMES_DATADIR}
+ mv locale ${D}/usr/share/
+ prepgamesdirs
+}