# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.7 2002/05/18 17:25:12 agenkin Exp DESCRIPTION="Objective CAML interface for Gtk+" HOMEPAGE="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html" LICENSE="LGPL-2.1" DEPEND=">=x11-libs/gtk+-1.2.10-r7 >=dev-lang/ocaml-3.04 gnome? ( >=gnome-base/libglade-0.17-r6 >=gnome-base/gnome-libs-1.4.1.7 ) opengl? ( >=dev-ocaml/LablGL-0.97 >=x11-libs/gtkglarea-1.2.3 )" SRC_URI="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgtk-${PV}.tar.gz" S=${WORKDIR}/lablgtk-${PV} src_unpack() { unpack ${A} # patch the makefile to include DESTDIR support cd ${S} || die try patch -p0 < ${FILESDIR}/LablGTK-${PV}-Makefile-destdir.patch } src_compile() { local myconf if [ `use gnome` ]; then myconf="$myconf USE_GNOME=1 USE_GLADE=1" fi if [ `use opengl` ]; then myconf="$myconf USE_GL=1" fi make configure $myconf || die "./configure failed" make || die } src_install () { make DESTDIR=${D} install || die }