# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Sean P. Kane # /space/gentoo/cvsroot/gentoo-x86/app-games/gltron/gltron-0.61-r2.ebuild,v 1.2 2002/05/08 08:36:47 spider Exp DESCRIPTION="LablGL: An Objective Caml interface to OpenGL." SRC_URI="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/${P}.tar.gz" HOMEPAGE="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html" SLOT="0" DEPEND=">=dev-lang/ocaml-3.04 >=dev-lang/tk-3.3.3 virtual/x11 virtual/opengl" RDEPEND="${DEPEND}" src_unpack() { unpack ${P}.tar.gz cd lablGL-${PV} patch < ${FILESDIR}/${P}-Makefile-gentoo.patch patch < ${FILESDIR}/${P}-Makefile.config.ex-gentoo.patch cp Makefile.config.ex Makefile.config } src_compile() { cd ${WORKDIR}/lablGL-${PV} make || die "bytecode build failed" make opt || die "native code build failed" } src_install () { cd ${WORKDIR}/lablGL-${PV} dodir /usr/bin dodoc CHANGES COPYRIGHT README cp -r examples ${D}/usr/share/doc/${P} make DESTDIR=${D} install } pkg_postinst () { env-update if test `grep -s -c /usr/lib/ocaml/lablGL /usr/lib/ocaml/ld.conf || :` = 0;\ then echo /usr/lib/ocaml/lablGL >> /usr/lib/ocaml/ld.conf; fi }