diff options
author | Milton Woods <miltonjwoods@gmail.com> | 2017-04-19 21:54:06 +1000 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-04-19 06:54:06 -0500 |
commit | b00a12565c8aaa4dc54172cd5861020d6e09ff22 (patch) | |
tree | 745b5bdd1764b4b01d11cc96c593760ab7956827 | |
parent | 13fef18244d4e09c9ffe98321ed7eb8808fdb8fc (diff) | |
download | spack-b00a12565c8aaa4dc54172cd5861020d6e09ff22.tar.gz spack-b00a12565c8aaa4dc54172cd5861020d6e09ff22.tar.bz2 spack-b00a12565c8aaa4dc54172cd5861020d6e09ff22.tar.xz spack-b00a12565c8aaa4dc54172cd5861020d6e09ff22.zip |
pango: depends on libxft when +X, disable libxft support when ~X (#3899)
-rw-r--r-- | var/spack/repos/builtin/packages/pango/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pango/package.py b/var/spack/repos/builtin/packages/pango/package.py index cc6565dae3..e5a8e8c57d 100644 --- a/var/spack/repos/builtin/packages/pango/package.py +++ b/var/spack/repos/builtin/packages/pango/package.py @@ -46,7 +46,16 @@ class Pango(AutotoolsPackage): depends_on("cairo") depends_on("cairo~X", when='~X') depends_on("cairo+X", when='+X') + depends_on("libxft", when='+X') depends_on("glib") + def configure_args(self): + args = [] + if self.spec.satisfies('+X'): + args.append('--with-xft') + else: + args.append('--without-xft') + return args + def install(self, spec, prefix): make("install", parallel=False) |