blob: ecba2f6aa8c14c419edd20f6fb6a26dff0e94ae8 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/gemhun/gemhun-20031016.ebuild,v 1.5 2004/06/24 23:04:42 agriffis Exp $
inherit eutils flag-o-matic games
S="${WORKDIR}/GemHunters"
DESCRIPTION="A puzzle game about grouping gems of a chosen amount together"
HOMEPAGE="http://gemhun.sourceforge.net/"
SRC_URI="mirror://sourceforge/gemhun/GemHunters-src-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc"
IUSE=""
RDEPEND="dev-games/kyra
>=media-libs/sdl-mixer-1.2.1
virtual/x11"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PV}-gentoo-paths.patch
append-flags -DGENTOO_DATADIR="'\"${GAMES_DATADIR}/${PN}/\"'"
sed -i \
-e "s:-O3:${CFLAGS}:" src/makefile.unix \
|| die "sed src/makefile.unix failed"
}
src_compile() {
export SDL_VIDEODRIVER="dummy"
emake || die "emake failed"
}
src_install() {
local datadir="${GAMES_DATADIR}/${PN}"
dogamesbin unix/*/gemhun || die "dogamesbin failed"
dodir "${datadir}"
cp -r data/* "${D}/${datadir}/" || die "cp failed"
find "${D}/${datadir}" -name makefile -exec rm '{}' \;
dodoc changelog readme todo
prepgamesdirs
}
|