diff options
author | bernhardkaindl <43588962+bernhardkaindl@users.noreply.github.com> | 2021-09-07 03:10:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-06 20:10:14 -0500 |
commit | ca58cb701cf7c9af2ed8a79a93c80e670d085bad (patch) | |
tree | 34d7890e7f247565083e86cbbdf50694b128fa25 /var | |
parent | a358358aa71687dc7b6c9cef100e5eb2116fa5cb (diff) | |
download | spack-ca58cb701cf7c9af2ed8a79a93c80e670d085bad.tar.gz spack-ca58cb701cf7c9af2ed8a79a93c80e670d085bad.tar.bz2 spack-ca58cb701cf7c9af2ed8a79a93c80e670d085bad.tar.xz spack-ca58cb701cf7c9af2ed8a79a93c80e670d085bad.zip |
gtk-doc: Fix the testsuite (hangs if gtkdocize was not installed) (#25717)
Ensure that testsuite has py-anytree and py-parameterized
and finds gtk-doc's gitdocize.
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/gtk-doc/package.py | 17 |
1 files changed, 17 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 686a6783b2..9b35b9de3a 100644 --- a/var/spack/repos/builtin/packages/gtk-doc/package.py +++ b/var/spack/repos/builtin/packages/gtk-doc/package.py @@ -30,6 +30,10 @@ class GtkDoc(AutotoolsPackage): depends_on('python@3.2:', type=('build', 'run')) depends_on('py-pygments', type=('build', 'run')) + depends_on('py-anytree', type=('test')) + depends_on('py-lxml', type=('test')) + depends_on('py-parameterized', type=('test')) + depends_on('py-six', type=('test')) depends_on('libxslt') depends_on('libxml2') depends_on('docbook-xsl@1.78.1') @@ -38,6 +42,19 @@ class GtkDoc(AutotoolsPackage): patch('build.patch') + def setup_build_environment(self, env): + """ If test/tools.sh does not find gtkdocize it starts a sh which blocks""" + env.prepend_path('PATH', + join_path(self.stage.source_path, 'buildsystems', 'autotools')) + + def install(self, spec, prefix): + make('install', 'V=1') + install(join_path('buildsystems', 'autotools', 'gtkdocize'), prefix.bin) + + def installcheck(self): + """gtk-doc does not support installcheck properly, skip it""" + pass + def url_for_version(self, version): """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' |