xmlto stable port information

Package: xmlto
Version: 0.0.24
Revision: 1
Source: https://fedorahosted.org/releases/x/m/xmlto/%n-%v.tar.bz2
Source-MD5: 9d45bbe43f7c66c6bf585ba6635df31a
Depends: libxml2-bin, libxml2-shlibs, libxslt-bin, libxslt-shlibs, docbook-bundle, docbook-xsl, w3m (>= 0.5.1-1008) | lynx (>= 2.8.5-3) | elinks (>= 0.11.2-2) | links, getoptbin
BuildDepends: libxml2, libxslt, docbook-dtd, docbook-xsl, fink (>= 0.24.12-1)
SetCFLAGS: -Os
ConfigureParams: --mandir=%p/share/man --disable-dependency-tracking
PatchFile: %n.patch
PatchFile-MD5: 870fb3b84a12a6801751acd363709b2c
PatchScript: <<
## %{default_script}
perl -pi -e 's|/usr|%p|g' format/docbook/txt
<<
InfoTest: <<
TestScript: make check || exit 2
<<
InstallScript: make install DESTDIR=%d
DocFiles: AUTHORS ChangeLog COPYING FAQ INSTALL NEWS README
Description: Tool to convert xml files to other formats
DescDetail: <<
xmlto is a front-end to an XSL toolchain. It chooses an
appropriate stylesheet for the conversion you want and
applies it using xsltproc. It also performs any necessary
post-processing.
Supported formats are: dvi, fo, html, html-nochunks,
htmlhelp, javahelp, man, pdf, ps, txt, xhtml, xhtml-nochunks
from DocBook; and dvi, pdf, ps from xsl-fo.
DVI, PDF and PostScript outputs require PassiveTex, not in
Fink and way too old. You may use fop or jadetex to
produce those outputs.
txt format requires lynx, links, elinks or w3m.
See the xmlto man page for usage.
It installs another script xmlif, which allows conditional
parsing. See the xmlif man page for usage.
<<
DescPort: <<
Patching format/docbook/txt to get rid of the
hardcoded /usr path.
Use explicitly the default install script to get the right
prefix, thanks to Jean-Francois Mertens.
dmacks added support for elinks for html->txt conversion.
Changed order of arguments in call to find to cope with
gnu find in findutils package, thanks to Max Horn.
<<
License: GPL
Homepage: https://fedorahosted.org/xmlto
DescPackaging: Formerly maintained by Michele Garoche
Maintainer: None

xmlto stable port .patch

diff -Nurd xmlto-0.0.18-orig/format/docbook/txt xmlto-0.0.18/format/docbook/txt
--- xmlto-0.0.18-orig/format/docbook/txt 2003-11-30 17:56:45.000000000 +0100
+++ xmlto-0.0.18/format/docbook/txt 2007-01-01 17:16:09.000000000 +0100
@@ -10,6 +10,10 @@
then
CONVERT=/usr/bin/links
ARGS="-dump"
+elif [ -x /usr/bin/elinks ]
+then
+ CONVERT=/usr/bin/elinks
+ ARGS="-force-html -dump -no-numbering"
else
echo >&2 "No way to convert HTML to text found."
exit 1
diff -Nurd xmlto-0.0.18-orig/xmlto.in xmlto-0.0.18/xmlto.in
--- xmlto-0.0.18-orig/xmlto.in 2004-01-02 13:03:24.000000000 +0100
+++ xmlto-0.0.18/xmlto.in 2007-01-01 17:17:45.000000000 +0100
@@ -47,7 +47,7 @@
EOF
if [ -d "$FORMAT_DIR" ]
then
- for source in $(${FIND} "$FORMAT_DIR" -type d -maxdepth 1)
+ for source in $(${FIND} "$FORMAT_DIR" -maxdepth 1 -type d)
do
if [ "$source" = "$FORMAT_DIR" ]; then continue; fi

xmlto _unstable_ port .patch