summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2016-08-25 10:41:35 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2016-09-06 16:00:21 -0400
commit4c566617f791e3081c8ed869af352323bcc145c7 (patch)
tree7798ee5b64403803298f9391208ea6c96b4a3a8f /var
parent5ba1144515985889c72eb87fff9e98ec02fb865e (diff)
downloadspack-4c566617f791e3081c8ed869af352323bcc145c7.tar.gz
spack-4c566617f791e3081c8ed869af352323bcc145c7.tar.bz2
spack-4c566617f791e3081c8ed869af352323bcc145c7.tar.xz
spack-4c566617f791e3081c8ed869af352323bcc145c7.zip
qt: make libxcb a conditional dependency
OS X doesn't have X (usually).
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/qt/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py
index 8136208184..d17aacd1d3 100644
--- a/var/spack/repos/builtin/packages/qt/package.py
+++ b/var/spack/repos/builtin/packages/qt/package.py
@@ -24,6 +24,7 @@
##############################################################################
from spack import *
import os
+import sys
class Qt(Package):
@@ -78,7 +79,7 @@ class Qt(Package):
# OpenGL hardware acceleration
depends_on("mesa", when='@4:+mesa')
- depends_on("libxcb")
+ depends_on("libxcb", when=sys.platform != 'darwin')
def url_for_version(self, version):
# URL keeps getting more complicated with every release