Ignore:
Timestamp:
Mar 14, 2015, 6:06:10 PM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
6d7acc8
Parents:
5525507
Message:

waf, waflib: update to 1.8.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waflib/Tools/gnu_dirs.py

    r5525507 r904702d  
    33# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
    44
    5 import os
     5import os,re
    66from waflib import Utils,Options,Context
    7 _options=[x.split(', ')for x in'''
    8 bindir, user executables, ${EXEC_PREFIX}/bin
    9 sbindir, system admin executables, ${EXEC_PREFIX}/sbin
    10 libexecdir, program executables, ${EXEC_PREFIX}/libexec
    11 sysconfdir, read-only single-machine data, ${PREFIX}/etc
    12 sharedstatedir, modifiable architecture-independent data, ${PREFIX}/com
    13 localstatedir, modifiable single-machine data, ${PREFIX}/var
    14 libdir, object code libraries, ${EXEC_PREFIX}/lib
    15 includedir, C header files, ${PREFIX}/include
    16 oldincludedir, C header files for non-gcc, /usr/include
    17 datarootdir, read-only arch.-independent data root, ${PREFIX}/share
    18 datadir, read-only architecture-independent data, ${DATAROOTDIR}
    19 infodir, info documentation, ${DATAROOTDIR}/info
     7gnuopts='''
     8bindir, user commands, ${EXEC_PREFIX}/bin
     9sbindir, system binaries, ${EXEC_PREFIX}/sbin
     10libexecdir, program-specific binaries, ${EXEC_PREFIX}/libexec
     11sysconfdir, host-specific configuration, ${PREFIX}/etc
     12sharedstatedir, architecture-independent variable data, ${PREFIX}/com
     13localstatedir, variable data, ${PREFIX}/var
     14libdir, object code libraries, ${EXEC_PREFIX}/lib%s
     15includedir, header files, ${PREFIX}/include
     16oldincludedir, header files for non-GCC compilers, /usr/include
     17datarootdir, architecture-independent data root, ${PREFIX}/share
     18datadir, architecture-independent data, ${DATAROOTDIR}
     19infodir, GNU "info" documentation, ${DATAROOTDIR}/info
    2020localedir, locale-dependent data, ${DATAROOTDIR}/locale
    21 mandir, man documentation, ${DATAROOTDIR}/man
     21mandir, manual pages, ${DATAROOTDIR}/man
    2222docdir, documentation root, ${DATAROOTDIR}/doc/${PACKAGE}
    23 htmldir, html documentation, ${DOCDIR}
    24 dvidir, dvi documentation, ${DOCDIR}
    25 pdfdir, pdf documentation, ${DOCDIR}
    26 psdir, ps documentation, ${DOCDIR}
    27 '''.split('\n')if x]
     23htmldir, HTML documentation, ${DOCDIR}
     24dvidir, DVI documentation, ${DOCDIR}
     25pdfdir, PDF documentation, ${DOCDIR}
     26psdir, PostScript documentation, ${DOCDIR}
     27'''%Utils.lib64()
     28_options=[x.split(', ')for x in gnuopts.splitlines()if x]
    2829def configure(conf):
    2930        def get_param(varname,default):
     
    4647                                        complete=False
    4748        if not complete:
    48                 lst=[name for name,_,_ in _options if not env[name.upper()]]
     49                lst=[x for x,_,_ in _options if not env[x.upper()]]
    4950                raise conf.errors.WafError('Variable substitution failure %r'%lst)
    5051def options(opt):
    51         inst_dir=opt.add_option_group('Installation directories','By default, "waf install" will put the files in\
     52        inst_dir=opt.add_option_group('Installation prefix','By default, "waf install" will put the files in\
    5253 "/usr/local/bin", "/usr/local/lib" etc. An installation prefix other\
    5354 than "/usr/local" can be given using "--prefix", for example "--prefix=$HOME"')
     
    5758                        opt.parser.remove_option(k)
    5859                        inst_dir.add_option(option)
    59         inst_dir.add_option('--exec-prefix',help='installation prefix [Default: ${PREFIX}]',default='',dest='EXEC_PREFIX')
    60         dirs_options=opt.add_option_group('Pre-defined installation directories','')
     60        inst_dir.add_option('--exec-prefix',help='installation prefix for binaries [PREFIX]',default='',dest='EXEC_PREFIX')
     61        dirs_options=opt.add_option_group('Installation directories')
    6162        for name,help,default in _options:
    6263                option_name='--'+name
    6364                str_default=default
    64                 str_help='%s [Default: %s]'%(help,str_default)
     65                str_help='%s [%s]'%(help,re.sub(r'\$\{([^}]+)\}',r'\1',str_default))
    6566                dirs_options.add_option(option_name,help=str_help,default='',dest=name.upper())
Note: See TracChangeset for help on using the changeset viewer.