diff options
author | wulf <wulf@pkgsrc.org> | 2000-06-12 22:36:59 +0000 |
---|---|---|
committer | wulf <wulf@pkgsrc.org> | 2000-06-12 22:36:59 +0000 |
commit | aeaa03b589c0204cc4b5c43c4458c0ba2faabe38 (patch) | |
tree | 7d9d796e0f18d56f1c4d40982bad7ac3f8d08c9e /lang/camlp4 | |
parent | f1d7c2b8eb49e9ceb38f3eb6957de287ccce6d0d (diff) | |
download | pkgsrc-aeaa03b589c0204cc4b5c43c4458c0ba2faabe38.tar.gz |
Initial import of pkgsrc/lang/camlp4:
camlp4-3.0 A Pre-Processor-Pretty-Printer for Objective Caml
Diffstat (limited to 'lang/camlp4')
-rw-r--r-- | lang/camlp4/Makefile | 37 | ||||
-rw-r--r-- | lang/camlp4/files/md5 | 3 | ||||
-rw-r--r-- | lang/camlp4/files/patch-sum | 3 | ||||
-rw-r--r-- | lang/camlp4/patches/patch-aa | 63 | ||||
-rw-r--r-- | lang/camlp4/pkg/COMMENT | 1 | ||||
-rw-r--r-- | lang/camlp4/pkg/DESCR | 16 | ||||
-rw-r--r-- | lang/camlp4/pkg/PLIST | 65 | ||||
-rw-r--r-- | lang/camlp4/pkg/PLIST.opt | 11 |
8 files changed, 199 insertions, 0 deletions
diff --git a/lang/camlp4/Makefile b/lang/camlp4/Makefile new file mode 100644 index 00000000000..23773131cf0 --- /dev/null +++ b/lang/camlp4/Makefile @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/06/12 22:36:59 wulf Exp $ +# + +DISTNAME= camlp4-3.00 +CATEGORIES= lang +MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/ + +MAINTAINER= wulf@netbsd.org +HOMEPAGE= http://caml.inria.fr/camlp4/ + +DEPENDS+= ocaml-3.*:../ocaml + +USE_GMAKE= yes +HAS_CONFIGURE= yes + +ALL_TARGET= world +PLIST_SRC= ${WRKDIR}/PLIST + +pre-build: + if ! ${TEST} -x ${LOCALBASE}/bin/ocamlc.opt; then \ + @${ECHO} "No optimized ocaml binaries found"; \ + cd ${WRKSRC}/config; \ + ${MV} Makefile Makefile.orig; \ + ${SED} -e "s/\.opt//g" Makefile.orig > Makefile; \ + fi + +pre-install: + if ${TEST} -x ${LOCALBASE}/bin/ocamlopt; then \ + cd ${WRKSRC}; \ + ${GMAKE} opt; \ + ${CAT} ${PKGDIR}/PLIST.opt > ${PLIST_SRC}; \ + ${CAT} ${PKGDIR}/PLIST >> ${PLIST_SRC}; \ + else \ + ${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}; \ + fi + +.include "../../mk/bsd.pkg.mk" diff --git a/lang/camlp4/files/md5 b/lang/camlp4/files/md5 new file mode 100644 index 00000000000..3b98385db2b --- /dev/null +++ b/lang/camlp4/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/06/12 22:36:59 wulf Exp $ + +MD5 (camlp4-3.00.tar.gz) = 35d918bd70a7d325787346db33733973 diff --git a/lang/camlp4/files/patch-sum b/lang/camlp4/files/patch-sum new file mode 100644 index 00000000000..90f5ad459b5 --- /dev/null +++ b/lang/camlp4/files/patch-sum @@ -0,0 +1,3 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/06/12 22:36:59 wulf Exp $ + +MD5 (patch-aa) = 72f5690c216a7f18289e2af8050283fe diff --git a/lang/camlp4/patches/patch-aa b/lang/camlp4/patches/patch-aa new file mode 100644 index 00000000000..1034b18df01 --- /dev/null +++ b/lang/camlp4/patches/patch-aa @@ -0,0 +1,63 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/06/12 22:37:00 wulf Exp $ + +--- configure.orig Sat Jun 10 11:30:15 2000 ++++ configure Sat Jun 10 11:47:23 2000 +@@ -1,9 +1,5 @@ + #!/bin/sh + +-BINDIR=/usr/local/bin +-LIBDIR=/usr/local/lib/camlp4 +-MANDIR=/usr/local/man/man1 +- + if test -f config/Makefile.cnf; then . config/Makefile.cnf; fi + + abort () +@@ -63,23 +59,33 @@ + OLIBDIR=`echo $OLIBDIR | sed -e s=\\\\\\\\=/=g` + echo "Ocaml library directory is $OLIBDIR" + +-echo +-echo "The compilation process creates executable files." +-echo "Please tell me where to install them." +-askfor "Directory for executables" $BINDIR +-BINDIR=$r ++if test ${PREFIX}; then ++ BINDIR=${PREFIX}/bin ++ LIBDIR=${PREFIX}/lib/camlp4 ++ MANDIR=${PREFIX}/man/man1 ++else ++ BINDIR=/usr/local/bin ++ LIBDIR=/usr/local/lib/camlp4 ++ MANDIR=/usr/local/man/man1 + +-echo +-echo "The compilation process creates some library files." +-echo "Please tell me where to install them." +-askfor "Directory for library" $LIBDIR +-LIBDIR=$r ++ echo ++ echo "The compilation process creates executable files." ++ echo "Please tell me where to install them." ++ askfor "Directory for executables" $BINDIR ++ BINDIR=$r + +-echo +-echo "The system has some manual pages." +-echo "Please tell me where to install them." +-askfor "Directory for manual pages" $MANDIR +-MANDIR=$r ++ echo ++ echo "The compilation process creates some library files." ++ echo "Please tell me where to install them." ++ askfor "Directory for library" $LIBDIR ++ LIBDIR=$r ++ ++ echo ++ echo "The system has some manual pages." ++ echo "Please tell me where to install them." ++ askfor "Directory for manual pages" $MANDIR ++ MANDIR=$r ++fi + + ( + echo OLIBDIR=$OLIBDIR diff --git a/lang/camlp4/pkg/COMMENT b/lang/camlp4/pkg/COMMENT new file mode 100644 index 00000000000..9759c05081f --- /dev/null +++ b/lang/camlp4/pkg/COMMENT @@ -0,0 +1 @@ +Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml diff --git a/lang/camlp4/pkg/DESCR b/lang/camlp4/pkg/DESCR new file mode 100644 index 00000000000..512188c3cd2 --- /dev/null +++ b/lang/camlp4/pkg/DESCR @@ -0,0 +1,16 @@ +Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers tools +for syntax (grammars) and the ability to modify the concrete syntax of the +language (quotations, syntax extensions). + +The Objective Caml compiler has a special option "-pp", allowing to call +any preprocessor. If Camlp4 is used, the parsing is done (only once) by +Camlp4, and the Objective Caml compiler resumes the rest of the compilation +(typing, code generation). + +Camlp4 can parse normal Ocaml concrete syntax or any other user-definable +syntax. As an example, an alternative syntax is provided, named revised, +because it tries to fix some small problems of the normal syntax. + +Camlp4 can pretty print the normal Ocaml concrete syntax or the revised one. +It is therefore always possible to have a version of your sources +compilable by the compiler Objective Caml without preprocessing. diff --git a/lang/camlp4/pkg/PLIST b/lang/camlp4/pkg/PLIST new file mode 100644 index 00000000000..73e2e9e086b --- /dev/null +++ b/lang/camlp4/pkg/PLIST @@ -0,0 +1,65 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/06/12 22:36:59 wulf Exp $ +bin/odyl +bin/camlp4 +bin/camlp4o +bin/mkcamlp4 +bin/ocpp +lib/camlp4/ast2pt.cmi +lib/camlp4/grammar.mli +lib/camlp4/pa_ifdef.cmo +lib/camlp4/pcaml.mli +lib/camlp4/q_MLast.cmo +lib/camlp4/camlp4.cma +lib/camlp4/lib.sml +lib/camlp4/pa_o.cmi +lib/camlp4/plexer.cmi +lib/camlp4/q_phony.cmo +lib/camlp4/camlp4_top.cma +lib/camlp4/mLast.cmi +lib/camlp4/pa_o.cmo +lib/camlp4/plexer.mli +lib/camlp4/quotation.cmi +lib/camlp4/camlp4o.cma +lib/camlp4/mLast.mli +lib/camlp4/pa_olabl.cmo +lib/camlp4/pr_depend.cmo +lib/camlp4/quotation.mli +lib/camlp4/camlp4r.cma +lib/camlp4/ocpp.cmo +lib/camlp4/pa_oop.cmo +lib/camlp4/pr_dump.cmo +lib/camlp4/stdpp.cmi +lib/camlp4/crc.cmo +lib/camlp4/odyl.cma +lib/camlp4/pa_op.cmo +lib/camlp4/pr_extend.cmo +lib/camlp4/stdpp.mli +lib/camlp4/extract_crc +lib/camlp4/odyl.cmo +lib/camlp4/pa_r.cmo +lib/camlp4/pr_null.cmo +lib/camlp4/token.cmi +lib/camlp4/gramext.cmi +lib/camlp4/pa_extend.cmo +lib/camlp4/pa_rp.cmo +lib/camlp4/pr_o.cmo +lib/camlp4/token.mli +lib/camlp4/gramext.mli +lib/camlp4/pa_extend_m.cmo +lib/camlp4/pa_ru.cmo +lib/camlp4/pr_op.cmo +lib/camlp4/gramlib.cma +lib/camlp4/pa_format.cmo +lib/camlp4/pa_sml.cmo +lib/camlp4/pr_r.cmo +lib/camlp4/grammar.cmi +lib/camlp4/pa_ifdef.cmi +lib/camlp4/pcaml.cmi +lib/camlp4/pr_rp.cmo +man/man1/camlp4.1 +man/man1/camlp4o.1 +man/man1/camlp4r.1 +man/man1/mkcamlp4.1 +man/man1/camlp4o.opt.1 +man/man1/camlp4r.opt.1 +@dirrm lib/camlp4 diff --git a/lang/camlp4/pkg/PLIST.opt b/lang/camlp4/pkg/PLIST.opt new file mode 100644 index 00000000000..06e3902a0df --- /dev/null +++ b/lang/camlp4/pkg/PLIST.opt @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST.opt,v 1.1.1.1 2000/06/12 22:36:59 wulf Exp $ +bin/camlp4o.opt +bin/camlp4r +bin/camlp4r.opt +lib/camlp4/gramext.cmx +lib/camlp4/gramlib.a +lib/camlp4/gramlib.cmxa +lib/camlp4/grammar.cmx +lib/camlp4/plexer.cmx +lib/camlp4/stdpp.cmx +lib/camlp4/token.cmx |