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.
This commit is contained in:
parent
f759eda3ae
commit
7e7e0723b5
@ -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 @@ def configure_args(self):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user