blob: af659ca51facc0db4a82cbd1fc6ed34ddaba0d1c (
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
|
# 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"
HOMEPAGE="http://pythonsudoku.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND="dev-python/pygtk
dev-python/reportlab
dev-python/imaging"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}/${PV}-setup_py-various_fix.patch"
sed -i -e 's#syscfg = pysdk.cfg#syscfg = /etc/games/pythonsudoku/pysdk.cfg#' \
"${S}/pythonsudoku/platform.cfg" || die "fixing configfile path failed"
}
src_install() {
newgamesbin pysdk.py pythonsudoku || die "newgamesbin failed"
distutils_src_install
dohtml -r doc/*
prepgamesdirs
insinto /etc/games/pythonsudoku
doins pysdk.cfg
}
|