summaryrefslogtreecommitdiff
blob: ff62c4dd7150c75e65c5631828ff516a4a5ad5c0 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-board/glchess/glchess-1.0.2.ebuild,v 1.2 2007/03/19 19:36:34 nyhm Exp $

inherit python distutils games

DESCRIPTION="A 3D OpenGL based chess game"
HOMEPAGE="http://glchess.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

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

DEPEND="!>=gnome-extra/gnome-games-2.18
	dev-python/pygtkglext
	dev-python/imaging"

DOCS="BUGS"

src_unpack() {
	unpack ${A}
	cd "${S}"
	sed -i \
		-e "/_DIR/s:/usr/share/games:${GAMES_DATADIR}:" \
		lib/glchess/gtkui/{dialogs,gtkui}.py \
		lib/glchess/scene/opengl/{builtin_models,new_models,opengl}.py \
		|| die "sed failed"
}

src_install() {
	python_version
	distutils_src_install --install-scripts=${GAMES_BINDIR}
	if use nls ; then
		emake DESTDIR="${D}" install || die "emake install failed"
	fi
	rm -f "${D}"usr/share/doc/${PF}/{MANIFEST.in,PKG-INFO}.gz
	prepgamesdirs
}