gobject-introspection: add GIR file search path (#12564)

This commit is contained in:
Geoffrey Oxberry 2019-08-24 09:44:20 -07:00 committed by Todd Gamblin
parent 16e54646ea
commit 01783789a0

View File

@ -57,6 +57,10 @@ def url_for_version(self, version):
url = 'http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/{0}/gobject-introspection-{1}.tar.xz'
return url.format(version.up_to(2), version)
def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
spack_env.prepend_path("XDG_DATA_DIRS", self.prefix.share)
run_env.prepend_path("XDG_DATA_DIRS", self.prefix.share)
def install(self, spec, prefix):
configure("--prefix=%s" % prefix)
# we need to filter this file to avoid an overly long hashbang line