libtheora: disable docs by default (#28330)

This commit is contained in:
Nils Leif Fischer 2022-01-12 10:24:58 +01:00 committed by GitHub
parent 4e0372b9b7
commit 7fa81a66af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,11 +15,13 @@ class Libtheora(AutotoolsPackage):
version('1.1.1', sha256='f36da409947aa2b3dcc6af0a8c2e3144bc19db2ed547d64e9171c59c66561c61')
version('1.1.0', sha256='3d7b4fb1c115f1a530afd430eed2e8861fa57c8b179ec2d5a5d8f1cd0c7a4268')
variant('doc', default=False, description="Build documentation")
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
depends_on('doxygen', type='build')
depends_on('doxygen', when='+doc', type='build')
depends_on('libogg')
depends_on('libpng')
@ -35,3 +37,8 @@ def autoreconf(self, spec, prefix):
'--build=arm-linux')
else:
sh('./autogen.sh', 'prefix={0}'.format(prefix))
def configure_args(self):
args = []
args += self.enable_or_disable('doc')
return args