You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jack-audio-connection-kit/jack-doxygen-buildfix.patch

40 lines
2.1 KiB

diff -rupN jack-1.9.9.5.old/wscript jack-1.9.9.5/wscript
--- jack-1.9.9.5.old/wscript 2012-12-10 04:26:57.000000000 -0500
+++ jack-1.9.9.5/wscript 2012-12-16 23:29:44.629292671 -0500
@@ -356,10 +356,11 @@ def build(bld):
bld.add_subdirs('dbus')
if bld.env['BUILD_DOXYGEN_DOCS'] == True:
- share_dir = bld.env.get_destdir() + bld.env['PREFIX'] + '/share/jack-audio-connection-kit'
html_docs_source_dir = "build/default/html"
- html_docs_install_dir = share_dir + '/reference/html/'
- if Options.commands['install']:
+ if bld.cmd == 'install':
+ share_dir = bld.options.destdir + bld.env['PREFIX'] + '/share/jack-audio-connection-kit'
+ html_docs_install_dir = share_dir + '/reference/html/'
+
if os.path.isdir(html_docs_install_dir):
Logs.pprint('CYAN', "Removing old doxygen documentation installation...")
shutil.rmtree(html_docs_install_dir)
@@ -367,17 +368,17 @@ def build(bld):
Logs.pprint('CYAN', "Installing doxygen documentation...")
shutil.copytree(html_docs_source_dir, html_docs_install_dir)
Logs.pprint('CYAN', "Installing doxygen documentation done.")
- elif Options.commands['uninstall']:
+ elif bld.cmd =='uninstall':
Logs.pprint('CYAN', "Uninstalling doxygen documentation...")
if os.path.isdir(share_dir):
shutil.rmtree(share_dir)
Logs.pprint('CYAN', "Uninstalling doxygen documentation done.")
- elif Options.commands['clean']:
+ elif bld.cmd =='clean':
if os.access(html_docs_source_dir, os.R_OK):
Logs.pprint('CYAN', "Removing doxygen generated documentation...")
shutil.rmtree(html_docs_source_dir)
Logs.pprint('CYAN', "Removing doxygen generated documentation done.")
- elif Options.commands['build']:
+ elif bld.cmd =='build':
if not os.access(html_docs_source_dir, os.R_OK):
os.popen("doxygen").read()
else: