inherit eutils games DESCRIPTION="2d Platform game with level editor" HOMEPAGE="http://www.mainreactor.net/holotzcastle/en/index_en.html" SRC_URI="http://www.mainreactor.net/holotzcastle/download/${P}-src.tar.gz http://localhost/${P}.diff.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" S=${WORKDIR}/JLib-1.3.2 DEPEND="media-libs/sdl-mixer media-libs/sdl-ttf media-libs/sdl-image" src_unpack() { unpack ${A} epatch "${WORKDIR}/${P}.diff" } src_compile(){ emake || die "emake error: compilation failed!" } src_install(){ dogamesbin ${S}/Games/HolotzCastle/holotz-castle ${S}/Games/HolotzCastle/holotz-castle-editor dodir "${GAMES_DATADIR}/${PN}/game/" cp -r ${S}/Games/HolotzCastle/res/* ${D}/${GAMES_DATADIR}/${PN}/game || die "Copying of game data failed" dodir "${GAMES_DATADIR}/${PN}/editor" cp -r ${S}/Games/HolotzCastle/HCedHome/res/* ${D}/${GAMES_DATADIR}/${PN}/editor/ || die "Copying of editor data failed" doman ${S}/Games/HolotzCastle/doc/holotz-castle.6 ${S}/Games/HolotzCastle/doc/holotz-castle-editor.6 dodoc ${S}/Games/HolotzCastle/LICENSE.txt ${S}/Games/HolotzCastle/MAN*.txt prepgamesdirs }