summaryrefslogtreecommitdiff
blob: 1e23f55d96c750ed75f79ad8ec605af2c31b5486 (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
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/pachi/pachi-20031005.ebuild,v 1.1 2003/10/07 06:19:24 mr_bones_ Exp $

inherit games

S="${WORKDIR}/Pachi"
DESCRIPTION="A platforms game inspired by games like Manic Miner and Jet Set Willy"
# Upstream doesn't version their releases.
# I downloaded and re-compressed with tar -jcvf
#SRC_URI="mirror://sourceforge/dragontech/pachi_source.tgz"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
HOMEPAGE="http://dragontech.sourceforge.net/index.php?main=pachi&lang=en"

LICENSE="GPL-2"
KEYWORDS="x86"
SLOT="0"

RDEPEND=">=media-libs/libsdl-1.2
	media-libs/sdl-mixer
	sys-libs/zlib"
DEPEND="${RDEPEND}
	>=sys-apps/sed-4"

src_unpack() {
	unpack ${A}
	cd ${S}

	sed -i \
		-e "s:/var/lib/games/:${GAMES_STATEDIR}/:" configure.in || \
			die "sed configure.in failed"
}

src_install() {
	local dir="${GAMES_DATADIR}/${PN}"
	local statedir="${GAMES_STATEDIR}/${PN}/data"

	dogamesbin src/pachi
	insinto ${dir}/data
	doins data/{backs,monsters,objects_v2,rooms_v2}.dat
	insinto ${dir}/fonts
	doins fonts/*.T
	insinto ${dir}/music
	doins music/*.s?m
	insinto ${dir}/sounds
	doins sounds/*.wav
	insinto ${dir}/Tgfx
	doins Tgfx/*.{T8,bmp}
	dodoc AUTHORS ChangeLog
	insinto ${statedir}
	doins data/scores.dat
	prepgamesdirs
	fperms 660 ${statedir}/scores.dat
}