# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games distutils DESCRIPTION="A graphical and text-based sudoku game" SRC_URI="mirror://sourceforge/pythonsudoku/${P}.zip" HOMEPAGE="http://pythonsudoku.sourceforge.net/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="doc" RDEPEND="dev-python/pygtk dev-python/reportlab dev-python/imaging" src_unpack() { unpack ${A} cd "${S}" cp "${FILESDIR}"/setup.py setup.py } src_install() { newgamesbin pythonsudoku.py pythonsudoku || die "newgamesbin failed" distutils_src_install if use doc; then dohtml -r doc/* fi prepgamesdirs }