1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils flag-o-matic games
8 DESCRIPTION
="An interpreter for the Glulx Virtual Machine"
9 HOMEPAGE
="http://www.eblong.com/zarf/glulx/"
10 SRC_URI
="mirror://ifarchive/programming/glulx/interpreters/${PN}/${MY_P}.tar.gz"
14 KEYWORDS
="~amd64 ~x86"
17 RDEPEND
="dev-games/glkloader"
19 dev-games/glk-headers"
21 profile? ( =dev-lang/python-2* )"
29 epatch
"${FILESDIR}"/glulxe-0.4
.6-user-CFLAGS.
patch
30 epatch
"${FILESDIR}"/glulxe-0.5
.1-gargoyle.
patch
31 sed -i -e "s,@PV@,${PV}," unixstrt.c || die
"sed failed"
34 -e '1s,/usr/bin/python,/usr/bin/python2,' \
35 -e 's/profile-analyze\.py/glulxe-&/g' \
36 profile-analyze.py || die
"sed failed"
40 use profile
&& append-flags
-DVM_PROFILING=1
42 GLKINCLUDEDIR
=/usr
/include
/glk \
43 GLKMAKEFILE
=Make.glkloader \
48 dogamesbin glulxe || die
"dogamesbin failed"
50 newgamesbin profile-analyze.py glulxe-profile-analyze.py || die
"newgamesbin failed"
53 dodoc README || die
"dodoc failed"