summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeoffrey Oxberry <goxberry@gmail.com>2019-08-24 09:44:20 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2019-08-24 09:44:20 -0700
commit01783789a01546622e5534238ced3f6924fc7ff8 (patch)
tree0f030344b739e4e979b0cbba43802b6a1d8521fd /var
parent16e54646ea3381afdb7f3bb04590a007c2939fab (diff)
downloadspack-01783789a01546622e5534238ced3f6924fc7ff8.tar.gz
spack-01783789a01546622e5534238ced3f6924fc7ff8.tar.bz2
spack-01783789a01546622e5534238ced3f6924fc7ff8.tar.xz
spack-01783789a01546622e5534238ced3f6924fc7ff8.zip
gobject-introspection: add GIR file search path (#12564)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gobject-introspection/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gobject-introspection/package.py b/var/spack/repos/builtin/packages/gobject-introspection/package.py
index d60ec19921..35d210d720 100644
--- a/var/spack/repos/builtin/packages/gobject-introspection/package.py
+++ b/var/spack/repos/builtin/packages/gobject-introspection/package.py
@@ -57,6 +57,10 @@ class GobjectIntrospection(Package):
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