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 74552 2010-12-21 19:11:25Z jmr@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python27 1.0 |
---|
6 | |
---|
7 | name py27-tkinter |
---|
8 | version 2.7.1 |
---|
9 | categories python graphics |
---|
10 | platforms darwin |
---|
11 | maintainers singingwolfboy openmaintainer |
---|
12 | description Python bindings to the Tk widget set |
---|
13 | long_description ${description} |
---|
14 | |
---|
15 | homepage http://docs.python.org/library/tkinter.html |
---|
16 | master_sites http://www.python.org/ftp/python/${version}/ \ |
---|
17 | ftp://ftp.python.org/pub/python/${version}/ |
---|
18 | distname Python-${version} |
---|
19 | dist_subdir python27 |
---|
20 | checksums md5 aa27bc25725137ba155910bd8e5ddc4f \ |
---|
21 | sha1 fbe1894322ff91b80726e269c97454f4129fc2a3 \ |
---|
22 | rmd160 3ce59305f6cd3fb320a53771d0ea01ec0687005f |
---|
23 | use_bzip2 yes |
---|
24 | |
---|
25 | depends_lib-append port:tk |
---|
26 | |
---|
27 | worksrcdir ${worksrcdir}/Modules |
---|
28 | |
---|
29 | extract.post_args "| tar -xf - ${distname}/Modules/_tkinter.c \ |
---|
30 | ${distname}/Modules/tkinter.h \ |
---|
31 | ${distname}/Modules/tkappinit.c" |
---|
32 | post-extract { |
---|
33 | file copy ${filespath}/setup.py ${worksrcpath} |
---|
34 | } |
---|
35 | |
---|
36 | configure { |
---|
37 | reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py |
---|
38 | reinplace "s|__TK-VERSION__|8.5|g" ${worksrcpath}/setup.py |
---|
39 | } |
---|
40 | |
---|
41 | livecheck.type regex |
---|
42 | livecheck.url http://www.python.org/download/releases/ |
---|
43 | livecheck.regex Python (2.7.\[0-9\]+) |
---|