diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-09 18:10:15 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-09 18:10:15 +0000 |
commit | c22ea1f9962983b3583d00085024413d77102212 (patch) | |
tree | acd80fa59d92f27b0609b3d58893ef500cd09925 /games-fps/rott | |
parent | New version 'n cleanup (diff) | |
download | gentoo-2-c22ea1f9962983b3583d00085024413d77102212.tar.gz gentoo-2-c22ea1f9962983b3583d00085024413d77102212.tar.bz2 gentoo-2-c22ea1f9962983b3583d00085024413d77102212.zip |
games-fps uNF uNF uNF
Diffstat (limited to 'games-fps/rott')
-rw-r--r-- | games-fps/rott/ChangeLog | 8 | ||||
-rw-r--r-- | games-fps/rott/Manifest | 4 | ||||
-rw-r--r-- | games-fps/rott/files/1.0-custom-datapath.patch | 49 | ||||
-rw-r--r-- | games-fps/rott/files/digest-rott-1.0 | 2 | ||||
-rw-r--r-- | games-fps/rott/rott-1.0.ebuild | 47 |
5 files changed, 110 insertions, 0 deletions
diff --git a/games-fps/rott/ChangeLog b/games-fps/rott/ChangeLog new file mode 100644 index 000000000000..3d2dab67ba1e --- /dev/null +++ b/games-fps/rott/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-games/rott +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/rott/ChangeLog,v 1.1 2003/09/09 18:10:14 vapier Exp $ + +*rott-1.0 (19 Jun 2003) + + 19 Jun 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by me. diff --git a/games-fps/rott/Manifest b/games-fps/rott/Manifest new file mode 100644 index 000000000000..bfb660632494 --- /dev/null +++ b/games-fps/rott/Manifest @@ -0,0 +1,4 @@ +MD5 0bf19fb6df4863df701e4a1027749beb rott-1.0.ebuild 1106 +MD5 b9d4e3897be46c3c6ab65ecfdf56a616 files/digest-rott-1.0 116 +MD5 725483f80f01ab46de33d31967e3ab72 files/1.0-custom-datapath.patch 1586 +MD5 af822c2f52bec96c922990f45e4ccc9a ChangeLog 330 diff --git a/games-fps/rott/files/1.0-custom-datapath.patch b/games-fps/rott/files/1.0-custom-datapath.patch new file mode 100644 index 000000000000..90c533113b1f --- /dev/null +++ b/games-fps/rott/files/1.0-custom-datapath.patch @@ -0,0 +1,49 @@ +--- rott-1.0/rott/rt_main.c.orig 2003-06-19 23:03:34.000000000 -0400 ++++ rott-1.0/rott/rt_main.c 2003-06-19 23:04:49.000000000 -0400 +@@ -763,9 +763,9 @@ + // Normal ROTT wads + + #if (SHAREWARE) +- newargs [argnum++] = "huntbgin.wad"; ++ newargs [argnum++] = DATADIR "huntbgin.wad"; + #else +- newargs [argnum++] = "darkwar.wad"; ++ newargs [argnum++] = DATADIR "darkwar.wad"; + #endif + + // newargs [argnum++] = "credits.wad"; +@@ -785,7 +785,7 @@ + } + else + { +- newargs [argnum++] = "remote1.rts"; ++ newargs [argnum++] = DATADIR "remote1.rts"; + } + + newargs [argnum++] = NULL; +--- rott-1.0/rott/_rt_ted.h.orig 2003-06-19 23:15:26.000000000 -0400 ++++ rott-1.0/rott/_rt_ted.h 2003-06-19 23:15:54.000000000 -0400 +@@ -84,17 +84,17 @@ + #define MAXSILLYSTRINGS 32 + + #if (SHAREWARE==0) +- #define STANDARDGAMELEVELS ("DARKWAR.RTL") ++ #define STANDARDGAMELEVELS (DATADIR "DARKWAR.RTL") + #if (SUPERROTT==1) +- #define STANDARDBATTLELEVELS ("ROTTCD.RTC") ++ #define STANDARDBATTLELEVELS (DATADIR "ROTTCD.RTC") + #elif (SITELICENSE==1) +- #define STANDARDBATTLELEVELS ("ROTTSITE.RTC") ++ #define STANDARDBATTLELEVELS (DATADIR "ROTTSITE.RTC") + #else +- #define STANDARDBATTLELEVELS ("DARKWAR.RTC") ++ #define STANDARDBATTLELEVELS (DATADIR "DARKWAR.RTC") + #endif + #else +- #define STANDARDGAMELEVELS ("HUNTBGIN.RTL") +- #define STANDARDBATTLELEVELS ("HUNTBGIN.RTC") ++ #define STANDARDGAMELEVELS (DATADIR "HUNTBGIN.RTL") ++ #define STANDARDBATTLELEVELS (DATADIR "HUNTBGIN.RTC") + #endif + + diff --git a/games-fps/rott/files/digest-rott-1.0 b/games-fps/rott/files/digest-rott-1.0 new file mode 100644 index 000000000000..0465c1828282 --- /dev/null +++ b/games-fps/rott/files/digest-rott-1.0 @@ -0,0 +1,2 @@ +MD5 c1c6cbecf00f2229cf2e0053334dcfc1 rott-1.0.tar.gz 777281 +MD5 0150bf731e703cc91b8c5e21cb9402f3 swdata.zip 2889672 diff --git a/games-fps/rott/rott-1.0.ebuild b/games-fps/rott/rott-1.0.ebuild new file mode 100644 index 000000000000..4bf1c8d8f108 --- /dev/null +++ b/games-fps/rott/rott-1.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/rott/rott-1.0.ebuild,v 1.1 2003/09/09 18:10:14 vapier Exp $ + +inherit games eutils + +DESCRIPTION="Rise of the Triad for Linux!" +HOMEPAGE="http://www.icculus.org/rott/" +SRC_URI="http://www.icculus.org/rott/releases/${P}.tar.gz + http://filesingularity.timedoctor.org/swdata.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" + +DEPEND="media-libs/libsdl + media-libs/sdl-mixer" + +S=${WORKDIR}/${P}/rott + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${PV}-custom-datapath.patch +} + +src_compile() { + make clean || die + make EXTRACFLAGS="${CFLAGS} -DDATADIR=\\\"${GAMES_DATADIR}/${PN}/\\\"" || die +} + +src_install() { + dogamesbin rott + dodoc *.txt ../{README,readme.txt} + + cd ${WORKDIR} + insinto ${GAMES_DATADIR}/${PN} + doins *.dmo huntbgin.* remote1.rts + + prepgamesdirs +} + +pkg_postinst() { + einfo "The shareware version has been installed." + einfo "To play the full version, just copy the" + einfo "data files to ${GAMES_DATADIR}/${PN}/" + games_pkg_postinst +} |