Ticket #42303: xmms2-waf.diff

File xmms2-waf.diff, 2.3 KB (added by raimue (Rainer Müller), 10 years ago)
  • Users/raimue/src/macports/trunk/dports/audio/xmms2/Portfile

     
    22# $Id$
    33
    44PortSystem              1.0
     5PortGroup               waf 1.0
    56
    67name                    xmms2
    78version                 0.8DrO_o
     
    2122checksums               rmd160  35513d7eddd5f79146cb8aa5c6c0bb35369619ec \
    2223                        sha256  c77e41e7bd5788889d5a2f78331ca8c748b8721bd2e59f36c36ad4c7cae8694a
    2324
    24 depends_build           port:python26 \
    25                         port:pkgconfig
     25depends_build-append    port:pkgconfig
    2626
    2727depends_lib             path:lib/pkgconfig/glib-2.0.pc:glib2 \
    2828                        port:gettext \
     
    5454patchfiles              patch-ffmpeg-2.0.diff \
    5555                        patch-nellymoser.diff
    5656
    57 configure.python        ${prefix}/bin/python2.6
    58 
    5957post-patch {
    6058    foreach f [glob -directory ${worksrcpath} waf waf-light wafadmin/*.py wafadmin/*/*.py waftools/ruby.py] {
    61         reinplace -locale C "s|^#! */usr/bin/env python\$|#!${configure.python}|" ${f}
     59        reinplace -locale C "s|^#! */usr/bin/env python\$|#!${waf.python}|" ${f}
    6260    }
    6361}
    6462
    65 configure.cmd           ./waf configure
    6663configure.args          --conf-prefix=${prefix} \
    6764                        --nocache \
    6865                        --without-optionals python
    6966
    70 configure.universal_args-delete --disable-dependency-tracking
    71 
    72 build.cmd               ./waf
    73 build.target            build
    74 
    75 destroot.destdir        --destdir=${destroot}
    76 
    7767variant cpp description {C++ development support} {
    7868    depends_lib-append port:boost
    7969}
     
    120110variant python26 description {Support for Python 2.6} {
    121111    depends_lib-append      port:py26-pyrex
    122112    configure.args-delete   --without-optionals python
     113    configure.python        ${prefix}/bin/python2.6
    123114}
    124115
    125 default_variants    +python26
     116variant python27 description {Support for Python 2.7} {
     117    depends_lib-append      port:py27-pyrex
     118    configure.args-delete   --without-optionals python
     119    configure.python        ${prefix}/bin/python2.7
     120}
    126121
     122default_variants    +python27
     123
    127124livecheck.regex         /${name}-(.+)${extract.suffix}