Tell gtk-doc where the XML catalog is (#25569)

* Tell gtk-doc where the XML catalog is

The gtk-doc configure script has an option for specifying the path to
the XML catalog. If this is not set the configure script will search
a defined set of directories for a catalog file and will set
`with_xml_catalog` based on that. Only if no system catalog is found will
the XML_CATALOG_FILES be looked at. In order to make sure that the spack
provided catalog is used, pass the `--with-xml-catalog` option.

* Use the property from docbook-xml
This commit is contained in:
Glenn Johnson 2021-09-13 02:57:04 -05:00 committed by GitHub
parent 59832fb0ac
commit b7e61a4b75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,3 +59,9 @@ def url_for_version(self, version):
"""Handle gnome's version-based custom URLs.""" """Handle gnome's version-based custom URLs."""
url = 'https://gitlab.gnome.org/GNOME/gtk-doc/-/archive/GTK_DOC_{0}/gtk-doc-GTK_DOC_{0}.tar.gz' url = 'https://gitlab.gnome.org/GNOME/gtk-doc/-/archive/GTK_DOC_{0}/gtk-doc-GTK_DOC_{0}.tar.gz'
return url.format(version.underscored) return url.format(version.underscored)
def configure_args(self):
args = [
'--with-xml-catalog={0}'.format(self.spec['docbook-xml'].package.catalog)
]
return args