Ticket #47246: Portfile.diff

File Portfile.diff, 1.3 KB (added by howarth.at.macports@…, 8 years ago)

Portfile.diff to build the python2 and python3 sources from the 2.0.0 source bundle for the python 27, 34 and 35 variants

  • Portfile

    old new  
    55PortGroup python    1.0
    66
    77name                py-pmw
    8 version             1.3.3a
     8version             2.0.0
    99maintainers         nomaintainer
    1010platforms           darwin
    1111license             MIT
     
    1616
    1717homepage            http://pmw.sourceforge.net/
    1818master_sites        sourceforge:pmw
    19 distname            Pmw_[string map {. _} ${version}]
     19distname            Pmw-${version}
    2020
    21 checksums           rmd160  8646f857f20615671422d6275ed2b8126cc1d0ea \
    22                     sha256  46abf4f0ac3c51e3b65e350543e08bb92f4ac93bd47d23e3d072bc9d5f7a815b
     21patchfiles          pmw2.diff
     22patch.pre_args      -p1
     23
     24checksums           rmd160  2a76186192f13eb22c373b3e0e60ce65cba506fe \
     25                    sha256  2babb2855feaabeea1003c6908b61c9d39cff606d418685f0559952714c680bb
    2326
    2427supported_archs     noarch
    2528
    26 python.versions     27
     29python.versions     27 34 35
    2730
    28 worksrcdir          Pmw
     31post-patch {
     32        reinplace "s|format|fmt|g" ${worksrcpath}/Pmw/Pmw_2_0_0/demos/Counter.py
     33        system "cd ${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        }
    2935
    3036if {${name} ne ${subport}} {
    3137    depends_lib-append  port:py${python.version}-tkinter