summaryrefslogtreecommitdiff
blob: 3462bfc28b3ea9d79d6868374b35769c8d9f683d (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/penguzzle/penguzzle-1.0.ebuild,v 1.8 2004/12/28 16:17:16 josejx Exp $

inherit games

DESCRIPTION="Tcl/Tk variant of the well-known 15-puzzle game"
HOMEPAGE="http://www.naskita.com/linux/penguzzle/penguzzle.shtml"
SRC_URI="http://www.naskita.com/linux/penguzzle/${PN}.zip"

LICENSE="penguzzle"
SLOT="0"
KEYWORDS="amd64 x86 ppc"
IUSE=""

RDEPEND="dev-tcltk/tclx"
DEPEND="${RDEPEND}
	app-arch/unzip"

S="${WORKDIR}/${PN}${PV}"

src_install() {
	insinto "${GAMES_DATADIR}/${PN}"
	doins images/*

	insinto "${GAMES_LIBDIR}/${PN}"
	doins lib/*
	dosed "s:~/puzz/images:${GAMES_DATADIR}/${PN}:" "${GAMES_LIBDIR}/${PN}/init"

	dogamesbin bin/*
	dosed "s:~/puzz/lib:${GAMES_LIBDIR}/${PN}:" "${GAMES_BINDIR}/penguzzle"

	dodoc README
	prepgamesdirs
}