1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils autotools
8 DESCRIPTION
="A stdio 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 DEPEND
=">=dev-games/glk-headers-0.7.0-r1"
26 epatch
"${FILESDIR}"/cheapglk-0.9
.0-r1-garglk-extensions.
patch
28 cp "${FILESDIR}"/cheapglk-0.9
.0-configure.ac configure.ac || die
"cp configure.ac failed"
29 cp "${FILESDIR}"/cheapglk-0.9
.0-Makefile.am Makefile.am || die
"cp Makefile.am failed"
30 sed -i -e "s,@PV@,${PV}," configure.ac || die
"sed failed"
33 rm glk.h gi_blorb.h gi_dispa.h glkstart.h || die
"rm glk headers failed"
37 emake DESTDIR
="${D}" install || die
"emake install failed"
38 dodoc notes.txt || die
"dodoc failed"
40 insinto
/etc
/glkloader.d
41 cat >"${T}"/cheapglk.rc
<<-EOF
43 path = /usr/$(get_libdir)/libcheapglk.so
45 doins
"${T}"/cheapglk.rc || die
"doins cheapglk.rc failed"