summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@ovgu.de>2022-05-18 23:13:36 +0200
committerGitHub <noreply@github.com>2022-05-18 15:13:36 -0600
commit9e05dde28c568f33af124f3dace428541470400a (patch)
treefa432d0867b371f5a33040ec433c8610c573d441 /var
parentb1ef5a75f0f46130b19ee0b6662626164a98f772 (diff)
downloadspack-9e05dde28c568f33af124f3dace428541470400a.tar.gz
spack-9e05dde28c568f33af124f3dace428541470400a.tar.bz2
spack-9e05dde28c568f33af124f3dace428541470400a.tar.xz
spack-9e05dde28c568f33af124f3dace428541470400a.zip
harfbuzz: add gobject-introspection dependency (#30715)
Fixes #30706
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/harfbuzz/package.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/harfbuzz/package.py b/var/spack/repos/builtin/packages/harfbuzz/package.py
index 7ccc6aa645..ddb37df257 100644
--- a/var/spack/repos/builtin/packages/harfbuzz/package.py
+++ b/var/spack/repos/builtin/packages/harfbuzz/package.py
@@ -31,6 +31,7 @@ class Harfbuzz(MesonPackage):
depends_on("pkgconfig", type="build")
depends_on("glib")
+ depends_on("gobject-introspection")
depends_on("icu4c")
depends_on("freetype")
depends_on("cairo+pdf+ft")
@@ -58,6 +59,20 @@ class Harfbuzz(MesonPackage):
flags.append('-std=gnu99')
return (None, None, flags)
+ 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 meson_args(self):
args = []