Augment `libxml2' setup hook to add XSL stylesheets to XML catalogs.
This allows, for instance, `docbook_xsl' to be visible (as part of `$XML_CATALOG_FILES') by packages that use it as a build input. svn path=/nixpkgs/trunk/; revision=11047
This commit is contained in:
parent
6a3f5200a7
commit
2d15d4c269
@ -1,9 +1,11 @@
|
|||||||
addXMLCatalogs () {
|
addXMLCatalogs () {
|
||||||
if test -d $1/xml/dtd; then
|
for kind in dtd xsl; do
|
||||||
for i in $(find $1/xml/dtd -name catalog.xml); do
|
if test -d $1/xml/$kind; then
|
||||||
|
for i in $(find $1/xml/$kind -name catalog.xml); do
|
||||||
export XML_CATALOG_FILES="$XML_CATALOG_FILES $i"
|
export XML_CATALOG_FILES="$XML_CATALOG_FILES $i"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
if test -z "$libxmlHookDone"; then
|
if test -z "$libxmlHookDone"; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user