From 641e53353e3dea659e9d6012e9560004ae02ae87 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 1 Dec 2016 20:45:27 +0100 Subject: [PATCH] wscript: use DATAROOTDIR instead of PREFIX/share --- wscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index a2dda42b..9b5cdd02 100644 --- a/wscript +++ b/wscript @@ -366,7 +366,7 @@ def build(bld): if bld.env['TXT2MAN']: from waflib import TaskGen if 'MANDIR' not in bld.env: - bld.env['MANDIR'] = bld.env['PREFIX'] + '/share/man' + bld.env['MANDIR'] = bld.env['DATAROOTDIR'] + '/man' 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' @@ -386,7 +386,7 @@ def build(bld): bld( name = 'doxygen', rule = 'doxygen ${SRC} > /dev/null', source = 'doc/web.cfg', cwd = 'doc') - bld.install_files( '${PREFIX}' + '/share/doc/libaubio-doc', + bld.install_files( '${DATAROOTDIR}' + '/doc/libaubio-doc', bld.path.ant_glob('doc/web/html/**'), cwd = bld.path.find_dir ('doc/web'), relative_trick = True) @@ -396,7 +396,7 @@ def build(bld): bld( name = 'sphinx', rule = 'make html', source = ['doc/conf.py'] + bld.path.ant_glob('doc/**.rst'), cwd = 'doc') - bld.install_files( '${PREFIX}' + '/share/doc/libaubio-doc/sphinx', + bld.install_files( '${DATAROOTDIR}' + '/doc/libaubio-doc/sphinx', bld.path.ant_glob('doc/_build/html/**'), cwd = bld.path.find_dir ('doc/_build/html'), relative_trick = True) -- 2.11.0