# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=2

inherit games

DESCRIPTION="Server for Mednafen emulator"
HOMEPAGE="http://mednafen.sourceforge.net/"
SRC_URI="mirror://sourceforge/mednafen/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=""
DEPEND=""

S=${WORKDIR}/${PN}

src_prepare() {
	mv standard.conf standard.conf.example
	mv run.sh run.sh.example
}

src_install() {
	dodoc README *.example || die "dodoc failed"
	dogamesbin src/${PN} || die "dogamesbin failed"
	prepgamesdirs
}

pkg_postinst() {
	einfo "Example config file and run file can be found in"
	einfo "/usr/share/doc/${P}/"
}