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