blob: f5dbb62b042efdf9dda648033b5576edef5c3b75 (
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
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/kobodeluxe/kobodeluxe-0.4_pre8.ebuild,v 1.4 2004/07/01 03:08:07 mr_bones_ Exp $
inherit games
IUSE="opengl"
DESCRIPTION="An SDL port of xkobo, a addictive space shoot-em-up"
HOMEPAGE="http://www.olofson.net/kobodl/"
KEYWORDS="x86"
LICENSE="GPL-2"
MY_P="KoboDeluxe-${PV/_/}"
S=${WORKDIR}/${MY_P}
SRC_URI="http://www.olofson.net/kobodl/download/${MY_P}.tar.gz"
RDEPEND="virtual/libc
media-libs/libsdl
media-libs/sdl-image
opengl? ( virtual/opengl )"
DEPEND="$RDEPEND
>=sys-apps/sed-4"
SLOT=0
src_unpack() {
unpack ${A}
cd ${S}
# Fix paths
sed -i \
-e 's:\$(datadir)/games/kobo-deluxe:$(datadir)/kobodeluxe:' \
-e 's:\$(prefix)/games/kobo-deluxe/scores:$(localstatedir)/kobodeluxe:' \
configure || die "sed configure failed"
sed -i \
-e 's:\$(datadir)/games/kobo-deluxe:$(datadir)/kobodeluxe:' \
data/Makefile.in || die "sed data/Makefile.in failed"
}
src_compile() {
egamesconf `use_enable opengl` || die "./configure failed"
emake || die
}
src_install () {
make install DESTDIR=${D}
dodoc ChangeLog README* TODO || die "dodoc failed"
insinto /var/games/kobodeluxe
doins 501 || die "doins failed"
prepgamesdirs
fperms 2775 /var/games/kobodeluxe
}
pkg_postinst() {
einfo "The location of the highscore files has changed. If this isn't the"
einfo "first time you've installed ${PN} and you'd like to keep the high"
einfo "scores from a previous version of ${PN}, please move all the files"
einfo "in /var/lib/games/kobodeluxe/ to /var/games/kobodeluxe/. If you"
einfo "have a /var/lib/games/kobodeluxe/ directory it may be removed."
games_pkg_postinst
}
|