summaryrefslogtreecommitdiff
blob: e1716e0da61af11ebffd57904393afb5268941e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2009 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"
HOMEPAGE="http://pythonsudoku.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"

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

DEPEND="app-arch/unzip"
RDEPEND="dev-python/pygtk
	dev-python/reportlab
	dev-python/imaging"

src_unpack() {
	unpack ${A}
	cd "${S}"
	sed -i \
		-e 's#\(syscfg[ \t]*\)=.*#\1= /etc/games/pythonsudoku/pysdk.cfg#' \
		-e 's#\(install-scripts[ \t]*\)=.*#\1= /usr/games/bin#' \
		pythonsudoku/platform.cfg setup.cfg || die "fixing configfile path failed"
}

src_install() {
	newgamesbin pysdk.py pysdk || die "newgamesbin failed"
	distutils_src_install

	dohtml -r doc/*
	doman doc/pysdk.6
	dodoc doc/*.txt

	prepgamesdirs

	insinto /etc/games/pythonsudoku
	doins pysdk.cfg
}