Revision: 81300 http://trac.macports.org/changeset/81300 Author: jmr@macports.org Date: 2011-07-28 22:30:34 -0700 (Thu, 28 Jul 2011) Log Message: ----------- py-tkinter: use unified python group just for the stub Modified Paths: -------------- trunk/dports/python/py-tkinter/Portfile Modified: trunk/dports/python/py-tkinter/Portfile =================================================================== --- trunk/dports/python/py-tkinter/Portfile 2011-07-29 05:01:38 UTC (rev 81299) +++ trunk/dports/python/py-tkinter/Portfile 2011-07-29 05:30:34 UTC (rev 81300) @@ -1,7 +1,7 @@ # $Id$ PortSystem 1.0 -PortGroup python24 1.0 +PortGroup python 1.0 name py-tkinter version 2.4.6 @@ -12,26 +12,31 @@ description Python bindings to the Tk widget set long_description ${description} -homepage http://www.python.org/doc/current/lib/module-Tkinter.html +homepage http://docs.python.org/release/2.4.4/lib/module-Tkinter.html master_sites http://www.python.org/ftp/python/${version}/ distname Python-${version} dist_subdir python24 -checksums sha1 cb1972a554a458f6a26d3e047b359251865d7c96 +checksums sha1 cb1972a554a458f6a26d3e047b359251865d7c96 \ + rmd160 0687989193dec2ac108142759281be7ddcf7f31e use_bzip2 yes -depends_lib-append port:tk +python.versions 24 -worksrcdir ${worksrcdir}/Modules +subport py24-tkinter { + depends_lib-append port:tk -extract.post_args "| tar -xf - ${distname}/Modules/_tkinter.c \ - ${distname}/Modules/tkappinit.c" -post-extract { - file copy ${filespath}/setup.py ${worksrcpath} -} + worksrcdir ${worksrcdir}/Modules -configure { - reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py - reinplace "s|__TK-VERSION__|8.5|g" ${worksrcpath}/setup.py + 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.5|g" ${worksrcpath}/setup.py + } } livecheck.type regex