pkgsrc/textproc/xmlto/patches/patch-aa
wiz 54b1a36c8c Update to 0.0.21:
0.0.21 (stable)
  added experimental support for dblatex(needs installed
  dblatex package)
  fixed issue with cp -a option on non-gnu systems
  non-mandatory support for libpaper

0.0.20 (stable)
  added experimental fop support(needs installed fop package)
  possibility to read a stylesheet from STDIN
  some small fixes/changes in docbook formats and xmlto script

0.0.19 (stable)
	added supported for basename with spaces, stringparam
  option for passing argument to stylesheet, bash no
  longer hardcoded, added option for not cleaning temp
  files for diagnostics.
2008-11-10 23:01:38 +00:00

30 lines
804 B
Text

$NetBSD: patch-aa,v 1.2 2008/11/10 23:01:38 wiz Exp $
This patch makes "xmlto txt" usable on pkgsrc systems, which usually do
not have these binaries in /usr/bin.
--- format/docbook/txt.orig 2008-05-24 17:43:05.000000000 +0000
+++ format/docbook/txt
@@ -1,16 +1,16 @@
case "$USE_BACKEND" in
DEFAULT|DBLATEX)
- if [ -x /usr/bin/w3m ]
+ if (type w3m 1>/dev/null 2>&1)
then
- CONVERT=/usr/bin/w3m
+ CONVERT=w3m
ARGS="-T text/html -dump"
- elif [ -x /usr/bin/lynx ]
+ elif (type lynx 1>/dev/null 2>&1)
then
- CONVERT=/usr/bin/lynx
+ CONVERT=lynx
ARGS="-force_html -dump -nolist -width=72"
- elif [ -x /usr/bin/links ]
+ elif (type links 1>/dev/null 2>&1)
then
- CONVERT=/usr/bin/links
+ CONVERT=links
ARGS="-dump"
else
echo >&2 "No way to convert HTML to text found."