summaryrefslogtreecommitdiff
blob: accf4452d09e7ed3990630d96140a8451de037e4 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/sdlvexed/sdlvexed-0.5.ebuild,v 1.3 2004/06/24 23:09:29 agriffis Exp $

inherit games

DESCRIPTION="SDL Vexed is a puzzle game written in Perl-SDL. It is a clone of the classic PalmOS game Vexed"
HOMEPAGE="http://freshmeat.net/projects/sdlvexed/"
SRC_URI="http://apcoh.org/~krzynio/${P}.tar.bz2"

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

RDEPEND="virtual/glibc
	>=dev-lang/perl-5.6.1
	>=media-libs/sdl-mixer-1.2.3
	>=dev-perl/sdl-perl-1.19.0"
DEPEND="${RDEPEND}
	>=sys-apps/sed-4"

S="${WORKDIR}/vexed"

src_unpack() {
	unpack ${A}
	cd ${S}
	mv vexed.pl sdlvexed
	sed -i \
		-e "/PREFIX=/s:\.:${GAMES_DATADIR}/${PN}:" sdlvexed \
		|| die "sed sdlvexed failed"
}


src_install() {
	dogamesbin sdlvexed || die "dogamesbin failed"
	dodir "${GAMES_DATADIR}/${PN}"
	cp -R {gfx,levelpacks} "${D}/${GAMES_DATADIR}/${PN}/" || die "cp failed"
	dodoc README
	prepgamesdirs
}