docbook-xsl: (un)register XML catalogs in the chroot.

--HG--
extra : convert_revision : 40eb25ac07ce41cc0b47ca3eaa024462b85b815f
This commit is contained in:
Juan RP 2010-04-23 15:30:34 +02:00
parent aab4e53dbb
commit dd0ebf41a9

View file

@ -22,7 +22,8 @@ noarch=yes
Add_dependency full xmlcatmgr
Add_dependency full docbook-xml ">=4.2"
xml_catalogs="/usr/share/xsl/docbook/catalog.xml"
export xml_catalogs="/usr/share/xsl/docbook/catalog.xml"
export xml_entries="nextCatalog ${xml_catalogs} --"
do_install()
{
@ -45,8 +46,10 @@ post_install()
#
# Run the trigger to register its XML catalog entries.
#
export xml_entries="nextCatalog ${xml_catalogs} --"
cd ${XBPS_MASTERDIR}
${XBPS_TRIGGERSDIR}/xml-catalog run post-install
unset xml_entries
cd ${XBPS_MASTERDIR} && ${XBPS_TRIGGERSDIR}/xml-catalog run post-install
}
pre_remove()
{
cd ${XBPS_MASTERDIR} && ${XBPS_TRIGGERSDIR}/xml-catalog run pre-remove
}