summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/gobject-introspection/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/gobject-introspection/package.py')
-rw-r--r--var/spack/repos/builtin/packages/gobject-introspection/package.py8
1 files changed, 8 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 f31442f1f4..54bb3c0844 100644
--- a/var/spack/repos/builtin/packages/gobject-introspection/package.py
+++ b/var/spack/repos/builtin/packages/gobject-introspection/package.py
@@ -57,11 +57,19 @@ 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_run_environment(self, env):
+ env.prepend_path("GI_TYPELIB_PATH",
+ join_path(self.prefix.lib, 'girepository-1.0'))
+
def setup_dependent_build_environment(self, env, dependent_spec):
env.prepend_path("XDG_DATA_DIRS", self.prefix.share)
+ env.prepend_path("GI_TYPELIB_PATH",
+ join_path(self.prefix.lib, 'girepository-1.0'))
def setup_dependent_run_environment(self, env, dependent_spec):
env.prepend_path("XDG_DATA_DIRS", self.prefix.share)
+ env.prepend_path("GI_TYPELIB_PATH",
+ join_path(self.prefix.lib, 'girepository-1.0'))
def install(self, spec, prefix):
configure("--prefix=%s" % prefix)