aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-01-21 02:37:32 +0800
committerijliao <ijliao@FreeBSD.org>2002-01-21 02:37:32 +0800
commit2bc83f0c84a816542bad0b7972af1f2f90cbd31e (patch)
tree4d2141f0cafd778ce492514a168016fb54ab1631 /textproc
parent858184bdde6f3de9a1971f1ed0a45836b9c2e77a (diff)
downloadfreebsd-ports-gnome-2bc83f0c84a816542bad0b7972af1f2f90cbd31e.tar.gz
freebsd-ports-gnome-2bc83f0c84a816542bad0b7972af1f2f90cbd31e.tar.zst
freebsd-ports-gnome-2bc83f0c84a816542bad0b7972af1f2f90cbd31e.zip
add htmltolatex 1
HTML to LaTeX to PDF Converter
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/htmltolatex/Makefile33
-rw-r--r--textproc/htmltolatex/distinfo1
-rw-r--r--textproc/htmltolatex/files/patch-h2l.l11
-rw-r--r--textproc/htmltolatex/pkg-comment1
-rw-r--r--textproc/htmltolatex/pkg-descr4
-rw-r--r--textproc/htmltolatex/pkg-plist3
7 files changed, 54 insertions, 0 deletions
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 <bsd.port.mk>
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 <assert.h>
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