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

inherit flag-o-matic games

levels="Afl Arcade BeOS-4ever Bombs Chaos Demons HereWeGo HighBall Holidays Hommage Kazan-1 Kevin Lattsville LinuxFun Megadoomer OpenSource Pabelo Ph33r R-World Runes Shimitar TheGauntlet Twilight Wolvie ZijosLand Zufallswelt"

DESCRIPTION="Breakout clone written with the SDL library"
HOMEPAGE="http://lgames.sourceforge.net/"
SRC_URI="mirror://sourceforge/lgames/${P}.tar.gz"
for x in $levels; do
	SRC_URI="$SRC_URI
	http://lgames.sourceforge.net/LBreakout2/levels/${x}"
done

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

DEPEND="virtual/glibc
	>=media-libs/libsdl-1.1.5
	media-libs/sdl-mixer"

src_unpack() {
	unpack ${P}.tar.gz
	for x in ${levels}; do
		cp ${DISTDIR}/${x} ${S}
	done
}

src_compile() {
	filter-flags -O?
	egamesconf \
		--with-doc-path=/usr/share/doc/${PF} \
		--datadir=${GAMES_DATADIR_BASE} \
		|| die
	make || die "make failed"
}

src_install() {
	dodir ${GAMES_STATEDIR}
	egamesinstall \
		inst_dir=${D}/${GAMES_DATADIR}/${PN} \
		hi_dir=${D}/${GAMES_STATEDIR}/ \
		doc_dir=${D}/usr/share/doc/${PF} \
			|| die

	insinto ${GAMES_DATADIR}/lbreakout2/levels
	doins ${levels}

	dodoc AUTHORS README TODO ChangeLog
	mv ${D}/usr/share/doc/${PF}/lbreakout2 ${D}/usr/share/doc/${PF}/html
	prepgamesdirs
}