shithub: aubio

Download patch

ref: 733aea272f1808d79a86cba5d89aa31b2ff64873
parent: e57859fd1f2c3c8b18b3f5ede122071c66166a8f
author: Paul Brossier <piem@piem.org>
date: Thu Sep 26 11:05:26 EDT 2013

wscript: remove old cruft, fix manpage generation

--- a/wscript
+++ b/wscript
@@ -182,13 +182,6 @@
       bld.recurse('tests')
 
   """
-  # create the aubio.pc file for pkg-config
-  if ctx.env['TARGET_PLATFORM'] == 'linux':
-    aubiopc = ctx.new_task_gen('subst')
-    aubiopc.source = 'aubio.pc.in'
-    aubiopc.target = 'aubio.pc'
-    aubiopc.install_path = '${PREFIX}/lib/pkgconfig'
-
   # install woodblock sound
   bld.install_files('${PREFIX}/share/sounds/aubio/',
       'sounds/woodblock.aiff')
@@ -199,17 +192,17 @@
   # build manpages from sgml files
   if bld.env['DOCBOOKTOMAN']:
     from waflib import TaskGen
+    if 'MANDIR' not in bld.env:
+      bld.env['MANDIR'] = bld.env['PREFIX'] + '/share/man'
     TaskGen.declare_chain(
-        name    = 'docbooktoman',
-        rule    = '${DOCBOOKTOMAN} ${SRC} > ${TGT}',
-        ext_in  = '.sgml',
-        ext_out = '.1',
-        reentrant = 0,
+        name      = 'docbooktoman',
+        rule      = '${DOCBOOKTOMAN} ${SRC} > ${TGT}',
+        ext_in    = '.sgml',
+        ext_out   = '.1',
+        reentrant = False,
+        install_path =  '${MANDIR}/man1',
     )
-    manpages = bld(name = 'docbooktoman',
-            source=bld.path.ant_glob('doc/*.sgml'))
-    bld.install_files('${MANDIR}/man1',
-            bld.path.ant_glob('doc/*.1'))
+    bld( source = bld.path.ant_glob('doc/*.sgml') )
 
 def shutdown(bld):
     from waflib import Options, Logs