shithub: aubio

Download patch

ref: 59be50dfa19e13f55ac5be918b9b6505cf679c14
parent: 69de807a7ebc14d17d873f2e3e99c49ade2759e7
author: Martin Hermant <martin.hermant@gmail.com>
date: Thu Mar 16 15:15:07 EDT 2017

wscript set overloaded VERSION casted to string

--- a/wscript
+++ b/wscript
@@ -409,6 +409,7 @@
         from waflib import TaskGen
         if 'MANDIR' not in bld.env:
             bld.env['MANDIR'] = bld.env['DATAROOTDIR'] + '/man'
+        bld.env.VERSION = str(VERSION)
         rule_str = '${TXT2MAN} -t `basename ${TGT} | cut -f 1 -d . | tr a-z A-Z`'
         rule_str += ' -r ${PACKAGE}\\ ${VERSION} -P ${PACKAGE}'
         rule_str += ' -v ${PACKAGE}\\ User\\\'s\\ manual'
@@ -439,6 +440,7 @@
     # build documentation from source files using sphinx-build
     # note: build in ../doc/_build/html, otherwise waf wont install unsigned files
     if bld.env['SPHINX']:
+        bld.env.VERSION = str(VERSION)
         bld( name = 'sphinx',
                 rule = '${SPHINX} -b html -D release=${VERSION} -D version=${VERSION} -a -q `dirname ${SRC}` `dirname ${TGT}`',
                 source = 'doc/conf.py',