added gtk-doc

svn path=/nixpkgs/trunk/; revision=13115
This commit is contained in:
Marc Weber 2008-10-26 08:39:38 +00:00
parent 8c3f202c09
commit df75b55ba6
3 changed files with 33 additions and 1 deletions

View File

@ -295,6 +295,11 @@ rec {
inherit (xlibs) libXmu;
input = desktop.gnomeutils;
};
gtkdoc = import ./gtkdoc.nix {
inherit (platform) gtkdoc;
inherit stdenv args;
};
};

View File

@ -0,0 +1,26 @@
{ stdenv, gtkdoc, args }: with args;
stdenv.mkDerivation {
inherit (gtkdoc) name src;
inherit docbook_xml_dtd_412;
buildInputs = [ perl
libxml2
xmlto docbook2x docbook_xsl docbook_xml_dtd_412 libxslt ];
# maybe there is a better way to pass the needed dtd and xsl files
# "-//OASIS//DTD DocBook XML V4.1.2//EN" and "http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"
preConfigure = ''
ensureDir $out/nix-support
cat > $out/nix-support/catalog.xml << EOF
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<nextCatalog catalog="${docbook_xsl}/xml/xsl/docbook/catalog.xml" />
<nextCatalog catalog="${docbook_xml_dtd_412}/xml/dtd/docbook/catalog.xml" />
</catalog>
EOF
configureFlags="--with-xml-catalog=$out/nix-support/catalog.xml"
'';
}

View File

@ -8221,7 +8221,8 @@ let
perl perlXMLParser docbook_xml_dtd_42 docbook_xml_dtd_412
gettext x11 libtiff libjpeg libpng gtkLibs xlibs bzip2
libcm python dbus_glib ncurses which libxml2Python
iconnamingutils openssl hal samba fam libgcrypt libtasn1;
iconnamingutils openssl hal samba fam libgcrypt libtasn1
xmlto docbook2x docbook_xsl;
});
kdelibs = import ../desktops/kde/kdelibs {