Ticket #47246: Portfile.diff
File Portfile.diff, 1.3 KB (added by howarth.at.macports@…, 9 years ago) |
---|
-
Portfile
old new 5 5 PortGroup python 1.0 6 6 7 7 name py-pmw 8 version 1.3.3a8 version 2.0.0 9 9 maintainers nomaintainer 10 10 platforms darwin 11 11 license MIT … … 16 16 17 17 homepage http://pmw.sourceforge.net/ 18 18 master_sites sourceforge:pmw 19 distname Pmw _[string map {. _} ${version}]19 distname Pmw-${version} 20 20 21 checksums rmd160 8646f857f20615671422d6275ed2b8126cc1d0ea \ 22 sha256 46abf4f0ac3c51e3b65e350543e08bb92f4ac93bd47d23e3d072bc9d5f7a815b 21 patchfiles pmw2.diff 22 patch.pre_args -p1 23 24 checksums rmd160 2a76186192f13eb22c373b3e0e60ce65cba506fe \ 25 sha256 2babb2855feaabeea1003c6908b61c9d39cff606d418685f0559952714c680bb 23 26 24 27 supported_archs noarch 25 28 26 python.versions 27 29 python.versions 27 34 35 27 30 28 worksrcdir Pmw 31 post-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 } 29 35 30 36 if {${name} ne ${subport}} { 31 37 depends_lib-append port:py${python.version}-tkinter