blob: 3472d58157fbb1a2b466e193e91119c6601de410 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-simulation/cannonsmash/cannonsmash-0.6.5.ebuild,v 1.4 2004/06/24 23:22:03 agriffis Exp $
inherit eutils games
MY_OGG=danslatristesse2-48.ogg
DESCRIPTION="3D tabletennis game"
SRC_URI="mirror://sourceforge/cannonsmash/csmash-${PV}.tar.gz
oggvorbis? ( http://nan.p.utmc.or.jp/${MY_OGG} )"
HOMEPAGE="http://cannonsmash.sourceforge.net/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="oggvorbis nls"
DEPEND="virtual/glibc
virtual/x11
virtual/opengl
>=media-libs/libsdl-1.2.4
>=media-libs/sdl-mixer-1.2.3
>=media-libs/sdl-image-1.2.2
=x11-libs/gtk+-1.2*"
S=${WORKDIR}/csmash-${PV}
src_unpack() {
unpack csmash-${PV}.tar.gz
cd ${S}
epatch ${FILESDIR}/${PV}-loadparts.patch
if use oggvorbis ; then
cp ${DISTDIR}/${MY_OGG} ${S}/ || die "unpacking ogg"
sed -i "s:${MY_OGG}:${GAMES_DATADIR}/csmash/${MY_OGG}:" ttinc.h || die "setting ogg loc"
fi
}
src_compile() {
egamesconf \
`use_enable nls` \
--datadir=${GAMES_DATADIR_BASE} \
|| die
emake || die
}
src_install() {
egamesinstall \
datadir=${D}/${GAMES_DATADIR_BASE} \
|| die
if use oggvorbis ; then
insinto ${GAMES_DATADIR}/csmash
doins ${MY_OGG}
fi
dodoc AUTHORS CREDITS NEWS README*
prepgamesdirs
}
|