Ticket #27768: Portfile

File Portfile, 1.6 KB (added by singingwolfboy@…, 13 years ago)

py27-tkinter Portfile

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