summaryrefslogtreecommitdiff
path: root/devel/ocaml-classes
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-09-20 13:21:30 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-09-20 13:21:30 +0000
commit055b5b0547c525056bac44fb0bcf3d95e7aa3983 (patch)
tree830968fcb565967f6c41752845c815430d2ff388 /devel/ocaml-classes
parentUpdate to 2.6.1. (diff)
add ocaml-classes 3.05
Ocaml Object interface for ocaml's standard library modules PR: 42677 Submitted by: michaelgrunewald@yahoo.fr
Diffstat (limited to 'devel/ocaml-classes')
-rw-r--r--devel/ocaml-classes/Makefile24
-rw-r--r--devel/ocaml-classes/distinfo1
-rw-r--r--devel/ocaml-classes/files/META6
-rw-r--r--devel/ocaml-classes/files/patch-Makefile33
-rw-r--r--devel/ocaml-classes/pkg-comment1
-rw-r--r--devel/ocaml-classes/pkg-descr10
-rw-r--r--devel/ocaml-classes/pkg-plist20
7 files changed, 95 insertions, 0 deletions
diff --git a/devel/ocaml-classes/Makefile b/devel/ocaml-classes/Makefile
new file mode 100644
index 000000000000..262768add93c
--- /dev/null
+++ b/devel/ocaml-classes/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: ocaml-classes
+# Date created: Ven 16 aoû 2002 02:05:08 CEST
+# Whom: Michaël Grünewald
+#
+# $FreeBSD$
+#
+
+PORTNAME= classes
+PORTVERSION= 3.05
+CATEGORIES= devel
+MASTER_SITES= http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/\
+ ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/olabl/\
+ ftp://ftp.inria.fr/lang/caml-light/bazar-ocaml/\
+PKGNAMEPREFIX= ocaml-
+DISTNAME= ocaml-${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= michaelgrunewald@yahoo.fr
+
+BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
+
+post-extract:
+ @${CP} ${FILESDIR}/META ${WRKSRC}
+
+.include <bsd.port.mk>
diff --git a/devel/ocaml-classes/distinfo b/devel/ocaml-classes/distinfo
new file mode 100644
index 000000000000..2a28f4083459
--- /dev/null
+++ b/devel/ocaml-classes/distinfo
@@ -0,0 +1 @@
+MD5 (ocaml-classes-3.05.tar.gz) = a250cbbe93d79a35792bfabe74d2cc3d
diff --git a/devel/ocaml-classes/files/META b/devel/ocaml-classes/files/META
new file mode 100644
index 000000000000..97e7675576e5
--- /dev/null
+++ b/devel/ocaml-classes/files/META
@@ -0,0 +1,6 @@
+name="classes"
+version="3.05"
+description="Object interface for standard library modules"
+requires=""
+archive(byte)="stdclass.cma"
+archive(native)="stdclass.cmxa"
diff --git a/devel/ocaml-classes/files/patch-Makefile b/devel/ocaml-classes/files/patch-Makefile
new file mode 100644
index 000000000000..677e1b22db4a
--- /dev/null
+++ b/devel/ocaml-classes/files/patch-Makefile
@@ -0,0 +1,33 @@
+--- Makefile.orig Thu Apr 18 20:39:26 2002
++++ Makefile Fri Sep 20 21:16:25 2002
+@@ -1,10 +1,11 @@
+ #Adjust this directory for installation
+-LIBDIR=`ocamlc -where`
++LIBDIR=$(PREFIX)/lib/ocaml/site-lib/classes
+ COMPILER=ocamlc -c
+ LIBRARIAN=ocamlc -a
+ OPTCOMP=ocamlopt -c
+ OPTLIB=ocamlopt -a
+-INSTALL=cp
++INSTALL=install -o root -g wheel -m 644
++INSTALLDIR=install -d -o root -g wheel -m 755
+
+ OBJECTS=obuffer.cmo ohashtbl.cmo oqueue.cmo ostack.cmo \
+ omap.cmo oset.cmo ostream.cmo omapping.cmo
+@@ -43,12 +44,15 @@
+ @$(MAKE) real-install LIBDIR=$(LIBDIR)
+
+ real-install:
++ $(INSTALLDIR) $(LIBDIR)
+ $(INSTALL) stdclass.cma *.cmi *.mli $(LIBDIR)
+ if test -f stdclass.cmxa; \
+ then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(LIBDIR); fi
++ if test -f META; \
++ then $(INSTALL) META $(LIBDIR); fi
+
+ clean:
+- rm -f *.cm* *.o *.a *~ #*
++ rm -f *.cm* *.o *.a *~
+
+ depend:
+ ocamldep *.ml *.mli > .depend
diff --git a/devel/ocaml-classes/pkg-comment b/devel/ocaml-classes/pkg-comment
new file mode 100644
index 000000000000..f47d60f5726b
--- /dev/null
+++ b/devel/ocaml-classes/pkg-comment
@@ -0,0 +1 @@
+Ocaml Object interface for ocaml's standard library modules
diff --git a/devel/ocaml-classes/pkg-descr b/devel/ocaml-classes/pkg-descr
new file mode 100644
index 000000000000..8bb03079ca2b
--- /dev/null
+++ b/devel/ocaml-classes/pkg-descr
@@ -0,0 +1,10 @@
+The library is composed of 9 modules, each containing a single class,
+and eventually some creation functions. Each of theses classes
+corresponds almost exactly to a module in the standard library, and only
+makes it object-oriented. Only Ogenlex adds a new feature, indexing on
+the input stream.
+
+WWW: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/classes/
+
+- Michael Grunewald
+michaelgrunewald@yahoo.fr
diff --git a/devel/ocaml-classes/pkg-plist b/devel/ocaml-classes/pkg-plist
new file mode 100644
index 000000000000..7365f7b732ae
--- /dev/null
+++ b/devel/ocaml-classes/pkg-plist
@@ -0,0 +1,20 @@
+lib/ocaml/site-lib/classes/obuffer.cmi
+lib/ocaml/site-lib/classes/obuffer.mli
+lib/ocaml/site-lib/classes/ogenlex.mli
+lib/ocaml/site-lib/classes/ohashtbl.cmi
+lib/ocaml/site-lib/classes/ohashtbl.mli
+lib/ocaml/site-lib/classes/omap.cmi
+lib/ocaml/site-lib/classes/omap.mli
+lib/ocaml/site-lib/classes/omapping.cmi
+lib/ocaml/site-lib/classes/omapping.mli
+lib/ocaml/site-lib/classes/oqueue.cmi
+lib/ocaml/site-lib/classes/oqueue.mli
+lib/ocaml/site-lib/classes/oset.cmi
+lib/ocaml/site-lib/classes/oset.mli
+lib/ocaml/site-lib/classes/ostack.cmi
+lib/ocaml/site-lib/classes/ostack.mli
+lib/ocaml/site-lib/classes/ostream.cmi
+lib/ocaml/site-lib/classes/ostream.mli
+lib/ocaml/site-lib/classes/stdclass.cma
+lib/ocaml/site-lib/classes/META
+@dirrm lib/ocaml/site-lib/classes