- Allow building with python 3.x - Add DOCS option for general documentation built by sphinx - Add MANPAGES option build/install manpages since it requires extra deps - Add TEST option and disable building tests by default - Whitespace align options and separate blocks for better readability audio/py-aubio: Update to 0.4.7 - Allow concurrent installation
65 lines
3 KiB
Text
65 lines
3 KiB
Text
Hunks 1 & 2: Enable manpages, doxygen, and sphinx documentation separately
|
|
Hunks 3 & 4: Install docs in more standard locations
|
|
|
|
--- wscript.orig 2018-09-23 08:16:59 UTC
|
|
+++ wscript
|
|
@@ -96,9 +96,15 @@ def options(ctx):
|
|
help_str = 'compile with source_wavwrite (default)',
|
|
help_disable_str = 'do not compile source_wavwrite')
|
|
|
|
- add_option_enable_disable(ctx, 'docs', default = None,
|
|
- help_str = 'build documentation (auto)',
|
|
- help_disable_str = 'do not build documentation')
|
|
+ add_option_enable_disable(ctx, 'manpages', default = None,
|
|
+ help_str = 'build manpages (auto)',
|
|
+ help_disable_str = 'do not build manpages')
|
|
+ add_option_enable_disable(ctx, 'doxygen', default = None,
|
|
+ help_str = 'build API documentation (auto)',
|
|
+ help_disable_str = 'do not build API documentation')
|
|
+ add_option_enable_disable(ctx, 'sphinx', default = None,
|
|
+ help_str = 'build general documentation (auto)',
|
|
+ help_disable_str = 'do not build general documentation')
|
|
|
|
add_option_enable_disable(ctx, 'tests', default = True,
|
|
help_str = 'build tests (true)',
|
|
@@ -462,19 +468,21 @@ def configure(ctx):
|
|
if (ctx.options.enable_double == True):
|
|
ctx.define('HAVE_AUBIO_DOUBLE', 1)
|
|
|
|
- if (ctx.options.enable_docs != False):
|
|
+ if (ctx.options.enable_manpages != False):
|
|
# check if txt2man is installed, optional
|
|
try:
|
|
ctx.find_program('txt2man', var='TXT2MAN')
|
|
except ctx.errors.ConfigurationError:
|
|
ctx.to_log('txt2man was not found (ignoring)')
|
|
|
|
+ if (ctx.options.enable_doxygen != False):
|
|
# check if doxygen is installed, optional
|
|
try:
|
|
ctx.find_program('doxygen', var='DOXYGEN')
|
|
except ctx.errors.ConfigurationError:
|
|
ctx.to_log('doxygen was not found (ignoring)')
|
|
|
|
+ if (ctx.options.enable_sphinx != False):
|
|
# check if sphinx-build is installed, optional
|
|
try:
|
|
ctx.find_program('sphinx-build', var='SPHINX')
|
|
@@ -536,7 +544,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)
|
|
@@ -550,7 +558,7 @@ def sphinx(bld):
|
|
rule = '${SPHINX} -b html -D release=${VERSION} -D version=${VERSION} -a -q `dirname ${SRC}` `dirname ${TGT}`',
|
|
source = 'doc/conf.py',
|
|
target = '../doc/_build/html/index.html')
|
|
- bld.install_files( '${DATAROOTDIR}' + '/doc/libaubio-doc/sphinx',
|
|
+ bld.install_files( '${DATAROOTDIR}' + '/doc/aubio/sphinx',
|
|
bld.path.ant_glob('doc/_build/html/**'),
|
|
cwd = bld.path.find_dir('doc/_build/html'),
|
|
relative_trick = True)
|