X Tutup
Skip to content

Commit b00a125

Browse files
mjwoodsadamjstewart
authored andcommitted
pango: depends on libxft when +X, disable libxft support when ~X (spack#3899)
1 parent 13fef18 commit b00a125

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

var/spack/repos/builtin/packages/pango/package.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,16 @@ class Pango(AutotoolsPackage):
4646
depends_on("cairo")
4747
depends_on("cairo~X", when='~X')
4848
depends_on("cairo+X", when='+X')
49+
depends_on("libxft", when='+X')
4950
depends_on("glib")
5051

52+
def configure_args(self):
53+
args = []
54+
if self.spec.satisfies('+X'):
55+
args.append('--with-xft')
56+
else:
57+
args.append('--without-xft')
58+
return args
59+
5160
def install(self, spec, prefix):
5261
make("install", parallel=False)

0 commit comments

Comments
 (0)
X Tutup