Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148450 - INFON Battle Arena (new ebuild)
Summary: INFON Battle Arena (new ebuild)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://infon.dividuum.de
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-09-20 20:05 UTC by fabian
Modified: 2018-12-03 12:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to make infon more gentoo-friendly (infon-0.65-gentoo.patch.bz2,1.35 KB, patch)
2006-09-20 20:06 UTC, fabian
Details | Diff
fixes some weird locales issue (ebuild.patch,263 bytes, patch)
2006-09-21 05:34 UTC, fabian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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