Browse Source

* added docbook-xml (4.5) - DocBook XML DTDs

git-svn-id: svn://svn.opensde.net/opensde/package/trunk@21609 10447126-35f2-4685-b0cf-6dd780d3921f
early
Alejandro Mery 18 years ago
parent
commit
6a7e43d0ec
  1. 77
      textproc/docbook-xml/docbook-xml.conf
  2. 41
      textproc/docbook-xml/docbook-xml.desc
  3. 28
      textproc/docbook-xml/pkg_libxml_post.conf

77
textproc/docbook-xml/docbook-xml.conf

@ -0,0 +1,77 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../docbook-xml/docbook-xml.conf
# Copyright (C) 2007 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
makeopt=
makeinstopt=
autoextract=0
datadir="/usr/share/xml/docbook"
hook_add postmake 5 'docbook_install'
docbook_install() {
local catalog=$root/etc/xml/docbook
local dtdver=$( echo $xsrctar | sed -n -e 's,^docbook-xml-\(.*\)\.zip$,\1,p' )
local URI= dtddir=
if [ -n "$dtdver" ]; then
echo_status "DocBook XML DTD V$dtdver"
dtddir="$datadir/xml-dtd-$dtdver"
URI="http://www.oasis-open.org/docbook/xml/$dtdver"
rm -rf "$root$dtddir"
mkdir -p "$root$dtddir"
echo "Installing..."
unzip -d "$root$dtddir" $( match_source_file -p "$xsrctar" )
echo "Populating /etc/xml/docbook"
[ -s "$catalog" ] || xmlcatalog --noout --create "$catalog"
xmlcatalog --noout \
--add 'public' "-//OASIS//ELEMENTS DocBook XML Information Pool V$dtdver//EN" "file://$dtddir/dbpoolx.mod" \
--add 'public' "-//OASIS//DTD DocBook XML V$dtdver//EN" "file://$dtddir/docbookx.dtd" \
--add 'public' "-//OASIS//ENTITIES DocBook XML Character Entities V$dtdver//EN" "file://$dtddir/dbcentx.mod" \
--add 'public' "-//OASIS//ENTITIES DocBook XML Notations V$dtdver//EN" "file://$dtddir/dbnotnx.mod" \
--add 'public' "-//OASIS//ENTITIES DocBook XML Additional General Entities V$dtdver//EN" "file://$dtddir/dbgenent.mod" \
--add 'public' "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V$dtdver//EN" "file://$dtddir/dbhierx.mod" \
--add 'public' "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "file://$dtddir/soextblx.dtd" \
--add 'public' "-//OASIS//DTD DocBook XML CALS Table Model V$dtdver//EN" "file://$dtddir/calstblx.dtd" \
--add 'rewriteSystem' "$URI" "$dtddir" \
--add 'rewriteURI' "$URI" "$dtddir" \
--add 'public' "ISO 8879:1986//ENTITIES Publishing//EN" "file://$dtddir/ent/iso-pub.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Greek Letters//EN" "file://$dtddir/ent/iso-grk1.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" "file://$dtddir/ent/iso-box.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Greek Symbols//EN" "file://$dtddir/ent/iso-grk3.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" "file://$dtddir/ent/iso-amsn.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" "file://$dtddir/ent/iso-num.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" "file://$dtddir/ent/iso-grk4.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "file://$dtddir/ent/iso-dia.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" "file://$dtddir/ent/iso-grk2.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" "file://$dtddir/ent/iso-amsa.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" "file://$dtddir/ent/iso-amso.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" "file://$dtddir/ent/iso-cyr1.ent" \
--add 'public' "ISO 8879:1986//ENTITIES General Technical//EN" "file://$dtddir/ent/iso-tech.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" "file://$dtddir/ent/iso-amsc.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Added Latin 1//EN" "file://$dtddir/ent/iso-lat1.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" "file://$dtddir/ent/iso-amsb.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Added Latin 2//EN" "file://$dtddir/ent/iso-lat2.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" "file://$dtddir/ent/iso-amsr.ent" \
--add 'public' "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" "file://$dtddir/ent/iso-cyr2.ent" \
"$catalog"
else
echo_error "Failed to detect version for $xsrctar."
false
fi
}

41
textproc/docbook-xml/docbook-xml.desc

@ -0,0 +1,41 @@
[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN ---
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../docbook-xml/docbook-xml.desc
[COPY] Copyright (C) 2007 The OpenSDE Project
[COPY]
[COPY] More information can be found in the files COPYING and README.
[COPY]
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; version 2 of the License. A copy of the
[COPY] GNU General Public License can be found in the file COPYING.
[COPY] --- SDE-COPYRIGHT-NOTE-END ---
[I] DocBook XML DTDs
[T] DocBook is an XML vocabulary which enables you to create document content
[T] in a presentation-neutral form that captures the logical structure of the
[T] content. Using the DocBook Project XSL stylesheets, you can publish DocBook
[T] content as HTML pages and PDF files and other formats, including man pages,
[T] HTML Help, and JavaHelp.
[U] http://www.oasis-open.org/docbook/
[A] The DocBook Project Development Team
[M] Alejandro Mery <amery@opensde.org>
[C] extra/documentation
[L] MIT
[S] Stable
[V] 4.5
[P] X -----5---9 129.200
[SRC] .
[D] 1551907286 docbook-xml-4.1.2.zip !http://www.oasis-open.org/docbook/xml/4.1.2/docbkx412.zip
[D] 899705653 docbook-xml-4.2.zip http://www.oasis-open.org/docbook/xml/4.2/
[D] 2215791483 docbook-xml-4.3.zip http://www.oasis-open.org/docbook/xml/4.3/
[D] 1653249517 docbook-xml-4.4.zip http://www.oasis-open.org/docbook/xml/4.4/
[D] 689526860 docbook-xml-4.5.zip http://www.oasis-open.org/docbook/xml/4.5/

28
textproc/docbook-xml/pkg_libxml_post.conf

@ -0,0 +1,28 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../docbook-xml/pkg_libxml_post.conf
# Copyright (C) 2007 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
hook_add postmake 5 'docbook_xml_catalog'
docbook_xml_catalog() {
local catalog=/etc/xml/docbook
local rootcatalog=$root/etc/xml/catalog
local URI=http://www.oasis-open.org/docbook/
xmlcatalog --noout --add 'delegatePublic' '-//OASIS//ENTITIES DocBook XML' file://$catalog $rootcatalog
xmlcatalog --noout --add 'delegatePublic' '-//OASIS//DTD DocBook XML' file://$catalog $rootcatalog
xmlcatalog --noout --add 'delegatePublic' 'ISO 8879:1986' file://$catalog $rootcatalog
xmlcatalog --noout --add 'delegateSystem' "$URI" file://$catalog $rootcatalog
xmlcatalog --noout --add 'delegateURI' "$URI" file://$catalog $rootcatalog
}
Loading…
Cancel
Save