Changeset 904702d for waflib/Tools/gnu_dirs.py
- Timestamp:
- Mar 14, 2015, 6:06:10 PM (10 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waflib/Tools/gnu_dirs.py
r5525507 r904702d 3 3 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file 4 4 5 import os 5 import os,re 6 6 from waflib import Utils,Options,Context 7 _options=[x.split(', ')for x in'''8 bindir, user executables, ${EXEC_PREFIX}/bin9 sbindir, system admin executables, ${EXEC_PREFIX}/sbin10 libexecdir, program executables, ${EXEC_PREFIX}/libexec11 sysconfdir, read-only single-machine data, ${PREFIX}/etc12 sharedstatedir, modifiable architecture-independentdata, ${PREFIX}/com13 localstatedir, modifiable single-machine data, ${PREFIX}/var14 libdir, object code libraries, ${EXEC_PREFIX}/lib 15 includedir, Cheader files, ${PREFIX}/include16 oldincludedir, C header files for non-gcc, /usr/include17 datarootdir, read-only arch.-independent data root, ${PREFIX}/share18 datadir, read-onlyarchitecture-independent data, ${DATAROOTDIR}19 infodir, infodocumentation, ${DATAROOTDIR}/info7 gnuopts=''' 8 bindir, user commands, ${EXEC_PREFIX}/bin 9 sbindir, system binaries, ${EXEC_PREFIX}/sbin 10 libexecdir, program-specific binaries, ${EXEC_PREFIX}/libexec 11 sysconfdir, host-specific configuration, ${PREFIX}/etc 12 sharedstatedir, architecture-independent variable data, ${PREFIX}/com 13 localstatedir, variable data, ${PREFIX}/var 14 libdir, object code libraries, ${EXEC_PREFIX}/lib%s 15 includedir, header files, ${PREFIX}/include 16 oldincludedir, header files for non-GCC compilers, /usr/include 17 datarootdir, architecture-independent data root, ${PREFIX}/share 18 datadir, architecture-independent data, ${DATAROOTDIR} 19 infodir, GNU "info" documentation, ${DATAROOTDIR}/info 20 20 localedir, locale-dependent data, ${DATAROOTDIR}/locale 21 mandir, man documentation, ${DATAROOTDIR}/man21 mandir, manual pages, ${DATAROOTDIR}/man 22 22 docdir, 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] 23 htmldir, HTML documentation, ${DOCDIR} 24 dvidir, DVI documentation, ${DOCDIR} 25 pdfdir, PDF documentation, ${DOCDIR} 26 psdir, PostScript documentation, ${DOCDIR} 27 '''%Utils.lib64() 28 _options=[x.split(', ')for x in gnuopts.splitlines()if x] 28 29 def configure(conf): 29 30 def get_param(varname,default): … … 46 47 complete=False 47 48 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()]] 49 50 raise conf.errors.WafError('Variable substitution failure %r'%lst) 50 51 def 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\ 52 53 "/usr/local/bin", "/usr/local/lib" etc. An installation prefix other\ 53 54 than "/usr/local" can be given using "--prefix", for example "--prefix=$HOME"') … … 57 58 opt.parser.remove_option(k) 58 59 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') 61 62 for name,help,default in _options: 62 63 option_name='--'+name 63 64 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)) 65 66 dirs_options.add_option(option_name,help=str_help,default='',dest=name.upper())
Note: See TracChangeset
for help on using the changeset viewer.