summaryrefslogtreecommitdiff
path: root/converters/doc2html/Makefile
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-05-14 14:03:20 +0000
committeragc <agc@pkgsrc.org>2001-05-14 14:03:20 +0000
commit9204924f9dc55716ae0b7c86089afe9369b07025 (patch)
tree21443ead9fdef073932ff126438e7e2241ba04a6 /converters/doc2html/Makefile
parente870d601510254c33660b6b4855a3fbeec019da0 (diff)
downloadpkgsrc-9204924f9dc55716ae0b7c86089afe9369b07025.tar.gz
Initial import of doc2html-2.1 into the packages collection.
Provided in PR 12884 by Jesse Off (joff@newmonics.com) "External converter script for ht://Dig (version 3.1.4 and later), that converts Microsoft Word, Excel and Powerpoint files, and PDF, PostScript, RTF, and WordPerfect files to text (in HTML form) so they can be indexed. Uses a variety of conversion programs: wp2html - to convert Wordperfect and Word7 & 97 documents to HTML catdoc - to extract text from Word documents rtf2html - to convert RTF documents to HTML pdftotext - to extract text from Adobe PDFs ps2ascii - to extract text from PostScript pptHtml - to convert Powerpoint files to HTML xlHtml - to convert Excel spreadsheets to HTML or xls2csv - to obtain data from Excel spreadsheets. Written by David Adams (University of Southampton), and based on the conv_doc.pl script by Gilles Detillieux."
Diffstat (limited to 'converters/doc2html/Makefile')
-rw-r--r--converters/doc2html/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/converters/doc2html/Makefile b/converters/doc2html/Makefile
new file mode 100644
index 00000000000..fa49d9d49e9
--- /dev/null
+++ b/converters/doc2html/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/05/14 14:03:20 agc Exp $
+#
+
+DISTNAME= doc2html
+PKGNAME= doc2html-2.1
+CATEGORIES= converters
+MASTER_SITES= http://www.htdig.org/files/contrib/parsers/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.htdig.org
+COMMENT= PERL external filter for htdig to convert numerous doc formats to HTML
+
+DEPENDS+= xlHtml-*:../../converters/xlHtml
+DEPENDS+= rtf2html-*:../../converters/rtf2html
+DEPENDS+= ghostscript{,-nox11}-[6-9]*:../../print/ghostscript
+DEPENDS+= xpdf-*:../../graphics/xpdf
+DEPENDS+= catdoc-*:../../textproc/catdoc
+
+USE_PERL5= YES
+
+do-build:
+ ${SED} -e "s%@@LOCALBASE@@%${LOCALBASE}%g" \
+ -e "s%/usr/bin/perl%${PERL5}%g" \
+ -e "s%/bin/sed%${SED}%g" \
+ -e "s%@@X11BASE@@%${X11BASE}%g" < ${WRKSRC}/doc2html.pl \
+ > ${WRKSRC}/doc2html
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/doc2html ${PREFIX}/bin/doc2html
+
+.include "../../mk/bsd.pkg.mk"