blob: c6ae2a4e6034d36776ee6d2385158bc9b640b020 (
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
47
48
49
50
51
52
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/lablgtk-1.2.3.ebuild,v 1.11 2004/05/28 20:56:38 kugelfang Exp $
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.10-r7
>=dev-lang/ocaml-3.04
gnome? ( >=gnome-base/libglade-0.17-r6
>=gnome-base/gnome-libs-1.4.1.7 )
opengl? ( >=dev-ml/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}/${P}
SLOT="1"
KEYWORDS="x86 ~ppc ~sparc -amd64"
Name="LablGTK"
src_unpack() {
unpack ${A}
# patch the makefile to include DESTDIR support
cd ${S} || die
patch -p0 < ${FILESDIR}/${Name}-${PV}-Makefile-destdir.patch || die
}
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 all opt || die
}
src_install () {
make DESTDIR=${D} install || die
dodoc CHANGES COPYING README
}
|