blob: 0f9ff448e4989e57fd567850d0131bb57f4b9bdd (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/moagg/moagg-0.18.ebuild,v 1.5 2008/05/10 11:09:50 vapier Exp $
inherit eutils games
DESCRIPTION="MOAGG (Mother Of All Gravity Games) combines several different gravity-type games"
HOMEPAGE="http://moagg.sourceforge.net"
SRC_URI="mirror://sourceforge/moagg/${P}-src.tar.bz2
mirror://sourceforge/moagg/${P}-data.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="ppc x86"
IUSE=""
DEPEND="media-libs/libsdl
media-libs/sdl-mixer
media-libs/sdl-gfx
>=media-libs/freetype-2.3
dev-libs/expat
=media-libs/paragui-1.0*
!>=media-libs/paragui-1.1"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gcc42.patch
epatch "${FILESDIR}"/${P}-gcc43.patch #220193
# We don't want the docs inside ${GAMES_DATADIR}/doc, so we don't
# let "make install" do the doc install.
sed -i \
-e '/^CXXFLAGS/ s/@CXXFLAGS_CONFIG@.*/@CXXFLAGS_CONFIG@/' \
-e '/^install:/s/install-doc//' Makefile.in \
|| die "sed failed"
}
src_compile() {
# Turn off all the tests as they try to access /dev/svga, thus violating
# the sandbox.
egamesconf \
--disable-sdltest \
--disable-freetypetest \
--disable-paraguitest \
--disable-testsuite || die
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog README TODO doc/*.tex
prepgamesdirs
}
|