diff options
-rw-r--r-- | lang/camlp5/DESCR | 16 | ||||
-rw-r--r-- | lang/camlp5/Makefile | 34 | ||||
-rw-r--r-- | lang/camlp5/PLIST | 95 | ||||
-rw-r--r-- | lang/camlp5/PLIST.opt | 18 | ||||
-rw-r--r-- | lang/camlp5/buildlink3.mk | 22 | ||||
-rw-r--r-- | lang/camlp5/distinfo | 5 |
6 files changed, 190 insertions, 0 deletions
diff --git a/lang/camlp5/DESCR b/lang/camlp5/DESCR new file mode 100644 index 00000000000..28a6d60dfdd --- /dev/null +++ b/lang/camlp5/DESCR @@ -0,0 +1,16 @@ +Camlp5 is a preprocessor and pretty-printer for OCaml programs. It also +provides parsing and printing tools. + +As a preprocessor, it allows to: +- extend the syntax of OCaml, +- redefine the whole syntax of the language. +As a pretty printer, it allows to: +- display OCaml programs in an elegant way, +- convert from one syntax to another, +- check the results of syntax extensions. +Camlp5 also provides some parsing and pretty printing tools: +- extensible grammars +- extensible printers +- stream parsers and lexers +- pretty print module +It works as a shell command and can also be used in the OCaml toplevel. diff --git a/lang/camlp5/Makefile b/lang/camlp5/Makefile new file mode 100644 index 00000000000..f8ecdf68f99 --- /dev/null +++ b/lang/camlp5/Makefile @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/12/01 12:56:04 tonio Exp $ +# + +DISTNAME= camlp5-5.01 +CATEGORIES= lang +MASTER_SITES= http://pauillac.inria.fr/~ddr/camlp5/distrib/src/ +EXTRACT_SUFX= .tgz + +MAINTAINER= tonio@NetBSD.org +HOMEPAGE= http://pauillac.inria.fr/~ddr/camlp5/ +COMMENT= Camlp5 is a preprocessor-pretty-printer of ocaml + +HAS_CONFIGURE= yes +USE_LANGUAGES= # none + +CONFIGURE_ARGS+= --bindir ${PREFIX}/bin +CONFIGURE_ARGS+= --mandir ${PREFIX}/${PKGMANDIR} +CONFIGURE_ARGS+= --libdir ${PREFIX}/lib/ocaml + +REPLACE_SH= tools/*.sh meta/*.sh ocaml_src/tools/*.sh compile/*.sh + +.include "../../mk/bsd.prefs.mk" + +.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ + (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") +BUILD_TARGET= world.opt +PLIST_SRC+= ${PKGDIR}/PLIST.opt +.else +BUILD_TARGET= world +.endif +PLIST_SRC+= ${PKGDIR}/PLIST + +.include "../../lang/ocaml/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/lang/camlp5/PLIST b/lang/camlp5/PLIST new file mode 100644 index 00000000000..71bc4defbf1 --- /dev/null +++ b/lang/camlp5/PLIST @@ -0,0 +1,95 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/12/01 12:56:04 tonio Exp $ +bin/camlp5 +bin/camlp5o +bin/camlp5r +bin/camlp5sch +bin/ocpp +lib/ocaml/camlp5/ast2pt.cmi +lib/ocaml/camlp5/ast2pt.mli +lib/ocaml/camlp5/camlp5.cma +lib/ocaml/camlp5/camlp5_top.cma +lib/ocaml/camlp5/camlp5o.cma +lib/ocaml/camlp5/camlp5r.cma +lib/ocaml/camlp5/camlp5sch.cma +lib/ocaml/camlp5/diff.cmi +lib/ocaml/camlp5/diff.mli +lib/ocaml/camlp5/eprinter.cmi +lib/ocaml/camlp5/eprinter.mli +lib/ocaml/camlp5/extfold.cmi +lib/ocaml/camlp5/extfold.mli +lib/ocaml/camlp5/extfun.cmi +lib/ocaml/camlp5/extfun.mli +lib/ocaml/camlp5/fstream.cmi +lib/ocaml/camlp5/fstream.mli +lib/ocaml/camlp5/gramext.cmi +lib/ocaml/camlp5/gramext.mli +lib/ocaml/camlp5/gramlib.cma +lib/ocaml/camlp5/grammar.cmi +lib/ocaml/camlp5/grammar.mli +lib/ocaml/camlp5/lib.sml +lib/ocaml/camlp5/mLast.cmi +lib/ocaml/camlp5/mLast.mli +lib/ocaml/camlp5/ocpp.cmo +lib/ocaml/camlp5/odyl.cma +lib/ocaml/camlp5/odyl.cmo +lib/ocaml/camlp5/pa_extend.cmi +lib/ocaml/camlp5/pa_extend.cmo +lib/ocaml/camlp5/pa_extend_m.cmo +lib/ocaml/camlp5/pa_extfold.cmo +lib/ocaml/camlp5/pa_extfun.cmo +lib/ocaml/camlp5/pa_extprint.cmo +lib/ocaml/camlp5/pa_fstream.cmo +lib/ocaml/camlp5/pa_lefteval.cmo +lib/ocaml/camlp5/pa_lex.cmo +lib/ocaml/camlp5/pa_lisp.cmo +lib/ocaml/camlp5/pa_macro.cmi +lib/ocaml/camlp5/pa_macro.cmo +lib/ocaml/camlp5/pa_o.cmo +lib/ocaml/camlp5/pa_oop.cmo +lib/ocaml/camlp5/pa_op.cmo +lib/ocaml/camlp5/pa_pragma.cmo +lib/ocaml/camlp5/pa_r.cmo +lib/ocaml/camlp5/pa_rp.cmo +lib/ocaml/camlp5/pa_scheme.cmo +lib/ocaml/camlp5/pa_sml.cmo +lib/ocaml/camlp5/pcaml.cmi +lib/ocaml/camlp5/pcaml.mli +lib/ocaml/camlp5/plexer.cmi +lib/ocaml/camlp5/plexer.mli +lib/ocaml/camlp5/plexing.cmi +lib/ocaml/camlp5/plexing.mli +lib/ocaml/camlp5/ploc.cmi +lib/ocaml/camlp5/ploc.mli +lib/ocaml/camlp5/pr_depend.cmo +lib/ocaml/camlp5/pr_dump.cmo +lib/ocaml/camlp5/pr_extend.cmo +lib/ocaml/camlp5/pr_extfun.cmo +lib/ocaml/camlp5/pr_null.cmo +lib/ocaml/camlp5/pr_o.cmo +lib/ocaml/camlp5/pr_op.cmo +lib/ocaml/camlp5/pr_r.cmo +lib/ocaml/camlp5/pr_ro.cmo +lib/ocaml/camlp5/pr_rp.cmo +lib/ocaml/camlp5/pr_scheme.cmo +lib/ocaml/camlp5/pr_schemep.cmo +lib/ocaml/camlp5/pretty.cmi +lib/ocaml/camlp5/pretty.mli +lib/ocaml/camlp5/prtools.cmi +lib/ocaml/camlp5/prtools.mli +lib/ocaml/camlp5/q_MLast.cmo +lib/ocaml/camlp5/q_ast.cmo +lib/ocaml/camlp5/q_phony.cmo +lib/ocaml/camlp5/quotation.cmi +lib/ocaml/camlp5/quotation.mli +lib/ocaml/camlp5/stdpp.cmi +lib/ocaml/camlp5/stdpp.mli +lib/ocaml/camlp5/token.cmi +lib/ocaml/camlp5/token.mli +man/man1/camlp5.1 +man/man1/camlp5o.1 +man/man1/camlp5o.opt.1 +man/man1/camlp5r.1 +man/man1/camlp5r.opt.1 +man/man1/ocpp.1 +@dirrm lib/ocaml/camlp5 +@comment in ocaml: @dirrm lib/ocaml diff --git a/lang/camlp5/PLIST.opt b/lang/camlp5/PLIST.opt new file mode 100644 index 00000000000..c01a23d28a6 --- /dev/null +++ b/lang/camlp5/PLIST.opt @@ -0,0 +1,18 @@ +@comment $NetBSD: PLIST.opt,v 1.1.1.1 2007/12/01 12:56:04 tonio Exp $ +bin/camlp5o.opt +bin/camlp5r.opt +lib/ocaml/camlp5/diff.cmx +lib/ocaml/camlp5/eprinter.cmx +lib/ocaml/camlp5/extfold.cmx +lib/ocaml/camlp5/extfun.cmx +lib/ocaml/camlp5/fstream.cmx +lib/ocaml/camlp5/gramext.cmx +lib/ocaml/camlp5/gramlib.a +lib/ocaml/camlp5/gramlib.cmxa +lib/ocaml/camlp5/grammar.cmx +lib/ocaml/camlp5/plexer.cmx +lib/ocaml/camlp5/plexing.cmx +lib/ocaml/camlp5/ploc.cmx +lib/ocaml/camlp5/pretty.cmx +lib/ocaml/camlp5/stdpp.cmx +lib/ocaml/camlp5/token.cmx diff --git a/lang/camlp5/buildlink3.mk b/lang/camlp5/buildlink3.mk new file mode 100644 index 00000000000..9412fd22c16 --- /dev/null +++ b/lang/camlp5/buildlink3.mk @@ -0,0 +1,22 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/12/01 12:56:04 tonio Exp $ +# + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +CAMLP5_BUILDLINK3_MK:= ${CAMLP5_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= camlp5 +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ncamlp5} +BUILDLINK_PACKAGES+= camlp5 +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}camlp5 + +.if ${CAMLP5_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.camlp5+= camlp5>=5.01 +BUILDLINK_PKGSRCDIR.camlp5?= ../../lang/camlp5 +.endif # CAMLP5_BUILDLINK3_MK + +.include "../../lang/ocaml/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/lang/camlp5/distinfo b/lang/camlp5/distinfo new file mode 100644 index 00000000000..c7a60f7a945 --- /dev/null +++ b/lang/camlp5/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/12/01 12:56:04 tonio Exp $ + +SHA1 (camlp5-5.01.tgz) = 2771bf276edaf4b6bb4f3c554be2a42292ed8d37 +RMD160 (camlp5-5.01.tgz) = 93bb08a072d2322ccbc8a4a0e1a67035c69f142c +Size (camlp5-5.01.tgz) = 610154 bytes |