diff options
author | kim <kim> | 2000-04-23 05:55:02 +0000 |
---|---|---|
committer | kim <kim> | 2000-04-23 05:55:02 +0000 |
commit | 6230482aaf49b57acb2dee50a1026e3bc8d60ee1 (patch) | |
tree | 59023e5957bb31418b17b5c5b4dcb57eeafe2c1c /print/html2ps | |
parent | 96153ab4faab342b9dde7efd1e4fe61d37d305cf (diff) | |
download | pkgsrc-6230482aaf49b57acb2dee50a1026e3bc8d60ee1.tar.gz |
The program html2ps converts HTML to PostScript.
Diffstat (limited to 'print/html2ps')
-rw-r--r-- | print/html2ps/Makefile | 28 | ||||
-rw-r--r-- | print/html2ps/files/html2psrc | 24 | ||||
-rw-r--r-- | print/html2ps/files/md5 | 3 | ||||
-rw-r--r-- | print/html2ps/files/patch-sum | 3 | ||||
-rw-r--r-- | print/html2ps/patches/patch-aa | 117 | ||||
-rw-r--r-- | print/html2ps/pkg/COMMENT | 1 | ||||
-rw-r--r-- | print/html2ps/pkg/DESCR | 10 | ||||
-rw-r--r-- | print/html2ps/pkg/PLIST | 8 |
8 files changed, 194 insertions, 0 deletions
diff --git a/print/html2ps/Makefile b/print/html2ps/Makefile new file mode 100644 index 00000000000..ddd4a7b26c7 --- /dev/null +++ b/print/html2ps/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/04/23 05:55:02 kim Exp $ +# + +DISTNAME= html2ps-1.0b1 +CATEGORIES= www +MASTER_SITES= http://www.tdb.uu.se/~jan/ + +MAINTAINER= kim@tac.nyc.ny.us +HOMEPAGE= http://www.tdb.uu.se/~jan/html2ps.html + +DEPENDS+= ImageMagick-*:../../graphics/ImageMagick +DEPENDS+= ghostscript-*:../../print/ghostscript5 +DEPENDS+= jpeg-6b:../../graphics/jpeg +DEPENDS+= p5-PerlMagick-*:../../graphics/p5-PerlMagick +DEPENDS+= p5-libwww-*:../../www/p5-libwww +DEPENDS+= teTeX-bin>=1.0.6:../../print/teTeX-bin +DEPENDS+= weblint-*:../../www/weblint + +USE_PERL5= yes + +NO_CONFIGURE= yes +NO_BUILD= yes + +do-install: + @cd ${WRKSRC} && ./install ${PREFIX} + @${INSTALL_DATA} ${WRKSRC}/sample ${PREFIX}/share/html2ps/sample.rc + +.include "../../mk/bsd.pkg.mk" diff --git a/print/html2ps/files/html2psrc b/print/html2ps/files/html2psrc new file mode 100644 index 00000000000..0b7c22d95a4 --- /dev/null +++ b/print/html2ps/files/html2psrc @@ -0,0 +1,24 @@ +/* $NetBSD: html2psrc,v 1.1.1.1 2000/04/23 05:55:02 kim Exp $ */ +/* Global configuration file for html2ps */ + +@html2ps { + package { + ImageMagick: 1; + PerlMagick: 1; + djpeg: 1; + TeX: 1; + dvips: 1; + Ghostscript: 1; + check: weblint; + libwww-perl: 1; + path: "@LOCALBASE@/bin"; + } + paper { + type: letter; + } + hyphenation { + en { + file: "@LOCALBASE@/share/texmf/tex/generic/hyphen/hyphen.tex"; + } + } +} diff --git a/print/html2ps/files/md5 b/print/html2ps/files/md5 new file mode 100644 index 00000000000..db18a1b8db9 --- /dev/null +++ b/print/html2ps/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/04/23 05:55:02 kim Exp $ + +MD5 (html2ps-1.0b1.tar.gz) = 00fb5ac8c3769473b53ec4ad20e9b7cb diff --git a/print/html2ps/files/patch-sum b/print/html2ps/files/patch-sum new file mode 100644 index 00000000000..b8a64634074 --- /dev/null +++ b/print/html2ps/files/patch-sum @@ -0,0 +1,3 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/04/23 05:55:02 kim Exp $ + +MD5 (patch-aa) = 4bca91e2120e1ec8dcfcf589560c85f2 diff --git a/print/html2ps/patches/patch-aa b/print/html2ps/patches/patch-aa new file mode 100644 index 00000000000..672b6dca2b5 --- /dev/null +++ b/print/html2ps/patches/patch-aa @@ -0,0 +1,117 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/04/23 05:55:02 kim Exp $ + +--- install.orig Sat Sep 13 08:37:20 1997 ++++ install Sun Apr 23 01:39:56 2000 +@@ -42,8 +42,8 @@ + the directories where the files should be placed. + EOD + +-&getval($goon, "y", "\nDo you want to proceed with the installation?"); +-die "\n" if($goon!~/^y/i); ++#&getval($goon, "y", "\nDo you want to proceed with the installation?"); ++#die "\n" if($goon!~/^y/i); + + print "\n"; + for $req (@perl) { +@@ -121,18 +121,19 @@ + + chop ($cd = `pwd`); + +-$prefix = "/usr/local"; ++$prefix = "$ARGV[0]"; + +-&getval($ans, "y", +- "\nBy default all files will be installed in subdirectories 'bin', 'lib',\n" +- ."and 'man' in a common directory. Is this OK?"); +-$def = $ans=~/^y/i; +- +-if($def) { +- &getval($prefix, "$prefix", "\nEnter the name of this directory"); +- &fixdir($prefix); +- &mkdir($prefix,0); +-} ++#&getval($ans, "y", ++# "\nBy default all files will be installed in subdirectories 'bin', 'lib',\n" ++# ."and 'man' in a common directory. Is this OK?"); ++#$def = $ans=~/^y/i; ++$def = 1; ++ ++#if($def) { ++# &getval($prefix, "$prefix", "\nEnter the name of this directory"); ++# &fixdir($prefix); ++# &mkdir($prefix,0); ++#} + + if($def) { + $bindir = "$prefix/bin"; +@@ -145,7 +146,7 @@ + &mkdir($bindir,$def); + + if($def) { +- $glob = "$prefix/lib/html2ps"; ++ $glob = "$prefix/share/html2ps"; + } else { + &getval($glob, "$prefix/lib/html2ps", + "\nEnter the the directory where the global configuration file for\n" +@@ -184,7 +185,7 @@ + if($exist{'TeX'}) { + $hfile = ""; + ($texdir = $dir{'TeX'}) =~ s|/bin$||; +- SW:for("texmf/tex/generic/hyphen","macros","inputs","lib/macros", ++ SW:for("share/texmf/tex/generic/hyphen","macros","inputs","lib/macros", + "lib/inputs","lib/tex/macros","lib/tex/inputs") { + if(-f "$texdir/$_/ushyph1.tex") { + $hyph = "$texdir/$_"; +@@ -198,15 +199,15 @@ + } + } + if($hfile) { +- &getval($hdef, "y", "$ht I believe that I have found\nthe pattern " +- ."file for English in your TeX installation:\n\n " +- ."$hfile\n\nWould you like to use this instead of the " +- ."file included with html2ps?"); +- if($hdef=~/^y/i) { ++# &getval($hdef, "y", "$ht I believe that I have found\nthe pattern " ++# ."file for English in your TeX installation:\n\n " ++# ."$hfile\n\nWould you like to use this instead of the " ++# ."file included with html2ps?"); ++# if($hdef=~/^y/i) { + $cophy = 0; +- } else { +- $hfile = ""; +- } ++# } else { ++# $hfile = ""; ++# } + } else { + &getval($hfile, "", "$ht I cannot find the pattern\nfile for English " + ."in your TeX installation. (It should be called\n'hyphen.tex', " +@@ -246,7 +247,7 @@ + } + + if($def) { +- $html = "$prefix/lib/html2ps"; ++ $html = "$prefix/share/html2ps"; + } else { + &getval($html, "$prefix/lib/html2ps", + "\nEnter a directory where to put the HTML document describing\nhtml2ps"); +@@ -254,12 +255,13 @@ + } + &mkdir($html,$def); + +-$paper = ""; +-&getval($format, "A4", +- "\nEnter the default paper type, possible choices are:\nA0, A1, A2, A3, A4," +- ." A5, A6, A7, A8, A9, A10,\nB0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10,\n" +- ."letter, legal, arche, archd, archc, archb, archa,\nflsa, flse, halfletter," +- ." 11x17, ledger, other"); ++$format = "letter"; ++#$paper = ""; ++#&getval($format, "A4", ++# "\nEnter the default paper type, possible choices are:\nA0, A1, A2, A3, A4," ++# ." A5, A6, A7, A8, A9, A10,\nB0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10,\n" ++# ."letter, legal, arche, archd, archc, archb, archa,\nflsa, flse, halfletter," ++# ." 11x17, ledger, other"); + if($format !~ /^other$/i) { + $paper .= " type: $format;"; + } else { diff --git a/print/html2ps/pkg/COMMENT b/print/html2ps/pkg/COMMENT new file mode 100644 index 00000000000..06b1c5a9fac --- /dev/null +++ b/print/html2ps/pkg/COMMENT @@ -0,0 +1 @@ +HTML to PostScript converter diff --git a/print/html2ps/pkg/DESCR b/print/html2ps/pkg/DESCR new file mode 100644 index 00000000000..9977c6effc1 --- /dev/null +++ b/print/html2ps/pkg/DESCR @@ -0,0 +1,10 @@ +The program html2ps converts HTML to PostScript. The HTML +code can be retrieved from one or more URL:s or local +files, specified as parameters on the command line. If no +parameter is given, html2ps reads from standard input. + +Note: To avoid unnecessary network traffic, one can +rebuild an already generated PostScript file with new +options. This is done by running html2ps with the new +options, and with the old PostScript file as input (not +applicable for all options). diff --git a/print/html2ps/pkg/PLIST b/print/html2ps/pkg/PLIST new file mode 100644 index 00000000000..1ad1d1092da --- /dev/null +++ b/print/html2ps/pkg/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/04/23 05:55:02 kim Exp $ +bin/html2ps +man/man1/html2ps.1 +man/man5/html2psrc.5 +share/html2ps/html2ps.html +share/html2ps/html2psrc +share/html2ps/sample.rc +@dirrm share/html2ps |