diff options
author | jtb <jtb> | 2001-06-17 14:36:40 +0000 |
---|---|---|
committer | jtb <jtb> | 2001-06-17 14:36:40 +0000 |
commit | b92d89448d9a85be17a623a67d4ca9a76628238f (patch) | |
tree | ca72e00107799764319c53006fa15712a99c2691 /textproc/hevea | |
parent | e57b21d006278779aa6a6a3e04e00be8cd26ef8a (diff) | |
download | pkgsrc-b92d89448d9a85be17a623a67d4ca9a76628238f.tar.gz |
Initial import of hevea.
HEVEA is a LaTeX to HTML translator. The input language is a fairly
complete subset of LaTeX2e (old LaTeX style is also accepted) and the
output language is HTML that is (hopefully) correct with respect to
version 4.0 (transitional)
Exotic symbols are translated into symbols pertaining to the
symbol font of the HTML browser, using the FACE attribute of the FONT
tag. This allows the translation to HTML of quite a lot of the symbols
used in LaTeX.
HEVEA understands LaTeX macro definitions. Simple user style
files are understood with little or no modifications.
Furthermore, HEVEA customization is done by writing LaTeX code.
HEVEA is written in Objective Caml, as many lexers. It is quite fast
and flexible. Using HEVEA it is possible to translate large documents
such as manuals, books, etc. very quickly. All documents are
translated as one single HTML file. Then, the output file can be cut
into smaller files, using the companion program HACHA.
Diffstat (limited to 'textproc/hevea')
-rw-r--r-- | textproc/hevea/Makefile | 13 | ||||
-rw-r--r-- | textproc/hevea/distinfo | 5 | ||||
-rw-r--r-- | textproc/hevea/patches/patch-aa | 78 | ||||
-rw-r--r-- | textproc/hevea/pkg/DESCR | 19 | ||||
-rw-r--r-- | textproc/hevea/pkg/PLIST | 69 |
5 files changed, 184 insertions, 0 deletions
diff --git a/textproc/hevea/Makefile b/textproc/hevea/Makefile new file mode 100644 index 00000000000..a7387a6019d --- /dev/null +++ b/textproc/hevea/Makefile @@ -0,0 +1,13 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/06/17 14:36:40 jtb Exp $ + +DISTNAME= hevea-1.05 +CATEGORIES= textproc +MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/para/hevea/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://para.inria.fr/~maranget/hevea/ +COMMENT= LaTeX to HTML translator + +DEPENDS+= ocaml>=3.00:../../lang/ocaml + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/hevea/distinfo b/textproc/hevea/distinfo new file mode 100644 index 00000000000..161ca7d6428 --- /dev/null +++ b/textproc/hevea/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/06/17 14:36:40 jtb Exp $ + +SHA1 (hevea-1.05.tar.gz) = 1e4236491717cbdbb9fa9c01ecf5d21e892513ba +Size (hevea-1.05.tar.gz) = 148837 bytes +SHA1 (patch-aa) = 5ed03d085c086153ec949cfad12fc56106ad2b9e diff --git a/textproc/hevea/patches/patch-aa b/textproc/hevea/patches/patch-aa new file mode 100644 index 00000000000..1143282316f --- /dev/null +++ b/textproc/hevea/patches/patch-aa @@ -0,0 +1,78 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/06/17 14:36:42 jtb Exp $ + +--- Makefile.orig Fri May 5 07:52:04 2000 ++++ Makefile +@@ -1,12 +1,16 @@ + ################## Configuration parameters + # Compile using ocamlopt, to use ocamlc set TARGET=byte ++.if (${MACHINE_ARCH} == "i386") + TARGET=opt ++.else ++TARGET=byte ++.endif + # Library directory of hevea +-LIBDIR=/usr/local/lib/hevea ++LIBDIR=${PREFIX}/share/hevea + # Where to install programms +-BINDIR=/usr/local/bin ++BINDIR=${PREFIX}/bin + # A replacement for /lib/cpp +-CPP=gcc -E -P -x c ++#CPP=gcc -E -P -x c + ############### End of configuration parameters + + HEVEA=./hevea.$(TARGET) +@@ -14,7 +18,7 @@ + OCAMLCI=ocamlc + OCAMLOPT=ocamlopt + OCAMLLEX=ocamllex +-INSTALL=cp ++INSTALL=$(BSD_INSTALL_DATA) + OBJS=version.cmo stack.cmo location.cmo misc.cmo out.cmo table.cmo parse_opts.cmo mylib.cmo myfiles.cmo symb.cmo save.cmo auxx.cmo lexstate.cmo subst.cmo latexmacros.cmo counter.cmo noimage.cmo image.cmo length.cmo get.cmo tabular.cmo htmlCommon.cmo htmlMath.cmo mathML.cmo html.cmo text.cmo infoRef.cmo info.cmo section.cmo foot.cmo entry.cmo index.cmo colscan.cmo color.cmo hot.cmo package.cmo videoc.cmo verb.cmo latexscan.cmo zyva.cmo latexmain.cmo + OBJSCUT=version.cmo stack.cmo location.cmo misc.cmo out.cmo thread.cmo cross.cmo mylib.cmo section.cmo length.cmo save.cmo cut.cmo cutmain.cmo + GENSRC=colscan.ml cut.ml entry.ml get.ml latexscan.ml length.ml save.ml tabular.ml videoc.ml verb.ml infoRef.ml subst.ml +@@ -36,28 +40,28 @@ + $(MAKE) $(MFLAGS) TARGET=byte hevea.byte hacha.byte cutfoot-fra.html cutfoot-eng.html + + install-lib: +- -mkdir $(LIBDIR) +- $(INSTALL) hevea.sty cutfoot-fra.html cutfoot-eng.html footer.tex ${LIBDIR} +- $(INSTALL) contents_motif.gif next_motif.gif previous_motif.gif ${LIBDIR} +- $(INSTALL) $(ALLLIB) $(LIBDIR) +- -mkdir $(LIBDIR)/html +- cd html ; $(INSTALL) $(HTMLLIB) $(LIBDIR)/html +- -mkdir $(LIBDIR)/text +- cd text ; $(INSTALL) $(TEXTLIB) $(LIBDIR)/text +- -mkdir $(LIBDIR)/info +- cd info ; $(INSTALL) $(INFOLIB) $(LIBDIR)/info ++ $(BSD_INSTALL_DATA_DIR) $(LIBDIR) ++ $(BSD_INSTALL_DATA) hevea.sty cutfoot-fra.html cutfoot-eng.html footer.tex ${LIBDIR} ++ $(BSD_INSTALL_DATA) contents_motif.gif next_motif.gif previous_motif.gif ${LIBDIR} ++ $(BSD_INSTALL_DATA) $(ALLLIB) $(LIBDIR) ++ $(BSD_INSTALL_DATA_DIR) $(LIBDIR)/html ++ cd html ; $(BSD_INSTALL_DATA) $(HTMLLIB) $(LIBDIR)/html ++ $(BSD_INSTALL_DATA_DIR) $(LIBDIR)/text ++ cd text ; $(BSD_INSTALL_DATA) $(TEXTLIB) $(LIBDIR)/text ++ $(BSD_INSTALL_DATA_DIR) $(LIBDIR)/info ++ cd info ; $(BSD_INSTALL_DATA) $(INFOLIB) $(LIBDIR)/info + + + + install-opt: install-lib +- $(INSTALL) hevea.opt $(BINDIR)/hevea +- $(INSTALL) hacha.opt $(BINDIR)/hacha +- $(INSTALL) imagen $(BINDIR) ++ $(BSD_INSTALL_PROGRAM) hevea.opt $(BINDIR)/hevea ++ $(BSD_INSTALL_PROGRAM) hacha.opt $(BINDIR)/hacha ++ $(BSD_INSTALL_SCRIPT) imagen $(BINDIR) + + install-byte: install-lib +- $(INSTALL) hevea.byte $(BINDIR)/hevea +- $(INSTALL) hacha.byte $(BINDIR)/hacha +- $(INSTALL) imagen $(BINDIR) ++ $(BSD_INSTALL_SCRIPT) hevea.byte $(BINDIR)/hevea ++ $(BSD_INSTALL_SCRIPT) hacha.byte $(BINDIR)/hacha ++ $(BSD_INSTALL_SCRIPT) imagen $(BINDIR) + + + hevea.byte: ${OBJS} diff --git a/textproc/hevea/pkg/DESCR b/textproc/hevea/pkg/DESCR new file mode 100644 index 00000000000..7dca30369f9 --- /dev/null +++ b/textproc/hevea/pkg/DESCR @@ -0,0 +1,19 @@ + HEVEA is a LaTeX to HTML translator. The input language is a fairly + complete subset of LaTeX2e (old LaTeX style is also accepted) and the + output language is HTML that is (hopefully) correct with respect to + version 4.0 (transitional) + + Exotic symbols are translated into symbols pertaining to the + symbol font of the HTML browser, using the FACE attribute of the FONT + tag. This allows the translation to HTML of quite a lot of the symbols + used in LaTeX. + + HEVEA understands LaTeX macro definitions. Simple user style + files are understood with little or no modifications. + Furthermore, HEVEA customization is done by writing LaTeX code. + + HEVEA is written in Objective Caml, as many lexers. It is quite fast + and flexible. Using HEVEA it is possible to translate large documents + such as manuals, books, etc. very quickly. All documents are + translated as one single HTML file. Then, the output file can be cut + into smaller files, using the companion program HACHA. diff --git a/textproc/hevea/pkg/PLIST b/textproc/hevea/pkg/PLIST new file mode 100644 index 00000000000..528cff9a153 --- /dev/null +++ b/textproc/hevea/pkg/PLIST @@ -0,0 +1,69 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/06/17 14:36:40 jtb Exp $ +bin/hacha +bin/hevea +bin/imagen +share/hevea/amsmath.hva +share/hevea/articlecommon.hva +share/hevea/babel.hva +share/hevea/bookcommon.hva +share/hevea/comment.hva +share/hevea/compat.hva +share/hevea/contents_motif.gif +share/hevea/cutfoot-eng.html +share/hevea/cutfoot-fra.html +share/hevea/footer.tex +share/hevea/hevea.sty +share/hevea/html/article.hva +share/hevea/html/book.hva +share/hevea/html/color.hva +share/hevea/html/commongraphic.hva +share/hevea/html/fancysection.hva +share/hevea/html/graphics.hva +share/hevea/html/graphicx.hva +share/hevea/html/hevea.hva +share/hevea/html/report.hva +share/hevea/html/seminar.hva +share/hevea/html/sword.hva +share/hevea/html/symb-eng.hva +share/hevea/html/symb-ent.hva +share/hevea/html/symb-fra.hva +share/hevea/html/symb-mathml.hva +share/hevea/html/symb-text.hva +share/hevea/html/symb.hva +share/hevea/html/urlhref.hva +share/hevea/hyperref.hva +share/hevea/ifthen.hva +share/hevea/index.hva +share/hevea/info/article.hva +share/hevea/info/book.hva +share/hevea/info/color.hva +share/hevea/info/fancysection.hva +share/hevea/info/hevea.hva +share/hevea/info/report.hva +share/hevea/info/seminar.hva +share/hevea/iso-symb.hva +share/hevea/keyval.hva +share/hevea/latexcommon.hva +share/hevea/makeidx.hva +share/hevea/mathaccents.hva +share/hevea/moreverb.hva +share/hevea/multind.hva +share/hevea/next_motif.gif +share/hevea/packages.hva +share/hevea/previous_motif.gif +share/hevea/spaces.hva +share/hevea/text/article.hva +share/hevea/text/book.hva +share/hevea/text/color.hva +share/hevea/text/fancysection.hva +share/hevea/text/hevea.hva +share/hevea/text/report.hva +share/hevea/text/seminar.hva +share/hevea/text/symb.hva +share/hevea/url.hva +share/hevea/verbatim.hva +share/hevea/xxdate.exe +@dirrm share/hevea/text +@dirrm share/hevea/info +@dirrm share/hevea/html +@dirrm share/hevea |