summaryrefslogtreecommitdiff
blob: ca828441908e3358908260e83fbcf59fb38203d9 (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-board/xfrisk/xfrisk-1.2.ebuild,v 1.5 2006/01/29 21:28:01 joshuabaergen Exp $

inherit games

S="${WORKDIR}/XFrisk"
DESCRIPTION="The RISK board game"
SRC_URI="http://morphy.iki.fi/xfrisk/files/${P}.tar.gz"
HOMEPAGE="http://morphy.iki.fi/xfrisk/"

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

RDEPEND="|| ( x11-libs/libXmu virtual/x11 )
	x11-libs/Xaw3d"
DEPEND="${RDEPEND}
	|| ( x11-libs/libXaw virtual/x11 )
	>=sys-apps/sed-4"

src_unpack() {
	unpack ${A}
	cd ${S}
	sed -i \
		-e "s:/usr/local:${GAMES_PREFIX}:" Makefile \
			|| die "sed Makefile failed"
}

src_install() {
	make PREFIX="${D}/${GAMES_PREFIX}" install || die "make install failed"
	dodoc BUGS ChangeLog FAQ TODO || die "dodoc failed"
	prepgamesdirs
}