Ticket #57927: waf.diff

File waf.diff, 1.6 KB (added by ryandesign (Ryan Carsten Schmidt), 4 years ago)

proposal 1

  • _resources/port1.0/group/waf-1.0.tcl

     
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22
     3# If you need to change the version of python that waf uses, override this.
     4options waf.python_branch
     5default waf.python_branch   2.7
     6
     7# You should not need to override this but you can use it if you need to
     8# declare dependencies on python modules.
     9options waf.python_version
     10default waf.python_version  {[string map {. {}} ${waf.python_branch}]}
     11
     12# You should not need to override this but you can use it if you need to
     13# run the same python executable that waf uses.
    314options waf.python
    4 default waf.python {${prefix}/bin/python2.7}
     15default waf.python {${prefix}/bin/python${waf.python_branch}}
    516
    6 depends_build-append    port:python27
    7 
    8 configure.cmd           ${waf.python} ./waf configure
     17default configure.cmd   {${waf.python} ./waf configure}
    918configure.post_args-append  --nocache
    1019
    1120configure.universal_args-delete --disable-dependency-tracking
    1221
    13 build.cmd               ${waf.python} ./waf
     22default build.cmd       {${waf.python} ./waf}
    1423build.target            build
    1524build.post_args-append  --verbose
    1625
    1726destroot.destdir        --destdir=${destroot}
     27
     28port::register_callback waf::add_dependencies
     29
     30namespace eval waf {}
     31
     32proc waf::add_dependencies {} {
     33    depends_build-append \
     34                        port:python[option waf.python_version]
     35}