Talk:InfonBattleArena
From 23C3 Public Wiki
[edit]
Gentoo ebuild for r139.
for those trying to install infon on gentoo, i've put together aq quick ebuild. it's a bit messy but at least has worked for me :)
# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # # $Header: $ # ebuild maintainer: kazamatzuri@informatik.uni-wuerzburg.de inherit eutils flag-o-matic games DESCRIPTION="INFON Battle Arena - Program your own autonomous ants, like corewars on stereoids" HOMEPAGE="http://infon.dividuum.de/" SRC_URI="http://infon.dividuum.de/trac/chrome/site/infon-source-r139.tgz" LICENSE="GPL" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" DEPEND=">=dev-libs/libevent-0.9 >=media-libs/sdl-image-1.2.3 media-libs/sdl-gfx media-libs/sge" pkg_setup() { games_pkg_setup } src_unpack() { #checking for necessary useflags einfo "media-libs/sge needs to be build with IMAGE support" einfo "media-libs/sdl-image needs to be build with TIFF support" #use image || die #use tiff || die unpack ${A} cd "${WORKDIR}/${PN}" #epatch "${DISTDIR}/infon-0.65-gentoo.patch.bz2" } src_compile() { cd "${WORKDIR}/${PN}" make linux-client-dist linux-server-dist } src_install() { #there is not (yet) an install target within the provided makefile #so we just do this by hand... cd "${D}" mkdir -p "usr/share/games/infon" cd "usr/share/games/infon" tar xzf "${WORKDIR}/${PN}/infond-linux-i386-rexported.tgz" tar xzf "${WORKDIR}/${PN}/infon-linux-i386-rexported.tgz" dosym /usr/share/games/infon/infon /usr/games/bin/infon dosym /usr/share/games/infon/infond /usr/games/bin/infond prepgamesdirs } pkg_postinst() { einfo "" einfo "Default settings are stored in /usr/share/games/infon/*.lua . To use own settings" einfo "copy these files to a working directory and call the game from there." einfo "The same goes for /usr/share/games/infon/level/*.lua " einfo "" }