1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Add ocamlweb 0.9, a literate programming tool for Objective Caml.

PR:		24858
Submitted by:	Patrick Doane <patrick@watson.org>
This commit is contained in:
Will Andrews 2001-04-07 07:57:20 +00:00
parent 5610846958
commit d3c69b6928
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41022
6 changed files with 61 additions and 0 deletions

View File

@ -239,6 +239,7 @@
SUBDIR += newt
SUBDIR += noweb
SUBDIR += oaf
SUBDIR += ocamlweb
SUBDIR += omniORB
SUBDIR += p5-Agent
SUBDIR += p5-Algorithm-Diff

31
devel/ocamlweb/Makefile Normal file
View File

@ -0,0 +1,31 @@
# New ports collection makefile for: ocamlweb
# Date created: 4 February 2001
# Whom: Patrick Doane <patrick@watson.org>
#
# $FreeBSD$
#
PORTNAME= ocamlweb
PORTVERSION= 0.9
CATEGORIES= devel
MASTER_SITES= http://www.lri.fr/~filliatr/ftp/ocamlweb/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DOCFILES}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= patrick@watson.org
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
GNU_CONFIGURE= yes
.if !defined(NOPORTDOCS)
DOCFILES= ${PORTNAME}-man.ps.gz
.endif
post-install:
.if !defined{NOPORTDOCS}
${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
${INSTALL_MAN} ${DISTDIR}/${PORTNAME}-man.ps.gz ${PREFIX}/share/doc/${PORTNAME}
.endif
.include <bsd.port.mk>

2
devel/ocamlweb/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (ocamlweb-0.9.tar.gz) = 1c6c0b307b6cf5e840c7255cdb6bd322
MD5 (ocamlweb-man.ps.gz) = 41731901a88d410a3d95593602a5677f

View File

@ -0,0 +1 @@
A literate programming tool for Objective Caml

22
devel/ocamlweb/pkg-descr Normal file
View File

@ -0,0 +1,22 @@
Literate programming has been introduced by D. E. Knuth in 1984. The
main idea is to put the code and its documentation in the same file
and to produce from it a document which is readable by a human, and
not only by a machine. Although ocamlweb borrows a lot of ideas from
Knuth's original tool (called WEB), there are big differences between
them. First, WEB allows you to present the pieces of your code in any
order, and this is quite useful when using poorly structured
languages, like Pascal or C. But Objective Caml is already highly
structured, and this is no more useful. Moreover, WEB requires the use
of a tool to produce the code from the WEB file, which greatly
complicates the use of your favorite source-based tools (dependencies
generator, debugger, emacs mode, etc.). When using ocamlweb, the
documentation is inserted in the code as comments (in the Caml sense),
and your code is not linked to the existence of ocamlweb in any way.
Currently, the task of ocamlweb may be seen as:
1. making a nice document with the code and its documentation;
2. generating a global index of cross-references, where each identifier
is associated to the lists of sections where it is defined or used.
WWW: http://www.lri.fr/~filliatr/ocamlweb

4
devel/ocamlweb/pkg-plist Normal file
View File

@ -0,0 +1,4 @@
bin/ocamlweb
share/texmf/tex/latex/misc/ocamlweb.sty
share/doc/ocamlweb/ocamlweb-man.ps.gz
@dirrm share/doc/ocamlweb