xmlto: Add dependency on `w3m' for HTML to text conversions.

svn path=/nixpkgs/trunk/; revision=12923
This commit is contained in:
Ludovic Courtès 2008-09-26 08:56:03 +00:00
parent 3d02ab54dd
commit 3a9d5063bd
2 changed files with 15 additions and 6 deletions

View File

@ -1,5 +1,5 @@
{ fetchurl, stdenv, flex, libxml2, libxslt { fetchurl, stdenv, flex, libxml2, libxslt
, docbook_xml_dtd_42, docbook_xsl , docbook_xml_dtd_42, docbook_xsl, w3m
, glibc, bash, getopt, mktemp, findutils , glibc, bash, getopt, mktemp, findutils
, makeWrapper }: , makeWrapper }:
@ -30,13 +30,22 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
wrapProgram $out/bin/xmlto --prefix PATH : "${libxslt}/bin:${libxml2}/bin" wrapProgram $out/bin/xmlto --prefix PATH : "${libxslt}/bin:${libxml2}/bin"
# `w3m' is needed for HTML to text conversions.
substituteInPlace "$out/share/xmlto/format/docbook/txt" \
--replace "/usr/bin/w3m" "${w3m}/bin/w3m"
''; '';
meta = { meta = {
description = ''xmlto is a front-end to an XSL toolchain. It chooses description = "xmlto, a front-end to an XSL toolchain";
an appropriate stylesheet for the conversion you want
and applies it using an external XSL-T processor. It longDescription = ''
also performs any necessary post-processing.''; xmlto is a front-end to an XSL toolchain. It chooses an
appropriate stylesheet for the conversion you want and applies
it using an external XSL-T processor. It also performs any
necessary post-processing.
'';
license = "GPLv2+"; license = "GPLv2+";
homepage = http://cyberelk.net/tim/software/xmlto/; homepage = http://cyberelk.net/tim/software/xmlto/;
}; };

View File

@ -1267,7 +1267,7 @@ let
xmlto = import ../tools/typesetting/xmlto { xmlto = import ../tools/typesetting/xmlto {
inherit fetchurl stdenv flex libxml2 libxslt inherit fetchurl stdenv flex libxml2 libxslt
docbook_xml_dtd_42 docbook_xsl docbook_xml_dtd_42 docbook_xsl w3m
glibc bash getopt mktemp findutils makeWrapper; glibc bash getopt mktemp findutils makeWrapper;
}; };