qt: make libxcb a conditional dependency

OS X doesn't have X (usually).
This commit is contained in:
Ben Boeckel 2016-08-25 10:41:35 -04:00
parent 5ba1144515
commit 4c566617f7

View File

@ -24,6 +24,7 @@
############################################################################## ##############################################################################
from spack import * from spack import *
import os import os
import sys
class Qt(Package): class Qt(Package):
@ -78,7 +79,7 @@ class Qt(Package):
# OpenGL hardware acceleration # OpenGL hardware acceleration
depends_on("mesa", when='@4:+mesa') depends_on("mesa", when='@4:+mesa')
depends_on("libxcb") depends_on("libxcb", when=sys.platform != 'darwin')
def url_for_version(self, version): def url_for_version(self, version):
# URL keeps getting more complicated with every release # URL keeps getting more complicated with every release