categories python graphics
description Python interface to the wxWindows cross platform GUI
long_description wxPython is a GUI toolkit for the Python programming \
language. It allows Python programmers to create \
programs with a robust, highly functional graphical \
user interface, simply and easily. It is implemented \
as a Python extension module (native code) that wraps \
the popular wxWindows cross platform GUI library, \
homepage http://www.wxpython.org/
master_sites sourceforge:wxpython
distname wxPython-src-${version}
checksums md5 e3d89746af98b9279e4ff39a57f6dc63 \
sha1 a0d58d8b9606d04a35b9853da15eb7dfb08d5637 \
rmd160 93a9bd35b59e16674375b1431e24d47b58a824d2
#patchfiles patch-config.py
depends_lib port:python24 \
# wxWidgets is not 64-bit
worksrcdir ${distname}/wxPython
extract.post_args "| tar -xf - ${worksrcdir} ${distname}/docs"
build.env UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx-devel/bin:$env(PATH)"
build.cmd ${prefix}/bin/python2.4 setup.py
destroot.env UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx-devel/bin:$env(PATH)"
destroot.cmd ${build.cmd}
destroot.destdir --prefix=${prefix} --root=${destroot}
xinstall -d -m 755 ${destroot}${prefix}/share/doc/
file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
file copy ${worksrcpath}/samples \
${destroot}${prefix}/share/doc/${name}/examples
livecheck.url ${homepage}
livecheck.regex wxPython (2\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+)