blob: f3251e0d06ceecee3d14aabca04cfd199d758bd1 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/adonthell-0.3.4a.ebuild,v 1.8 2006/11/02 23:49:40 nyhm Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit autotools eutils games
DESCRIPTION="roleplaying game engine"
HOMEPAGE="http://adonthell.linuxgames.com/"
SRC_URI="http://savannah.nongnu.org/download/adonthell/${PN}-src-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
IUSE="doc nls"
RDEPEND="dev-lang/python
>=media-libs/freetype-2
media-libs/libsdl
media-libs/libvorbis
media-libs/libogg
dev-lang/swig
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
doc? (
media-gfx/graphviz
app-doc/doxygen
)
nls? ( sys-devel/gettext )"
S=${WORKDIR}/${PN}-${PV/a/}
src_unpack() {
unpack ${A}
cd "${S}"
epatch \
"${FILESDIR}"/${PV}-configure.in.patch \
"${FILESDIR}"/${P}-gcc-41.patch \
"${FILESDIR}"/${P}-inline.patch
rm -f ac{local,include}.m4
AT_M4DIR="m4" eautoreconf
}
src_compile() {
# the fugly --with-vorbis is to work around #98689
egamesconf \
--disable-dependency-tracking \
--disable-py-debug \
--with-vorbis="${T}" \
$(use_enable nls) \
$(use_enable doc) \
|| die
touch doc/items/{footer,header}.html
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
keepdir "${GAMES_DATADIR}/${PN}/games"
dodoc AUTHORS ChangeLog FULLSCREEN.howto NEWBIE NEWS README
prepgamesdirs
}
|