summaryrefslogtreecommitdiff
blob: f1e5aa1b6e1fd6c0d1ec1e0ff86ca63d989c0872 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/ssc/ssc-0.8.ebuild,v 1.3 2004/02/20 06:20:00 mr_bones_ Exp $

inherit games

DESCRIPTION="2D Geometric Space Combat"
SRC_URI="mirror://sourceforge/sscx/${P}.tar.bz2"
RESTRICT="nomirror"
HOMEPAGE="http://sscx.sourceforge.net/"

KEYWORDS="x86"
LICENSE="GPL-2"
SLOT="0"

RDEPEND="virtual/opengl
	virtual/glu
	media-libs/libsdl
	media-libs/sdl-mixer
	media-libs/freetype"

DEPEND="${RDEPEND}
	>=sys-apps/sed-4"

src_unpack() {
	unpack ${A}
	cd ${S}

	sed -i \
		-e "s:/usr/local/share/:${GAMES_DATADIR}/:" \
			src/{asteroid.cc,audio.cc,config.cc,menu.cc} || \
				die "sed src/audio.cc failed"
}

src_install () {
	egamesinstall                            || die
	dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
	prepgamesdirs
}

pkg_postinst() {
	games_pkg_postinst
	echo
	einfo "You may need to copy /usr/share/games/ssc/ssc.conf to"
	einfo "~/.ssc/ssc.conf and modify it to suit your needs before"
	einfo "the game will work on your system.  You should be able"
	einfo "to cut and paste the commands below:"
	echo
	einfo "mkdir ~/.ssc/"
	einfo "cp /usr/share/games/ssc/ssc.conf ~/.ssc/"
	echo
}