# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils eutils games DESCRIPTION="Pydza is a free 2d game featuring fun gameplay and challenging levels" HOMEPAGE="http://pydza.labo-linux.org" SRC_URI="http://pydza.labo-linux.org/download/${P}-src.tar.gz" LICENSE="GPL-3, CCPL-Attribution-ShareAlike-NonCommercial-3.0" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="" RDEPEND=">=dev-lang/python-2.5 >=dev-python/pygame-1.8.0" src_unpack() { cd ${WORKDIR} unpack ${A} mv ${P}-src ${P} cp ${P}/share/gfx/icon.png ${P}/${PN}.png } src_install() { insinto "${GAMES_DATADIR}"/${PN} doins -r share src || die "doins failed" games_make_wrapper ${PN} "python ./src/pydza.py" "${GAMES_DATADIR}"/${PN} doicon ${PN}.png make_desktop_entry ${PN} Pydza dodoc COPYING README README-EDITOR prepgamesdirs } pkg_postinst() { distutils_pkg_postinst games_pkg_postinst }