Import idoc-0.2.6, a minimalist documentation tool for Haskell

"IDoc extracts interface documentation and declarations from
    Haskell modules based on standard Haskell layout rules and a
    small number of clues that the programmer embeds in
    interface comments. These clues have been designed to be
    visually non-imposing when displaying the source in a text
    editor.  Interface documentation is rendered in standard
    markup languages (currently, only HTML is supported).  IDoc
    has been designed to be simple to use and install."

IDoc has an advantage over other interface doc tools (like
haddock) in that it is pure Haskell98, and builds with both
ghc and nhc98, making it far more portable.

ok pvalchev@
This commit is contained in:
dons 2004-05-16 03:21:34 +00:00
parent 26a5efa9b3
commit e6bb1149f7
4 changed files with 51 additions and 0 deletions

37
devel/idoc/Makefile Normal file
View File

@ -0,0 +1,37 @@
# $OpenBSD: Makefile,v 1.1.1.1 2004/05/16 03:21:34 dons Exp $
COMMENT= "minimalist documentation tool for Haskell"
V= 0.2.6
DISTNAME= idoc-${V}
CATEGORIES= devel
MAINTAINER= Don Stewart <dons@openbsd.org>
HOMEPAGE= http://www.cse.unsw.edu.au/~chak/haskell/idoc/
MASTER_SITES= ${HOMEPAGE}
# pure Haskell 98
.if ${MACHINE} == "i386" || ${MACHINE} == "sparc" || ${MACHINE} == "amd64"
MODULES= ghc
.else
BUILD_DEPENDS+= bin/nhc98::lang/nhc98
MAKE_FLAGS= HC=nhc98
.endif
ALL_TARGET=
USE_GMAKE= Yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/idoc ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/idoc
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/idoc/
do-regress:
(cd ${WRKSRC}/test && ../idoc Foo.hs && /usr/bin/lynx --dump Foo.html)
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
.include <bsd.port.mk>

3
devel/idoc/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (idoc-0.2.6.tar.gz) = 5acb412b8fe0c13a9818f2b84c9637c4
RMD160 (idoc-0.2.6.tar.gz) = 6c93916587a7b0df41bdf19fcb91951fb4123351
SHA1 (idoc-0.2.6.tar.gz) = e886533eda05bcaafbac8d66d01bb9975e95a372

7
devel/idoc/pkg/DESCR Normal file
View File

@ -0,0 +1,7 @@
IDoc extracts interface documentation and declarations from Haskell
modules based on standard Haskell layout rules and a small number of
clues that the programmer may embed in interface comments. These
clues have been designed to be visually non-imposing when displaying
the source in a text editor. Interface documentation is rendered in
standard markup languages (currently, only HTML is supported). IDoc
has been designed to be simple to use and install.

4
devel/idoc/pkg/PLIST Normal file
View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2004/05/16 03:21:34 dons Exp $
bin/idoc
share/doc/idoc/README
@dirrm share/doc/idoc