summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2021-09-13 02:57:04 -0500
committerGitHub <noreply@github.com>2021-09-13 09:57:04 +0200
commitb7e61a4b756a629df13e008cb13b78cb2582646c (patch)
tree7b2fa44d48f0b42b341da4a902f457bc3f02cda4
parent59832fb0acd74d27bda89eef3bdfa1098098168d (diff)
downloadspack-b7e61a4b756a629df13e008cb13b78cb2582646c.tar.gz
spack-b7e61a4b756a629df13e008cb13b78cb2582646c.tar.bz2
spack-b7e61a4b756a629df13e008cb13b78cb2582646c.tar.xz
spack-b7e61a4b756a629df13e008cb13b78cb2582646c.zip
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
-rw-r--r--var/spack/repos/builtin/packages/gtk-doc/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gtk-doc/package.py b/var/spack/repos/builtin/packages/gtk-doc/package.py
index 9b35b9de3a..1cb992b3a5 100644
--- a/var/spack/repos/builtin/packages/gtk-doc/package.py
+++ b/var/spack/repos/builtin/packages/gtk-doc/package.py
@@ -59,3 +59,9 @@ class GtkDoc(AutotoolsPackage):
"""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'
return url.format(version.underscored)
+
+ def configure_args(self):
+ args = [
+ '--with-xml-catalog={0}'.format(self.spec['docbook-xml'].package.catalog)
+ ]
+ return args