summaryrefslogtreecommitdiff
blob: d02854d3a8812ce04987ee41aea9aa87113991f6 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils games

MY_P=${P/-/}_src

DESCRIPTION="A game in the genre of Rogue, Nethack, and Diablo. Emphasis is on tactical play."
HOMEPAGE="http://www.zincland.com/powder/"
SRC_URI="http://www.zincland.com/${PN}/release/${MY_P}.tar.gz"

LICENSE="powder_license"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="media-libs/libsdl"
RDEPEND="${DEPEND}"

S=${WORKDIR}/${MY_P}

src_unpack() {
	unpack ${A}
	epatch "${FILESDIR}/${P}-make.patch"
}

src_compile() {
	cd port/linux
	CXXFLAGS="${CXXFLAGS} -DCHANGE_WORK_DIRECTORY" emake || die
}

src_install() {
	dogamesbin port/linux/${PN} || die "dogamesbin failed"
	dodoc README.TXT CREDITS.TXT || die "dodoc failed"
	prepgamesdirs
}