summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Lee <lee218@llnl.gov>2022-06-09 12:53:32 -0700
committerGitHub <noreply@github.com>2022-06-09 13:53:32 -0600
commit45043bcdf5b383af573375300f2ba6b28210e3c6 (patch)
tree0ff0785eab1f17e59516d6fa531bb8efe6e81c15
parent7642fa3d99f11abd7a99f0473074f5d5bd0b37bf (diff)
downloadspack-45043bcdf5b383af573375300f2ba6b28210e3c6.tar.gz
spack-45043bcdf5b383af573375300f2ba6b28210e3c6.tar.bz2
spack-45043bcdf5b383af573375300f2ba6b28210e3c6.tar.xz
spack-45043bcdf5b383af573375300f2ba6b28210e3c6.zip
py-xdot requires explicit dependency on harfbuzz (#30968)
-rw-r--r--var/spack/repos/builtin/packages/py-xdot/package.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/py-xdot/package.py b/var/spack/repos/builtin/packages/py-xdot/package.py
index 4549f80819..e7197bf731 100644
--- a/var/spack/repos/builtin/packages/py-xdot/package.py
+++ b/var/spack/repos/builtin/packages/py-xdot/package.py
@@ -27,6 +27,7 @@ class PyXdot(PythonPackage):
depends_on('py-pygobject', type=('build', 'run'))
depends_on('py-pycairo', type=('build', 'run'))
depends_on('pango', type=('build', 'run'))
+ depends_on('harfbuzz', type=('build', 'run'))
depends_on('atk', type=('build', 'run'))
depends_on('gdk-pixbuf', type=('build', 'run'))
depends_on('gtkplus', type=('build', 'run'))
@@ -35,11 +36,12 @@ class PyXdot(PythonPackage):
@run_after('install')
def post_install(self):
spec = self.spec
- repo_paths = '%s:%s:%s:%s' % (
+ repo_paths = '%s:%s:%s:%s:%s' % (
join_path(spec['pango'].prefix.lib, 'girepository-1.0'),
join_path(spec['atk'].prefix.lib, 'girepository-1.0'),
join_path(spec['gdk-pixbuf'].prefix.lib, 'girepository-1.0'),
- join_path(spec['gtkplus'].prefix.lib, 'girepository-1.0'))
+ join_path(spec['gtkplus'].prefix.lib, 'girepository-1.0'),
+ join_path(spec['harfbuzz'].prefix.lib, 'girepository-1.0'))
dst = join_path(python_platlib, 'xdot', '__init__.py')
filter_file("import sys",
"import sys\nimport os\nos.environ['GI_TYPELIB_PATH']" +
@@ -51,6 +53,9 @@ class PyXdot(PythonPackage):
def setup_run_environment(self, env):
spec = self.spec
env.prepend_path('GI_TYPELIB_PATH',
+ join_path(spec['harfbuzz'].prefix.lib,
+ 'girepository-1.0'))
+ env.prepend_path('GI_TYPELIB_PATH',
join_path(spec['pango'].prefix.lib,
'girepository-1.0'))
env.prepend_path('GI_TYPELIB_PATH',