summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortonio <tonio@pkgsrc.org>2007-04-08 23:04:53 +0000
committertonio <tonio@pkgsrc.org>2007-04-08 23:04:53 +0000
commit9782fd386f96209667848a06df6728a2d405b100 (patch)
treecd4a0a4b469dde458792b99966316b282cbc1e1a /lang
parent1444531cd6cc666fbd8b4693cdc57c9db929d27c (diff)
downloadpkgsrc-9782fd386f96209667848a06df6728a2d405b100.tar.gz
OCamlDuce is an enhancement to OCaml that allows one to use XML features,
such as types and values, natively in OCaml programs. The goal of the OCamlDuce project is to extend the OCaml language with features to make it easier to write safe and efficient complex applications that need to deal with XML documents. In particular, it relies on a notion of types and patterns to guarantee statically that all the possible input documents are correctly processed, and that only valid output documents are produced. WWW: http://www.cduce.org/ocaml
Diffstat (limited to 'lang')
-rw-r--r--lang/ocamlduce/DESCR4
-rw-r--r--lang/ocamlduce/Makefile27
-rw-r--r--lang/ocamlduce/PLIST21
-rw-r--r--lang/ocamlduce/PLIST.opt6
-rw-r--r--lang/ocamlduce/distinfo6
-rw-r--r--lang/ocamlduce/patches/patch-aa38
6 files changed, 102 insertions, 0 deletions
diff --git a/lang/ocamlduce/DESCR b/lang/ocamlduce/DESCR
new file mode 100644
index 00000000000..924cc557b68
--- /dev/null
+++ b/lang/ocamlduce/DESCR
@@ -0,0 +1,4 @@
+OCamlDuce is an enhancement to OCaml that allows one to use XML features,
+such as types and values, natively in OCaml programs.
+
+WWW: http://www.cduce.org/ocaml
diff --git a/lang/ocamlduce/Makefile b/lang/ocamlduce/Makefile
new file mode 100644
index 00000000000..81ce8a6bafe
--- /dev/null
+++ b/lang/ocamlduce/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/04/08 23:04:53 tonio Exp $
+#
+
+DISTNAME= ocamlduce-3.09.3pl1
+CATEGORIES= lang
+MASTER_SITES= http://gallium.inria.fr/~frisch/ocamlcduce/download/
+
+MAINTAINER= jaapb@kerguelen.org
+HOMEPAGE= http://gallium.inria.fr/~frisch/ocamlcduce/
+COMMENT= Library to integrate XML features into OCaml
+
+DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
+
+USE_TOOLS+= gmake
+BUILD_TARGET= all
+PLIST_SRC+= PLIST
+
+.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
+ (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
+MAKE_ENV+= HAVE_OCAMLOPT=yes
+BUILD_TARGET= opt
+INSTALL_TARGET= install
+PLIST_SRC+= PLIST.opt
+.endif
+
+.include "../../lang/ocaml/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/ocamlduce/PLIST b/lang/ocamlduce/PLIST
new file mode 100644
index 00000000000..bc501b4b94b
--- /dev/null
+++ b/lang/ocamlduce/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/04/08 23:04:53 tonio Exp $
+@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/ocamlduce
+bin/expungeduce
+bin/ocamlduce
+bin/ocamlducec
+bin/ocamlducedep
+bin/ocamlducedoc
+bin/ocamlducefind
+bin/ocamlducemktop
+lib/ocaml/site-lib/ocamlduce/META
+lib/ocaml/site-lib/ocamlduce/cduce_types.cmi
+lib/ocaml/site-lib/ocamlduce/ocamlduce.cma
+lib/ocaml/site-lib/ocamlduce/ocamlduce.cmi
+lib/ocaml/site-lib/ocamlduce/ocamlduce.mli
+lib/ocaml/site-lib/ocamlduce/topdirs.cmi
+lib/ocaml/site-lib/ocamlduce/toplevelducelib.cma
+lib/ocaml/site-lib/ocamlduce/toploop.cmi
+lib/ocaml/site-lib/ocamlduce/topmain.cmi
+lib/ocaml/site-lib/ocamlduce/topstart.cmo
+@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/ocamlduce
+@dirrm lib/ocaml/site-lib/ocamlduce/
diff --git a/lang/ocamlduce/PLIST.opt b/lang/ocamlduce/PLIST.opt
new file mode 100644
index 00000000000..110d6706994
--- /dev/null
+++ b/lang/ocamlduce/PLIST.opt
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST.opt,v 1.1.1.1 2007/04/08 23:04:53 tonio Exp $
+bin/ocamlduceopt
+lib/ocaml/site-lib/ocamlduce/cduce_types.o
+lib/ocaml/site-lib/ocamlduce/ocamlduce.a
+lib/ocaml/site-lib/ocamlduce/ocamlduce.cmxa
+lib/ocaml/site-lib/ocamlduce/ocamlduce.o
diff --git a/lang/ocamlduce/distinfo b/lang/ocamlduce/distinfo
new file mode 100644
index 00000000000..d8114dfff37
--- /dev/null
+++ b/lang/ocamlduce/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/04/08 23:04:53 tonio Exp $
+
+SHA1 (ocamlduce-3.09.3pl1.tar.gz) = 367fc562c9de2108f1d3fd6b2179adfb3983b5c8
+RMD160 (ocamlduce-3.09.3pl1.tar.gz) = dc6a0e6743e21c0a66349d24a1450f85ae6906c8
+Size (ocamlduce-3.09.3pl1.tar.gz) = 944146 bytes
+SHA1 (patch-aa) = 72aa5005a31eac46c1f6cdd08b8bf9a163d46351
diff --git a/lang/ocamlduce/patches/patch-aa b/lang/ocamlduce/patches/patch-aa
new file mode 100644
index 00000000000..d13240fdac7
--- /dev/null
+++ b/lang/ocamlduce/patches/patch-aa
@@ -0,0 +1,38 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/04/08 23:04:53 tonio Exp $
+
+--- Makefile.orig 2007-01-23 09:13:33.000000000 +0100
++++ Makefile 2007-03-08 10:55:00.000000000 +0100
+@@ -10,12 +10,18 @@
+
+ # The OCaml tools to use
+
++ifeq (${HAVE_OCAMLOPT},"yes")
+ CAMLC=ocamlc.opt
+ CAMLOPT=ocamlopt.opt
++CAMLDEP=ocamldep.opt
++else
++CAMLC=ocamlc
++CAMLOPT=ocamlopt
++CAMLDEP=ocamldep
++endif
+ CAMLYACC=ocamlyacc
+ YACCFLAGS=-v
+ CAMLLEX=ocamllex
+-CAMLDEP=ocamldep.opt
+ DEPFLAGS=$(INCLUDES)
+
+ OCAML_CONFIG=$(shell $(CAMLC) -where)/Makefile.config
+@@ -489,10 +495,12 @@
+ for i in $(INSTALL_BINARIES); do \
+ cp $$i $(BINDIR)/; \
+ done
++ ocamlfind install ocamlduce META -optional $(INSTALL_LIB_FILES)
++
++install.opt: FORCE META
+ for i in $(OPT_VARIANTS); do \
+ cp $$i.opt $(BINDIR)/$$i; \
+ done
+- ocamlfind install ocamlduce META -optional $(INSTALL_LIB_FILES)
+
+ uninstall: FORCE
+ for i in $(INSTALL_BINARIES); do \