Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 148450

Summary: INFON Battle Arena (new ebuild)
Product: Gentoo Linux Reporter: fabian
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: CONFIRMED ---    
Severity: enhancement Keywords: EBUILD
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
URL: http://infon.dividuum.de
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to make infon more gentoo-friendly
fixes some weird locales issue

Description fabian 2006-09-20 20:05:51 UTC
# 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-r65.tgz
	http://infon.dividuum.de/trac/chrome/site/infon-0.65-gentoo.patch.bz2"

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 ""
}
Comment 1 fabian 2006-09-20 20:06:56 UTC
Created attachment 97602 [details, diff]
patch to make infon more gentoo-friendly
Comment 2 fabian 2006-09-21 05:34:29 UTC
Created attachment 97632 [details, diff]
fixes some weird locales issue

some weird locales bug, which brakes build process on nun 'en_US' systems