docbook5: Install a catalog.xml
This commit is contained in:
parent
5c01205bf7
commit
9adc6fe276
@ -1,17 +0,0 @@
|
|||||||
source $stdenv/setup
|
|
||||||
|
|
||||||
unpackFile $src
|
|
||||||
|
|
||||||
cd docbook-*
|
|
||||||
|
|
||||||
mkdir -p $out/xml/rng
|
|
||||||
cp -prv rng $out/xml/rng/docbook
|
|
||||||
|
|
||||||
mkdir -p $out/xml/dtd
|
|
||||||
cp -prv dtd $out/xml/dtd/docbook
|
|
||||||
|
|
||||||
mkdir -p $out/share/doc
|
|
||||||
cp -prv docs $out/share/doc/docbook
|
|
||||||
|
|
||||||
mkdir -p $out/share/docbook
|
|
||||||
cp -prv tools $out/share/docbook/
|
|
@ -1,8 +1,7 @@
|
|||||||
{stdenv, fetchurl, unzip}:
|
{ lib, stdenv, fetchurl, unzip }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "docbook5-5.0";
|
name = "docbook5-5.0";
|
||||||
builder = ./builder.sh;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www.docbook.org/xml/5.0/docbook-5.0.zip;
|
url = http://www.docbook.org/xml/5.0/docbook-5.0.zip;
|
||||||
@ -10,4 +9,27 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ unzip ];
|
buildInputs = [ unzip ];
|
||||||
|
|
||||||
|
installPhase =
|
||||||
|
''
|
||||||
|
dst=$out/share/xml/docbook-5.0
|
||||||
|
mkdir -p $dst
|
||||||
|
cp -prv * $dst/
|
||||||
|
|
||||||
|
substituteInPlace $dst/catalog.xml --replace 'uri="' "uri=\"$dst/"
|
||||||
|
|
||||||
|
rm -rf $dst/docs $dst/ChangeLog
|
||||||
|
|
||||||
|
# Backwards compatibility. Will remove eventually.
|
||||||
|
mkdir -p $out/xml/rng $out/xml/dtd
|
||||||
|
ln -s $dst/rng $out/xml/rng/docbook
|
||||||
|
ln -s $dst/dtd $out/xml/dtd/docbook
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Schemas for DocBook 5.0, a semantic markup language for technical documentation";
|
||||||
|
homepage = http://docbook.org/xml/5.0/;
|
||||||
|
maintainers = [ lib.maintainers.eelco ];
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user