blob: cfee8c1defea9855759dcdd253602c43bf56b505 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/lablgtk-1.2.7.ebuild,v 1.4 2005/07/24 15:53:21 herbs Exp $
inherit multilib
IUSE="gnome opengl"
DESCRIPTION="Objective CAML interface for Gtk+"
HOMEPAGE="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html"
LICENSE="LGPL-2.1 as-is"
DEPEND="=x11-libs/gtk+-1.2*
>=dev-lang/ocaml-3.06
gnome? ( =gnome-base/libglade-0.17*
>=gnome-base/gnome-libs-1.4.1.7
media-libs/gdk-pixbuf )
opengl? ( >=dev-ml/lablgl-1.00
=x11-libs/gtkglarea-1.2* )"
RDEPEND=${DEPEND}
SRC_URI="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgtk-${PV}.tar.gz"
SLOT="1"
KEYWORDS="x86 ppc ~sparc ~alpha ~ia64 amd64 ~hppa"
Name="LablGTK"
src_compile() {
local myconf="USE_DOTOPT=1 BINDIR=${D}/usr/bin INSTALLDIR=${D}/usr/$(get_libdir)/ocaml/lablgtk DLLDIR=${D}/usr/$(get_libdir)/ocaml/stublibs"
use gnome && myconf="$myconf USE_GNOME=1 USE_GLADE=1"
use opengl && myconf="$myconf USE_GL=1"
make configure $myconf || die "./configure failed"
make all opt || die
}
src_install () {
dodir /usr/bin /usr/$(get_libdir)/ocaml/lablgtk /usr/$(get_libdir)/ocaml/stublibs
make install || die
dosed /usr/bin/lablgtk
dodoc CHANGES COPYING README
}
|