Ticket #47246: Portfile

File Portfile, 1.4 KB (added by howarth.at.macports@…, 9 years ago)

Portfile for py-pmw2 package with python35 variant added

Line 
1# -*- 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
2# $Id: Portfile 126677 2014-10-13 17:01:12Z mf2k@macports.org $
3
4PortSystem          1.0
5PortGroup python    1.0
6
7name                py-pmw2
8version             2.0.0
9maintainers         nomaintainer
10platforms           darwin
11license             MIT
12
13description         high-level compound widget toolkit
14long_description    Pmw is a toolkit for building high-level compound widgets in Python using \
15                    the Tkinter module.
16
17homepage            http://pmw.sourceforge.net/
18master_sites        sourceforge:pmw
19distname            Pmw-${version}
20
21patchfiles          pmw2.diff
22patch.pre_args      -p1
23
24checksums           rmd160  2a76186192f13eb22c373b3e0e60ce65cba506fe \
25                    sha256  2babb2855feaabeea1003c6908b61c9d39cff606d418685f0559952714c680bb
26
27supported_archs     noarch
28
29python.versions     33 34 35
30
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        }
35
36if {${name} ne ${subport}} {
37    depends_lib-append  port:py${python.version}-tkinter
38}
39
40livecheck.type      regex
41livecheck.url       http://sourceforge.net/projects/pmw/files/
42livecheck.regex     Pmw.(\[0-9.\]\\.\[0-9.\]\\.\[0-9.\]).tar.gz