summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2002-06-29 05:14:35 +0000
committerGeorge Shapovalov <george@gentoo.org>2002-06-29 05:14:35 +0000
commitd16254f99f3ed03d68364f3092636c3ef634c564 (patch)
tree2694c4012bc48c69cd819b696adadfa580c5cc6c /dev-ml
parentadded dev-ml entry to enable new category (diff)
downloadgentoo-2-d16254f99f3ed03d68364f3092636c3ef634c564.tar.gz
gentoo-2-d16254f99f3ed03d68364f3092636c3ef634c564.tar.bz2
gentoo-2-d16254f99f3ed03d68364f3092636c3ef634c564.zip
another package in dev-ml category: LablGTK : an interface to the GIMP Tool
Kit
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/lablgtk/ChangeLog13
-rw-r--r--dev-ml/lablgtk/files/LablGTK-1.2.3-Makefile-destdir.patch47
-rw-r--r--dev-ml/lablgtk/files/digest-LablGTK-1.2.31
-rw-r--r--dev-ml/lablgtk/files/digest-lablgtk-1.2.31
-rw-r--r--dev-ml/lablgtk/lablgtk-1.2.3.ebuild50
5 files changed, 112 insertions, 0 deletions
diff --git a/dev-ml/lablgtk/ChangeLog b/dev-ml/lablgtk/ChangeLog
new file mode 100644
index 000000000000..31049e30b3a6
--- /dev/null
+++ b/dev-ml/lablgtk/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for dev-ml/lablgtk
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/ChangeLog,v 1.1 2002/06/29 05:14:35 george Exp $
+
+*lablgtk-1.2.3.ebuild (28 Jun 2002)
+
+ 28 Jun 2002; G Shapovalov <george@gentoo.org> all :
+
+ initial release
+ from the README:
+ LablGTK : an interface to the GIMP Tool Kit
+
+ ebuild submitted by Bardur Arantsson <bardur-gta@odense.kollegienet.dk>
diff --git a/dev-ml/lablgtk/files/LablGTK-1.2.3-Makefile-destdir.patch b/dev-ml/lablgtk/files/LablGTK-1.2.3-Makefile-destdir.patch
new file mode 100644
index 000000000000..709e804e414a
--- /dev/null
+++ b/dev-ml/lablgtk/files/LablGTK-1.2.3-Makefile-destdir.patch
@@ -0,0 +1,47 @@
+--- src/Makefile.orig 2001-12-12 11:53:50.000000000 +0100
++++ src/Makefile 2002-05-29 20:49:36.000000000 +0200
+@@ -132,28 +132,26 @@
+ rm -f testcc.ml
+
+ install:
+- if test -d $(INSTALLDIR); then : ; else mkdir -p $(INSTALLDIR); fi
+- if test `grep -s -c '^$(INSTALLDIR)$$' $(LIBDIR)/ld.conf` = 0; then \
+- echo $(INSTALLDIR) >> $(LIBDIR)/ld.conf; \
+- fi
+- cp $(ALLOBJS:.cmo=.cmi) $(THOBJS:.cmo=.cmi) $(INSTALLDIR)
+- cp -p *.mli $(INSTALLDIR)
+- cp -p $(ALLOBJS:.cmo=.ml) $(ALLTHOBJS:.cmo=.ml) $(INSTALLDIR)
+- cp $(MLLIBS) $(THOBJS) $(INITOBJS) $(THINITOBJS) $(INSTALLDIR)
+- cp $(CLIBS) $(INSTALLDIR)
+- cp lablgtktop lablgtktop_t varcc $(INSTALLDIR)
+- cp -p *.h $(INSTALLDIR)
+- cp lablgtk $(BINDIR)
+- if test -f dlllablgtk.so; then cp $(CLIBS:lib%.a=dll%.so) $(INSTALLDIR); fi
+- if test -f lablgladecc; then cp lablgladecc $(BINDIR); fi
++ mkdir -p $(DESTDIR)$(INSTALLDIR)
++ mkdir -p $(DESTDIR)$(BINDIR)
++ cp $(ALLOBJS:.cmo=.cmi) $(THOBJS:.cmo=.cmi) $(DESTDIR)$(INSTALLDIR)
++ cp -p *.mli $(DESTDIR)$(INSTALLDIR)
++ cp -p $(ALLOBJS:.cmo=.ml) $(ALLTHOBJS:.cmo=.ml) $(DESTDIR)$(INSTALLDIR)
++ cp $(MLLIBS) $(THOBJS) $(INITOBJS) $(THINITOBJS) $(DESTDIR)$(INSTALLDIR)
++ cp $(CLIBS) $(DESTDIR)$(INSTALLDIR)
++ cp lablgtktop lablgtktop_t varcc $(DESTDIR)$(INSTALLDIR)
++ cp -p *.h $(DESTDIR)$(INSTALLDIR)
++ cp lablgtk $(DESTDIR)$(BINDIR)
++ if test -f dlllablgtk.so; then cp $(CLIBS:lib%.a=dll%.so) $(DESTDIR)$(INSTALLDIR); fi
++ if test -f lablgladecc; then cp lablgladecc $(DESTDIR)$(BINDIR); fi
+ if test -f lablgtk.cmxa; then $(MAKE) installopt; fi
+
+ installopt:
+- cp $(MLLIBS:.cma=.cmxa) $(MLLIBS:.cma=.a) $(INSTALLDIR)
+- cp $(ALLOBJS:.cmo=.cmx) $(INSTALLDIR)
+- cp $(INITOBJS:.cmo=.o) $(INSTALLDIR)
++ cp $(MLLIBS:.cma=.cmxa) $(MLLIBS:.cma=.a) $(DESTDIR)$(INSTALLDIR)
++ cp $(ALLOBJS:.cmo=.cmx) $(DESTDIR)$(INSTALLDIR)
++ cp $(INITOBJS:.cmo=.o) $(DESTDIR)$(INSTALLDIR)
+ if test -f gtkThread.cmx; then \
+- cp $(THOBJS:.cmo=.cmx) $(THOBJS:.cmo=.o) $(INSTALLDIR); fi
++ cp $(THOBJS:.cmo=.cmx) $(THOBJS:.cmo=.o) $(DESTDIR)$(INSTALLDIR); fi
+
+ lablgtk.cma: $(MLOBJS) $(COBJS)
+ $(LIBRARIAN) -o lablgtk $(MLOBJS) $(COBJS) $(GTKLIBS)
diff --git a/dev-ml/lablgtk/files/digest-LablGTK-1.2.3 b/dev-ml/lablgtk/files/digest-LablGTK-1.2.3
new file mode 100644
index 000000000000..aefaf461905d
--- /dev/null
+++ b/dev-ml/lablgtk/files/digest-LablGTK-1.2.3
@@ -0,0 +1 @@
+MD5 010448a814da16f8cff07176aa0fb415 lablgtk-1.2.3.tar.gz 433267
diff --git a/dev-ml/lablgtk/files/digest-lablgtk-1.2.3 b/dev-ml/lablgtk/files/digest-lablgtk-1.2.3
new file mode 100644
index 000000000000..aefaf461905d
--- /dev/null
+++ b/dev-ml/lablgtk/files/digest-lablgtk-1.2.3
@@ -0,0 +1 @@
+MD5 010448a814da16f8cff07176aa0fb415 lablgtk-1.2.3.tar.gz 433267
diff --git a/dev-ml/lablgtk/lablgtk-1.2.3.ebuild b/dev-ml/lablgtk/lablgtk-1.2.3.ebuild
new file mode 100644
index 000000000000..ab32ca346ebe
--- /dev/null
+++ b/dev-ml/lablgtk/lablgtk-1.2.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2002 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.1 2002/06/29 05:14:35 george Exp $
+
+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 )"
+RDEPEND="${DEPEND}"
+
+SRC_URI="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgtk-${PV}.tar.gz"
+S=${WORKDIR}/${P}
+SLOT="1"
+
+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
+}