# $Id: Portfile,v 1.3 2006/04/30 14:06:52 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-tkinter
version			2.4.3
categories		python graphics
platforms		darwin
maintainers		mww@opendarwin.org
description		Python bindings to the Tk widget set
long_description	${description}

homepage		http://www.python.org/doc/current/lib/module-Tkinter.html
master_sites	http://www.python.org/ftp/python/${version}/
distname		Python-${version}
dist_subdir		python24
checksums		sha1 d6b81e1aec0045b5acff99676f2abe303da1b384
use_bzip2		yes

depends_lib-append	port:tcl port:tk

worksrcdir		${worksrcdir}/Modules

extract.post_args	"| tar -xf - ${distname}/Modules/_tkinter.c \
				${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.4|g" ${worksrcpath}/setup.py
}

