pango: depends on libxft when +X, disable libxft support when ~X (#3899)
This commit is contained in:
parent
13fef18244
commit
b00a12565c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user