diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-06-08 20:25:19 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-06-08 20:25:19 +0000 |
commit | 09e73bbda100b4b49d93912b95c62083c6c17156 (patch) | |
tree | 53439ccc5837477279ea20fd75691e1c7c9102be /games-server | |
parent | re-add faad2 fix because faad2 backed the fix out. (diff) | |
download | gentoo-2-09e73bbda100b4b49d93912b95c62083c6c17156.tar.gz gentoo-2-09e73bbda100b4b49d93912b95c62083c6c17156.tar.bz2 gentoo-2-09e73bbda100b4b49d93912b95c62083c6c17156.zip |
Initial import. Ebuild by Donald R. Gray Jr <donaldgray@dslextreme.com>. Closing bug #53123.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'games-server')
6 files changed, 120 insertions, 0 deletions
diff --git a/games-server/armagetronad-ded/ChangeLog b/games-server/armagetronad-ded/ChangeLog new file mode 100644 index 000000000000..c97f8c6d30c7 --- /dev/null +++ b/games-server/armagetronad-ded/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for games-server/armagetronad-ded +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-server/armagetronad-ded/ChangeLog,v 1.1 2005/06/08 20:25:19 wolf31o2 Exp $ + +*armagetronad-ded-0.2.7.1 (08 Jun 2005) + + 08 Jun 2005; Chris Gianelloni <wolf31o2@gentoo.org> + +files/armagetronad-ded, +metadata.xml, +armagetronad-ded-0.2.7.1.ebuild: + Initial import. Ebuild by Donald R. Gray Jr <donaldgray@dslextreme.com>. + Closing bug #53123. + diff --git a/games-server/armagetronad-ded/Manifest b/games-server/armagetronad-ded/Manifest new file mode 100644 index 000000000000..fd568f6ab9f9 --- /dev/null +++ b/games-server/armagetronad-ded/Manifest @@ -0,0 +1,3 @@ +MD5 a5a881777e4eeeeae72f82ba70bbef86 armagetronad-ded-0.2.7.1.ebuild 1299 +MD5 37312a765833708af1d1712bc4fad0ac files/armagetronad-ded 1340 +MD5 1d33657a8698c73d7340da366adf795f files/digest-armagetronad-ded-0.2.7.1 74 diff --git a/games-server/armagetronad-ded/armagetronad-ded-0.2.7.1.ebuild b/games-server/armagetronad-ded/armagetronad-ded-0.2.7.1.ebuild new file mode 100644 index 000000000000..86bc66dd28e8 --- /dev/null +++ b/games-server/armagetronad-ded/armagetronad-ded-0.2.7.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-server/armagetronad-ded/armagetronad-ded-0.2.7.1.ebuild,v 1.1 2005/06/08 20:25:19 wolf31o2 Exp $ + + +inherit flag-o-matic eutils games + +DESCRIPTION="3d tron lightcycles, just like the movie" +HOMEPAGE="http://armagetronad.sourceforge.net/" +SRC_URI="mirror://sourceforge/armagetronad/armagetronad-0.2.7.1.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="" + +S="${WORKDIR}/armagetronad-${PV}" + +RDEPEND="virtual/x11 + virtual/opengl + media-libs/libsdl + media-libs/sdl-image + sys-libs/zlib + media-libs/libpng" +DEPEND="${RDEPEND} + app-arch/unzip" + +src_compile() { + filter-flags -fno-exceptions + egamesconf --disable-glout || die "egamesconf failed" + emake || die "emake failed" + make documentation || die "make doc failed" +} + +src_install() { + dodoc COPYING.txt + dohtml doc/*.html + docinto html/net + dohtml doc/net/*.html + dodir "${GAMES_LIBDIR}/${PN}" "${GAMES_DATADIR}/${PN}" "${GAMES_SYSCONFDIR}/${PN}" + insinto "${GAMES_LIBDIR}/${PN}" + doins src/tron/${PN}icated src/network/armagetronad-* || die "copying files" + insinto "${GAMES_DATADIR}/${PN}" + doins -r log language || die "copying files" + insinto "${GAMES_SYSCONFDIR}/${PN}" + doins -r config/* || die "copying files" + newgamesbin "${FILESDIR}/${PN}" ${PN} \ + || die "Error: newgamesbin failed" + prepgamesdirs +} diff --git a/games-server/armagetronad-ded/files/armagetronad-ded b/games-server/armagetronad-ded/files/armagetronad-ded new file mode 100644 index 000000000000..2f3c44763a6c --- /dev/null +++ b/games-server/armagetronad-ded/files/armagetronad-ded @@ -0,0 +1,50 @@ +#!/bin/bash +# +# starts Armagetron Advanced Dedicated Server from the installation directory + + GAME_CONFDIR=/etc/games/armagetronad-ded + GAME_LIBDIR=/usr/games/lib/armagetronad-ded + GAME_DATADIR=/usr/share/games/armagetronad-ded + USER_DATADIR=/etc/games/armagetronad-ded + CONFIGDIR=/etc/games/armagetronad-ded + + NO=$'\x1b[0;0m' + RD=$'\x1b[31;01m' + GR=$'\x1b[32;01m' + YL=$'\x1b[33;01m' + + echo "${GR} *${NO} Checking Configuration." + if test ! -r $HOME/.armagetronad-ded ; then + mkdir $HOME/.armagetronad-ded + + if test -r $HOME/.ArmageTronrc ; then + echo "${YL} *${NO} Migrating very old configuration." + cp $HOME/.ArmageTronrc $HOME/.armagetronad-ded/user.cfg + fi +fi + if test ! -r $HOME/.armagetronad-ded/var ; then + files=$( ls $HOME/.armagetronad-ded ) + mkdir $HOME/.armagetronad-ded/var + echo "${GR} *${NO} Testing configuration." + test "$files" != "" && mv $files $HOME/.armagetronad-ded/var + fi + + echo "${GR} *${NO} Done." + + + if test "x$1" = "x-h" ; then + echo "${RD} *${NO} Please uninstall Armagetron Advanced via Portage." +fi + + if test "x$1" = "x--uninstall" ; then + echo "${RD} *${NO} Please uninstall Armagetron Advanced via Portage." + else + + while true; do + + $GAME_LIBDIR/armagetronad-dedicated \ + --datadir $GAME_DATADIR \ + --configdir $GAME_CONFDIR \ + --userdatadir $HOME/.armagetronad-ded +done +fi
\ No newline at end of file diff --git a/games-server/armagetronad-ded/files/digest-armagetronad-ded-0.2.7.1 b/games-server/armagetronad-ded/files/digest-armagetronad-ded-0.2.7.1 new file mode 100644 index 000000000000..34e82f21dde2 --- /dev/null +++ b/games-server/armagetronad-ded/files/digest-armagetronad-ded-0.2.7.1 @@ -0,0 +1 @@ +MD5 cc29c2fd7de5699173de84d7cde57b97 armagetronad-0.2.7.1.tar.bz2 1243746 diff --git a/games-server/armagetronad-ded/metadata.xml b/games-server/armagetronad-ded/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-server/armagetronad-ded/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> |