ports/audio/aubio/files/patch-wscript
2017-04-18 02:25:57 +00:00

40 lines
1.7 KiB
Text

--- wscript.orig 2017-04-08 10:09:27 UTC
+++ wscript
@@ -94,6 +94,9 @@ def options(ctx):
help_str = 'build documentation (auto)',
help_disable_str = 'do not build documentation')
+ ctx.add_option('--disable-doxygen', action = 'store_true',
+ dest = 'disable_doxygen',
+ help = 'disable doxygen even if found')
ctx.add_option('--with-target-platform', type='string',
help='set target platform for cross-compilation', dest='target_platform')
@@ -388,6 +391,9 @@ def configure(ctx):
# check if doxygen is installed, optional
try:
ctx.find_program('doxygen', var='DOXYGEN')
+ if ctx.options.disable_doxygen:
+ from sys import stderr
+ print >> stderr, 'doxygen found, but disabled with --disable-doxygen'
except ctx.errors.ConfigurationError:
ctx.to_log('doxygen was not found (ignoring)')
@@ -440,7 +446,7 @@ def txt2man(bld):
def doxygen(bld):
# build documentation from source files using doxygen
- if bld.env['DOXYGEN']:
+ if bld.env['DOXYGEN'] and not bld.options.disable_doxygen:
bld.env.VERSION = VERSION
rule = '( cat ${SRC} && echo PROJECT_NUMBER=${VERSION}; )'
rule += ' | doxygen - > /dev/null'
@@ -448,7 +454,7 @@ def doxygen(bld):
source = 'doc/web.cfg',
target = '../doc/web/html/index.html',
cwd = 'doc')
- bld.install_files( '${DATAROOTDIR}' + '/doc/libaubio-doc',
+ bld.install_files( '${DATAROOTDIR}' + '/doc/aubio',
bld.path.ant_glob('doc/web/html/**'),
cwd = bld.path.find_dir ('doc/web'),
relative_trick = True)