diff --git a/textproc/Makefile b/textproc/Makefile index 0f24635f1df8..00b0cfb89c66 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -67,6 +67,7 @@ SUBDIR += html2fo SUBDIR += htmldoc SUBDIR += htmlsection + SUBDIR += htmltolatex SUBDIR += info2html SUBDIR += info_to_html SUBDIR += intltool diff --git a/textproc/htmltolatex/Makefile b/textproc/htmltolatex/Makefile new file mode 100644 index 000000000000..b6b9b52d9008 --- /dev/null +++ b/textproc/htmltolatex/Makefile @@ -0,0 +1,33 @@ +# ex:ts=8 +# New ports collection makefile for: htmltolatex +# Date created: Jan 19, 2002 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= htmltolatex +PORTVERSION= 1 +CATEGORIES= textproc +MASTER_SITES= http://66.108.152.41/~nradisch/docgen/ +DISTNAME= ${PORTNAME} + +MAINTAINER= ports@FreeBSD.org + +LIB_DEPENDS= Magick:${PORTSDIR}/graphics/ImageMagick + +USE_BISON= yes +MAKEFILE= GNUmakefile +CXXFLAGS+= -I${LOCALBASE}/include -DUNIX +USE_GMAKE= yes + +post-patch: + @${PERL} -pi -e "s,^CXXFLAGS,#CXXFLAGS,g ; \ + s,^CXX,#CXX,g" ${WRKSRC}/${MAKEFILE} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/h2l ${PREFIX}/bin + @${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/nmr.tex ${DATADIR} + +.include diff --git a/textproc/htmltolatex/distinfo b/textproc/htmltolatex/distinfo new file mode 100644 index 000000000000..c820cbb78834 --- /dev/null +++ b/textproc/htmltolatex/distinfo @@ -0,0 +1 @@ +MD5 (htmltolatex.tar.gz) = aec7a4682c97b42481af9b4321a8600e diff --git a/textproc/htmltolatex/files/patch-h2l.l b/textproc/htmltolatex/files/patch-h2l.l new file mode 100644 index 000000000000..c37e6e01c41a --- /dev/null +++ b/textproc/htmltolatex/files/patch-h2l.l @@ -0,0 +1,11 @@ +--- h2l.l.orig Sun Jan 20 14:47:49 2002 ++++ h2l.l Sun Jan 20 14:47:56 2002 +@@ -2,7 +2,7 @@ + #include "CLexData.h" + #define YYSTYPE CLexDataPtr + +-#include "h2l.tab.cpp.h" ++#include "h2l.tab.hpp" + #include "CH2L.h" + #include "util.h" + #include diff --git a/textproc/htmltolatex/pkg-comment b/textproc/htmltolatex/pkg-comment new file mode 100644 index 000000000000..a9125ca2c00c --- /dev/null +++ b/textproc/htmltolatex/pkg-comment @@ -0,0 +1 @@ +HTML to LaTeX to PDF Converter diff --git a/textproc/htmltolatex/pkg-descr b/textproc/htmltolatex/pkg-descr new file mode 100644 index 000000000000..851fdb9a6a5a --- /dev/null +++ b/textproc/htmltolatex/pkg-descr @@ -0,0 +1,4 @@ +This HTML to LaTeX converter attempts to handle all aspects of HTML and +style sheets. It works with images, tables, alignments, fonts, etc. + +WWW: http://66.108.152.41/~nradisch/docgen/ diff --git a/textproc/htmltolatex/pkg-plist b/textproc/htmltolatex/pkg-plist new file mode 100644 index 000000000000..4ab29a6c4649 --- /dev/null +++ b/textproc/htmltolatex/pkg-plist @@ -0,0 +1,3 @@ +bin/h2l +share/htmltolatex/nmr.tex +@dirrm share/htmltolatex