xmlto 0.0.23.
svn path=/nixpkgs/trunk/; revision=21595
This commit is contained in:
parent
be07b7f60d
commit
d5086fd5bd
@ -1,13 +1,12 @@
|
|||||||
{ fetchurl, stdenv, flex, libxml2, libxslt
|
{ fetchurl, stdenv, flex, libxml2, libxslt
|
||||||
, docbook_xml_dtd_42, docbook_xsl, w3m
|
, docbook_xml_dtd_42, docbook_xsl, w3m
|
||||||
, bash, getopt, mktemp, findutils
|
, bash, getopt, makeWrapper }:
|
||||||
, makeWrapper }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "xmlto-0.0.20";
|
name = "xmlto-0.0.23";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://cyberelk.net/tim/data/xmlto/stable/${name}.tar.bz2";
|
url = "http://fedorahosted.org/releases/x/m/xmlto/${name}.tar.bz2";
|
||||||
sha256 = "1s71khb0ycawhjpr19zrrqk0jac11jgwvxnajjkm2656p5qikylz";
|
sha256 = "1i5iihx304vj52nik42drs7z6z58m9szahng113r4mgd1mvb5zx9";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
@ -15,21 +14,17 @@ stdenv.mkDerivation rec {
|
|||||||
--replace "/bin/bash" "${bash}/bin/bash"
|
--replace "/bin/bash" "${bash}/bin/bash"
|
||||||
substituteInPlace "xmlto.in" \
|
substituteInPlace "xmlto.in" \
|
||||||
--replace "/usr/bin/locale" "$(type -P locale)"
|
--replace "/usr/bin/locale" "$(type -P locale)"
|
||||||
'';
|
substituteInPlace "xmlto.in" \
|
||||||
|
--replace "mktemp" "$(type -P mktemp)"
|
||||||
configureFlags = ''
|
|
||||||
--with-mktemp=${mktemp}/bin/mktemp
|
|
||||||
--with-find=${findutils}/bin/find
|
|
||||||
--with-bash=${bash}/bin/bash
|
|
||||||
--with-getopt=${getopt}/bin/getopt
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# `libxml2' provides `xmllint', needed at build-time and run-time.
|
# `libxml2' provides `xmllint', needed at build-time and run-time.
|
||||||
# `libxslt' provides `xsltproc', used by `xmlto' at run-time.
|
# `libxslt' provides `xsltproc', used by `xmlto' at run-time.
|
||||||
buildInputs = [ libxml2 libxslt docbook_xml_dtd_42 docbook_xsl makeWrapper ];
|
buildInputs = [ libxml2 libxslt docbook_xml_dtd_42 docbook_xsl getopt makeWrapper ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/xmlto --prefix PATH : "${libxslt}/bin:${libxml2}/bin"
|
wrapProgram "$out/bin/xmlto" \
|
||||||
|
--prefix PATH : "${libxslt}/bin:${libxml2}/bin:${getopt}/bin"
|
||||||
|
|
||||||
# `w3m' is needed for HTML to text conversions.
|
# `w3m' is needed for HTML to text conversions.
|
||||||
substituteInPlace "$out/share/xmlto/format/docbook/txt" \
|
substituteInPlace "$out/share/xmlto/format/docbook/txt" \
|
||||||
@ -47,8 +42,9 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
license = "GPLv2+";
|
license = "GPLv2+";
|
||||||
homepage = http://cyberelk.net/tim/software/xmlto/;
|
homepage = https://fedorahosted.org/xmlto/;
|
||||||
|
|
||||||
maintainers = [ stdenv.lib.maintainers.ludo ];
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
||||||
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1884,8 +1884,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 w3m
|
docbook_xml_dtd_42 docbook_xsl w3m bash getopt makeWrapper;
|
||||||
bash getopt mktemp findutils makeWrapper;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
xmltv = import ../tools/misc/xmltv {
|
xmltv = import ../tools/misc/xmltv {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user