summaryrefslogtreecommitdiffstats
path: root/print/html2ps-letter
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>1998-05-17 20:14:41 +0000
committerandreas <andreas@FreeBSD.org>1998-05-17 20:14:41 +0000
commitb2dc42752760d45e0671f3ab6f742bbe8bd2f385 (patch)
tree809a86807597851dea6bfcdab758e1f13dcb59d3 /print/html2ps-letter
parent3a7acef45a5041f02cae4912b74b9e58d00a8a94 (diff)
downloadFreeBSD-ports-b2dc42752760d45e0671f3ab6f742bbe8bd2f385.zip
FreeBSD-ports-b2dc42752760d45e0671f3ab6f742bbe8bd2f385.tar.gz
Import of html2ps 0.1 a HTML to PostScript converter with lot's of features.
Diffstat (limited to 'print/html2ps-letter')
-rw-r--r--print/html2ps-letter/Makefile36
-rw-r--r--print/html2ps-letter/distinfo1
-rw-r--r--print/html2ps-letter/files/patch-aa30
-rw-r--r--print/html2ps-letter/files/patch-ab9
-rw-r--r--print/html2ps-letter/pkg-comment1
-rw-r--r--print/html2ps-letter/pkg-descr21
-rw-r--r--print/html2ps-letter/pkg-plist6
-rw-r--r--print/html2ps-letter/scripts/pre-configure7
8 files changed, 111 insertions, 0 deletions
diff --git a/print/html2ps-letter/Makefile b/print/html2ps-letter/Makefile
new file mode 100644
index 0000000..6d17892
--- /dev/null
+++ b/print/html2ps-letter/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: html2ps
+# Version required: 1.0b1
+# Date created: Sat Nov 22 12:54:50 CET 1997
+# Whom: andreas
+#
+# $Id: Makefile,v 1.8 1997/11/17 16:18:35 rse Exp $
+#
+
+DISTNAME= html2ps-1.0b1
+PKGNAME= html2ps-1.0
+CATEGORIES= lang www perl5
+MASTER_SITES= http://www.tdb.uu.se/~jan/
+
+MAINTAINER= andreas@FreeBSD.ORG
+
+BUILD_DEPENDS= mogrify:${PORTSDIR}/graphics/ImageMagick \
+ djpeg:${PORTSDIR}/graphics/jpeg \
+ giftopnm:${PORTSDIR}/graphics/netpbm \
+ ${site_perl}/Image/Magick.pm:${PORTSDIR}/graphics/p5-PerlMagick \
+ gs:${PORTSDIR}/print/ghostscript5 \
+ tex:${PORTSDIR}/print/teTeX \
+ ${site_perl}/LWP.pm:${PORTSDIR}/www/p5-libwww \
+ weblint:${PORTSDIR}/www/weblint
+
+site_perl= ${PREFIX}/lib/perl5/site_perl
+USE_PERL5= YES
+NO_BUILD= YES
+IS_INTERACTIVE= YES
+
+MAN1= html2ps.1
+MAN5= html2psrc.5
+
+do-install:
+ @cd ${WRKSRC}; ${PREFIX}/bin/perl5 install
+
+.include <bsd.port.mk>
diff --git a/print/html2ps-letter/distinfo b/print/html2ps-letter/distinfo
new file mode 100644
index 0000000..373a6c5
--- /dev/null
+++ b/print/html2ps-letter/distinfo
@@ -0,0 +1 @@
+MD5 (html2ps-1.0b1.tar.gz) = 00fb5ac8c3769473b53ec4ad20e9b7cb
diff --git a/print/html2ps-letter/files/patch-aa b/print/html2ps-letter/files/patch-aa
new file mode 100644
index 0000000..8f46908
--- /dev/null
+++ b/print/html2ps-letter/files/patch-aa
@@ -0,0 +1,30 @@
+--- install.orig Sat Sep 13 14:37:20 1997
++++ install Sun May 17 21:29:55 1998
+@@ -1,5 +1,5 @@
+ : # Use perl
+-eval 'exec perl -S $0 "$@"'
++eval 'exec !!PERL5!! -S $0 "$@"'
+ if $running_under_some_shell;
+
+ $vid=101;
+@@ -121,7 +121,7 @@
+
+ chop ($cd = `pwd`);
+
+-$prefix = "/usr/local";
++$prefix = "!!PREFIX!!";
+
+ &getval($ans, "y",
+ "\nBy default all files will be installed in subdirectories 'bin', 'lib',\n"
+@@ -181,9 +181,9 @@
+ $ht = "\nTo use the automatic hyphenation feature, hyphenation pattern files\n"
+ ."from the TeX distribution are needed.";
+ $cophy = 1;
+-if($exist{'TeX'}) {
++if($exist{'share'}) {
+ $hfile = "";
+- ($texdir = $dir{'TeX'}) =~ s|/bin$||;
++ ($texdir = $dir{'share'}) =~ s|/bin$||;
+ SW:for("texmf/tex/generic/hyphen","macros","inputs","lib/macros",
+ "lib/inputs","lib/tex/macros","lib/tex/inputs") {
+ if(-f "$texdir/$_/ushyph1.tex") {
diff --git a/print/html2ps-letter/files/patch-ab b/print/html2ps-letter/files/patch-ab
new file mode 100644
index 0000000..8ed6d17
--- /dev/null
+++ b/print/html2ps-letter/files/patch-ab
@@ -0,0 +1,9 @@
+--- html2ps.orig Sun May 17 21:29:01 1998
++++ html2ps Sun May 17 21:29:26 1998
+@@ -1,5 +1,5 @@
+ : # Use perl
+-eval 'exec perl -S $0 "$@"'
++eval 'exec !!PERL5!! -S $0 "$@"'
+ if $running_under_some_shell;
+
+ # This is html2ps version 1.0 beta1, an HTML-to-PostScript converter.
diff --git a/print/html2ps-letter/pkg-comment b/print/html2ps-letter/pkg-comment
new file mode 100644
index 0000000..06b1c5a
--- /dev/null
+++ b/print/html2ps-letter/pkg-comment
@@ -0,0 +1 @@
+HTML to PostScript converter
diff --git a/print/html2ps-letter/pkg-descr b/print/html2ps-letter/pkg-descr
new file mode 100644
index 0000000..2e2b5f0
--- /dev/null
+++ b/print/html2ps-letter/pkg-descr
@@ -0,0 +1,21 @@
+- Much from HTML 4.0 - that is relevant for printing - is supported
+ (incidentally, the PostScript and PDF versions of the HTML 4.0 draft,
+ were generated using html2ps). For example, all character entities
+ (except &zwnj;, &zwj;, &lrm;, and &rlm;) are supported.
+- Many possibilities to control the appearance. Starting with this version,
+ this is mostly done using configuration files.
+- Support for processing multiple documents, also automatically by
+ recursively following links.
+- A table of contents can be generated, either from the links in a document,
+ or automatically from document headings.
+- Configurable page headers/footers, that for example can contain
+ document title, URL, page number, current heading, and date.
+- When converting the PostScript document to PDF - using some other
+ program such as version 5.0 or later of Aladdin Ghostscript, or
+ Adobe Acrobat Distiller - the original hyperlinks in the HTML
+ documents will be retained in the PDF document.
+- Automatic hyphenation and text justification can be selected.
+
+ Home page:
+
+ http://www.tdb.uu.se/~jan/html2ps.html
diff --git a/print/html2ps-letter/pkg-plist b/print/html2ps-letter/pkg-plist
new file mode 100644
index 0000000..a97f092
--- /dev/null
+++ b/print/html2ps-letter/pkg-plist
@@ -0,0 +1,6 @@
+bin/html2ps
+lib/html2ps/html2ps.html
+lib/html2ps/html2psrc
+lib/html2ps/hyphen.tex
+man/man1/html2ps.1.gz
+man/man5/html2psrc.5.gz
diff --git a/print/html2ps-letter/scripts/pre-configure b/print/html2ps-letter/scripts/pre-configure
new file mode 100644
index 0000000..8bf76ba
--- /dev/null
+++ b/print/html2ps-letter/scripts/pre-configure
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+perl -pi -e "s=!!PREFIX!!=$PREFIX=" ${WRKSRC}/install
+perl -pi -e "s=!!PERL5!!=/usr/local/bin/perl=" ${WRKSRC}/install
+perl -pi -e "s=!!PERL5!!=/usr/local/bin/perl=" ${WRKSRC}/html2ps
+
+exit 0
OpenPOWER on IntegriCloud