Changeset 146819


Ignore:
Timestamp:
Mar 18, 2016, 2:13:40 PM (4 years ago)
Author:
khindenburg@…
Message:

pw-pmw: move post-patch inside subport if; make demos/tests All.py executable and remove dos eol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-pmw/Portfile

    r146816 r146819  
    77name                py-pmw
    88version             2.0.0
     9revision            1
    910maintainers         nomaintainer
    1011platforms           darwin
     
    2930python.versions     27 34 35
    3031
    31 post-patch {
    32     reinplace "s|format|fmt|g" ${worksrcpath}/Pmw/Pmw_2_0_0/demos/Counter.py
    33     system  -W ${worksrcpath} "/usr/bin/find . -type f -name '*.py' -print0 | xargs -0 perl -pi -e 's|/usr/bin/env python|${prefix}/bin/python${python.branch}|g'"
    34 }
    35 
    3632if {${name} ne ${subport}} {
    3733    depends_lib-append  port:py${python.version}-tkinter
     34
     35    post-patch {
     36        reinplace "s|format|fmt|g" ${worksrcpath}/Pmw/Pmw_2_0_0/demos/Counter.py
     37        system  -W ${worksrcpath} "/usr/bin/find . -type f -name '*.py' -print0 | xargs -0 perl -pi -e 's|/usr/bin/env python|${prefix}/bin/python${python.branch}|g'"
     38    }
     39
     40    post-destroot {
     41        file attributes ${destroot}${python.pkgd}/Pmw/Pmw_2_0_0/demos/All.py -permissions +x
     42        file attributes ${destroot}${python.pkgd}/Pmw/Pmw_2_0_0/tests/All.py -permissions +x
     43        reinplace "s|\r||g" \
     44            ${destroot}${python.pkgd}/Pmw/Pmw_2_0_0/demos/All.py \
     45            ${destroot}${python.pkgd}/Pmw/Pmw_2_0_0/tests/All.py
     46    }
    3847
    3948    livecheck.type      none
Note: See TracChangeset for help on using the changeset viewer.