[74692] trunk/dports/python
singingwolfboy at macports.org
singingwolfboy at macports.org
Wed Dec 29 11:17:21 PST 2010
Revision: 74692
http://trac.macports.org/changeset/74692
Author: singingwolfboy at macports.org
Date: 2010-12-29 11:17:14 -0800 (Wed, 29 Dec 2010)
Log Message:
-----------
New port: py27-tkinter
Added Paths:
-----------
trunk/dports/python/py27-tkinter/
trunk/dports/python/py27-tkinter/Portfile
trunk/dports/python/py27-tkinter/files/
trunk/dports/python/py27-tkinter/files/setup.py
Added: trunk/dports/python/py27-tkinter/Portfile
===================================================================
--- trunk/dports/python/py27-tkinter/Portfile (rev 0)
+++ trunk/dports/python/py27-tkinter/Portfile 2010-12-29 19:17:14 UTC (rev 74692)
@@ -0,0 +1,43 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+PortGroup python27 1.0
+
+name py27-tkinter
+version 2.7.1
+categories python graphics
+platforms darwin
+maintainers singingwolfboy openmaintainer
+description Python bindings to the Tk widget set
+long_description ${description}
+
+homepage http://docs.python.org/library/tkinter.html
+master_sites http://www.python.org/ftp/python/${version}/ \
+ ftp://ftp.python.org/pub/python/${version}/
+distname Python-${version}
+dist_subdir python27
+checksums md5 aa27bc25725137ba155910bd8e5ddc4f \
+ sha1 fbe1894322ff91b80726e269c97454f4129fc2a3 \
+ rmd160 3ce59305f6cd3fb320a53771d0ea01ec0687005f
+use_bzip2 yes
+
+depends_lib-append port:tk
+
+worksrcdir ${worksrcdir}/Modules
+
+extract.post_args "| tar -xf - ${distname}/Modules/_tkinter.c \
+ ${distname}/Modules/tkinter.h \
+ ${distname}/Modules/tkappinit.c"
+post-extract {
+ file copy ${filespath}/setup.py ${worksrcpath}
+}
+
+configure {
+ reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
+ reinplace "s|__TK-VERSION__|8.5|g" ${worksrcpath}/setup.py
+}
+
+livecheck.type regex
+livecheck.url http://www.python.org/download/releases/
+livecheck.regex Python (2.7.\[0-9\]+)
Property changes on: trunk/dports/python/py27-tkinter/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: trunk/dports/python/py27-tkinter/files/setup.py
===================================================================
--- trunk/dports/python/py27-tkinter/files/setup.py (rev 0)
+++ trunk/dports/python/py27-tkinter/files/setup.py 2010-12-29 19:17:14 UTC (rev 74692)
@@ -0,0 +1,25 @@
+import os, string
+
+try:
+ import distutils
+ from distutils import sysconfig
+ from distutils.command.install import install
+ from distutils.core import setup, Extension
+except:
+ raise SystemExit, "Distutils problem"
+
+tkversion = "__TK-VERSION__"
+prefix = "__PREFIX__"
+inc_dirs = [prefix + "/include"]
+lib_dirs = [prefix + "/lib"]
+libs = ["tcl" + tkversion, "tk" + tkversion]
+
+setup(name = "Tkinter",
+ description = "Tk Extension to Python",
+
+ ext_modules = [Extension('_tkinter', ['_tkinter.c', 'tkappinit.c'],
+ define_macros=[('WITH_APPINIT', 1)],
+ include_dirs = inc_dirs,
+ libraries = libs,
+ library_dirs = lib_dirs)]
+ )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101229/5bc323a5/attachment-0001.html>
More information about the macports-changes
mailing list