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 with Unicode support"
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"
24 built_with_use sys-libs
/ncurses unicode || die
"you need to build sys-libs/ncurses with USE=unicode"
31 epatch
"${FILESDIR}"/glktermw-0.8
.0-garglk-extensions.
patch
33 cp "${FILESDIR}"/glktermw-0.8
.0-configure.ac configure.ac || die
"cp configure.ac failed"
34 cp "${FILESDIR}"/glktermw-0.8
.0-Makefile.am Makefile.am || die
"cp Makefile.am failed"
35 sed -i -e "s,@PV@,${PV}," configure.ac || die
"sed failed"
38 rm glk.h gi_blorb.h gi_dispa.h glkstart.h || die
"rm glk headers failed"
42 emake DESTDIR
="${D}" install || die
"emake install failed"
43 dodoc readme.txt readme-orig.txt || die
"dodoc failed"
45 insinto
/etc
/glkloader.d
46 cat >"${T}"/glktermw.rc
<<-EOF
48 path = /usr/$(get_libdir)/libglktermw.so
50 doins
"${T}"/glktermw.rc || die
"doins glktermw.rc failed"