blob: 2edf4f798a6ead68d321538e32343f9eb8904487 (
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-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
PYTHON_DEPEND="2:2.7"
inherit eutils python scons-utils versionator
MY_PV=$(replace_version_separator 3 'r')
DESCRIPTION="Flexible Isometric Free Engine, 2D"
HOMEPAGE="http://fifengine.de"
SRC_URI="http://downloads.sourceforge.net/project/${PN}/active/src/${PN}-${MY_PV}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="debug profile"
RDEPEND="dev-libs/boost
dev-python/pyyaml
media-libs/libsdl
media-libs/sdl-ttf
media-libs/sdl-image[png]
media-libs/libvorbis
media-libs/libogg
media-libs/openal
sys-libs/zlib
x11-libs/libXcursor
x11-libs/libXext
dev-games/guichan[sdl,opengl]
virtual/opengl
virtual/glu"
DEPEND="${RDEPEND}
dev-lang/swig"
S=${WORKDIR}/${PN}_${PV}
src_prepare() {
rm -r ext #delete bundled libs
epatch "${FILESDIR}/${P}-unbundle-libpng.patch"
}
# Compiles only with one thread
SCONSOPTS="-j1"
src_compile() {
escons \
--python-prefix="${D}/$(python_get_sitedir)" \
--prefix="${D}/usr" \
$(use_scons debug) \
$(use_scons debug log log) \
$(use_scons profile) \
|| die "scons failed"
}
src_install() {
escons install-python --python-prefix="${D}/$(python_get_sitedir)" \
--prefix="${D}/usr" || die "install failed"
}
|