diff options
author | brietzke <brietzke@users.noreply.github.com> | 2019-08-31 00:03:44 +0200 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-08-30 15:03:44 -0700 |
commit | 7e7e0723b5098a9b14e1b73e4a5af29f46709886 (patch) | |
tree | 09bb1c4a90b909e28791d22499cd00a95626a5fd | |
parent | f759eda3aefb87e6b5e7cd46fdee69f55b243f91 (diff) | |
download | spack-7e7e0723b5098a9b14e1b73e4a5af29f46709886.tar.gz spack-7e7e0723b5098a9b14e1b73e4a5af29f46709886.tar.bz2 spack-7e7e0723b5098a9b14e1b73e4a5af29f46709886.tar.xz spack-7e7e0723b5098a9b14e1b73e4a5af29f46709886.zip |
gtkplus package: add variant for CUPS support (#12566)
Default is ~cups (no CUPS support). Before this option, gtkplus would
potentially use a system-installed version of CUPS.
-rw-r--r-- | var/spack/repos/builtin/packages/gtkplus/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gtkplus/package.py b/var/spack/repos/builtin/packages/gtkplus/package.py index f2f2c52d42..8e0bc0103f 100644 --- a/var/spack/repos/builtin/packages/gtkplus/package.py +++ b/var/spack/repos/builtin/packages/gtkplus/package.py @@ -16,6 +16,8 @@ class Gtkplus(AutotoolsPackage): version('2.24.31', '68c1922732c7efc08df4656a5366dcc3afdc8791513400dac276009b40954658') version('2.24.25', '38af1020cb8ff3d10dda2c8807f11e92af9d2fa4045de61c62eedb7fbc7ea5b3') + variant('cups', default='False', description='enable cups support') + depends_on('pkgconfig', type='build') depends_on('atk') @@ -33,6 +35,7 @@ class Gtkplus(AutotoolsPackage): depends_on('fixesproto', when='@3:') depends_on('at-spi2-atk', when='@3:') depends_on('gettext', when='@3:') + depends_on('cups', when='+cups') patch('no-demos.patch', when='@2:2.99') @@ -60,4 +63,6 @@ class Gtkplus(AutotoolsPackage): args.append('GTKDOC_CHECK_PATH={0}'.format(true)) args.append('GTKDOC_MKPDF={0}'.format(true)) args.append('GTKDOC_REBASE={0}'.format(true)) + if '~cups' in self.spec: + args.append('--disable-cups') return args |