Add docbook2x.

svn path=/nixpkgs/trunk/; revision=11051
This commit is contained in:
Ludovic Courtès 2008-03-11 09:34:17 +00:00
parent d36558d45a
commit 92246defa5
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ fetchurl, stdenv, perl, perlXMLSAX
, groff, libxml2, libxslt, gnused
, makeWrapper }:
stdenv.mkDerivation rec {
name = "docbook2X-0.8.8";
src = fetchurl {
url = "mirror://sourceforge/docbook2x/${name}.tar.gz";
sha256 = "0ifwzk99rzjws0ixzimbvs83x6cxqk1xzmg84wa1p7bs6rypaxs0";
};
buildInputs = [ perl groff libxml2 libxslt makeWrapper ];
propagatedBuildInputs = [ perlXMLSAX ];
postInstall = ''
perl_programs="db2x_manxml db2x_texixml db2x_xsltproc
docbook2man docbook2texi";
for i in $perl_programs
do
wrapProgram $out/bin/$i --prefix PERL5LIB : \
"${perlXMLSAX}/lib/site_perl"
done
wrapProgram $out/bin/sgml2xml-isoent --prefix PATH : \
"${gnused}/bin"
'';
meta = {
description = ''docbook2X is a software package that converts DocBook
documents into the traditional Unix man page format
and the GNU Texinfo format.'';
license = "MIT-style";
homepage = http://docbook2x.sourceforge.net/;
};
}

View File

@ -503,6 +503,11 @@ rec {
inherit fetchurl stdenv coreutils;
});
docbook2x = import ../tools/typesetting/docbook2x {
inherit fetchurl stdenv perl perlXMLSAX
gnused groff libxml2 libxslt makeWrapper;
};
dosfstoolsFun = lib.sumArgs (selectVersion ../tools/misc/dosfstools "2.11deb")
{
inherit builderDefs;