1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils autotools
8 DESCRIPTION
="An ncurses implementation of the Glk API"
9 HOMEPAGE
="http://www.eblong.com/zarf/glk/"
10 SRC_URI
="mirror://ifarchive/programming/glk/implementations/${MY_P}.tar.gz"
14 KEYWORDS
="~amd64 ~x86"
17 RDEPEND
="sys-libs/ncurses"
19 dev-games/glk-headers"
27 epatch
"${FILESDIR}"/glkterm-0.7
.8-64bit.
patch
28 epatch
"${FILESDIR}"/glkterm-0.7
.8-latin1.
patch
29 epatch
"${FILESDIR}"/glkterm-0.7
.8-garglk-extensions.
patch
31 cp "${FILESDIR}"/glkterm-0.7
.8-configure.ac configure.ac || die
"cp configure.ac failed"
32 cp "${FILESDIR}"/glkterm-0.8
.0-Makefile.am Makefile.am || die
"cp Makefile.am failed"
33 sed -i -e "s,@PV@,${PV}," configure.ac || die
"sed failed"
36 rm glk.h gi_blorb.h gi_dispa.h glkstart.h || die
"rm glk headers failed"
40 emake DESTDIR
="${D}" install || die
"emake install failed"
41 dodoc readme.txt || die
"dodoc failed"
43 insinto
/etc
/glkloader.d
44 cat >"${T}"/glkterm.rc
<<-EOF
46 path = /usr/$(get_libdir)/libglkterm.so
48 doins
"${T}"/glkterm.rc || die
"doins glkterm.rc failed"