docbook-xml: properly register the XML catalogs, bumprev.
--HG-- extra : convert_revision : 8314c1426125010b10117141277311074c93783f
This commit is contained in:
parent
d6a67a0f38
commit
4b2bcbbc88
1 changed files with 18 additions and 22 deletions
|
@ -1,6 +1,7 @@
|
||||||
# Template file for 'docbook-xml'
|
# Template file for 'docbook-xml'
|
||||||
pkgname=docbook-xml
|
pkgname=docbook-xml
|
||||||
version=4.5
|
version=4.5
|
||||||
|
revision=1
|
||||||
wrksrc="docbook"
|
wrksrc="docbook"
|
||||||
distfiles="
|
distfiles="
|
||||||
http://www.oasis-open.org/docbook/xml/$version/$pkgname-$version.zip
|
http://www.oasis-open.org/docbook/xml/$version/$pkgname-$version.zip
|
||||||
|
@ -31,6 +32,23 @@ noextract=yes
|
||||||
Add_dependency full xmlcatmgr
|
Add_dependency full xmlcatmgr
|
||||||
Add_dependency build unzip
|
Add_dependency build unzip
|
||||||
|
|
||||||
|
xml_catalogs="
|
||||||
|
/usr/share/xml/docbook/4.2/catalog
|
||||||
|
/usr/share/xml/docbook/4.3/catalog
|
||||||
|
/usr/share/xml/docbook/4.4/catalog
|
||||||
|
/usr/share/xml/docbook/4.5/catalog
|
||||||
|
/usr/share/xml/docbook/4.2/catalog-4.1.2"
|
||||||
|
|
||||||
|
xml_entries="
|
||||||
|
rewriteSystem http://www.oasis-open.org/docbook/xml/4.2 /usr/share/xml/docbook/4.2
|
||||||
|
rewriteSystem http://www.oasis-open.org/docbook/xml/4.3 /usr/share/xml/docbook/4.3
|
||||||
|
rewriteSystem http://www.oasis-open.org/docbook/xml/4.4 /usr/share/xml/docbook/4.4
|
||||||
|
rewriteSystem http://www.oasis-open.org/docbook/xml/4.5 /usr/share/xml/docbook/4.5
|
||||||
|
rewriteSystem http://www.oasis-open.org/docbook/xml/4.1.2 /usr/share/xml/docbook/4.2"
|
||||||
|
|
||||||
|
export xml_catalogs="${xml_catalogs}"
|
||||||
|
export xml_entries="${xml_entries}"
|
||||||
|
|
||||||
do_install()
|
do_install()
|
||||||
{
|
{
|
||||||
local versions="4.2 4.3 4.4 4.5"
|
local versions="4.2 4.3 4.4 4.5"
|
||||||
|
@ -51,28 +69,6 @@ do_install()
|
||||||
|
|
||||||
post_install()
|
post_install()
|
||||||
{
|
{
|
||||||
local versions="4.2 4.3 4.4 4.5"
|
|
||||||
local uri="http://www.oasis-open.org/docbook/xml"
|
|
||||||
local ver dir
|
|
||||||
|
|
||||||
for ver in ${versions}; do
|
|
||||||
dir=/usr/share/xml/docbook/${ver}
|
|
||||||
xml_catalogs="${xml_catalogs} ${dir}/catalog"
|
|
||||||
xml_entries="${xml_entries} rewriteSystem ${uri}/${ver} ${dir}"
|
|
||||||
done
|
|
||||||
|
|
||||||
#
|
|
||||||
# 4.2 is backwards-compatible with 4.1.2, so just make 4.1.2 be
|
|
||||||
# an alias for 4.2.
|
|
||||||
#
|
|
||||||
dir=/usr/share/xml/docbook/4.2
|
|
||||||
xml_catalogs="${xml_catalogs} ${dir}/catalog-4.1.2"
|
|
||||||
xml_entries="${xml_entries} rewriteSystem ${uri}/4.1.2 ${dir}"
|
|
||||||
|
|
||||||
export xml_catalogs="${xml_catalogs}"
|
|
||||||
export xml_entries="${xml_entries}"
|
|
||||||
export sgml_catalogs="${sgml_catalogs}"
|
|
||||||
export sgml_entries="${sgml_entries}"
|
|
||||||
#
|
#
|
||||||
# Run the trigger to register its XML catalog entries.
|
# Run the trigger to register its XML catalog entries.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue