diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-05-04 13:32:04 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-05-04 13:32:04 +0000 |
commit | d5086fd5bd7ac00b87384ad291dd02a74496e77a (patch) | |
tree | d91ec04bf26f702c6364cb54e106490b78210b08 /pkgs/tools/typesetting/xmlto | |
parent | be07b7f60d1b5dda9e844278b4ed99db4636c33b (diff) |
xmlto 0.0.23.
svn path=/nixpkgs/trunk/; revision=21595
Diffstat (limited to 'pkgs/tools/typesetting/xmlto')
-rw-r--r-- | pkgs/tools/typesetting/xmlto/default.nix | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/pkgs/tools/typesetting/xmlto/default.nix b/pkgs/tools/typesetting/xmlto/default.nix index 85d4ee010b387..4237723859589 100644 --- a/pkgs/tools/typesetting/xmlto/default.nix +++ b/pkgs/tools/typesetting/xmlto/default.nix @@ -1,13 +1,12 @@ { fetchurl, stdenv, flex, libxml2, libxslt , docbook_xml_dtd_42, docbook_xsl, w3m -, bash, getopt, mktemp, findutils -, makeWrapper }: +, bash, getopt, makeWrapper }: stdenv.mkDerivation rec { - name = "xmlto-0.0.20"; + name = "xmlto-0.0.23"; src = fetchurl { - url = "http://cyberelk.net/tim/data/xmlto/stable/${name}.tar.bz2"; - sha256 = "1s71khb0ycawhjpr19zrrqk0jac11jgwvxnajjkm2656p5qikylz"; + url = "http://fedorahosted.org/releases/x/m/xmlto/${name}.tar.bz2"; + sha256 = "1i5iihx304vj52nik42drs7z6z58m9szahng113r4mgd1mvb5zx9"; }; patchPhase = '' @@ -15,21 +14,17 @@ stdenv.mkDerivation rec { --replace "/bin/bash" "${bash}/bin/bash" substituteInPlace "xmlto.in" \ --replace "/usr/bin/locale" "$(type -P locale)" - ''; - - configureFlags = '' - --with-mktemp=${mktemp}/bin/mktemp - --with-find=${findutils}/bin/find - --with-bash=${bash}/bin/bash - --with-getopt=${getopt}/bin/getopt + substituteInPlace "xmlto.in" \ + --replace "mktemp" "$(type -P mktemp)" ''; # `libxml2' provides `xmllint', needed at build-time and 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 = '' - 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. substituteInPlace "$out/share/xmlto/format/docbook/txt" \ @@ -47,8 +42,9 @@ stdenv.mkDerivation rec { ''; license = "GPLv2+"; - homepage = http://cyberelk.net/tim/software/xmlto/; + homepage = https://fedorahosted.org/xmlto/; maintainers = [ stdenv.lib.maintainers.ludo ]; + platforms = stdenv.lib.platforms.gnu; # arbitrary choice }; } |