Ticket #11269: py24-wxpython_Portfile

File py24-wxpython_Portfile, 1.4 KB (added by mdickens@…, 18 years ago)

Portfile for py24-wxpython

Line 
1# $Id: Portfile 21141 2007-01-06 16:58:05Z jwa@macports.org $
2
3PortSystem 1.0
4
5name                    py-wxpython
6version                 2.8.0.1
7categories              python graphics
8platforms               darwin
9maintainers             mww@macports.org jwa@macports.org
10description             Python interface to the wxWindows cross platform GUI
11long_description        wxPython is a GUI toolkit for the Python programming \
12                                language. It allows Python programmers to create \
13                                programs with a robust, highly functional graphical \
14                                user interface, simply and easily. It is implemented \
15                                as a Python extension module (native code) that wraps \
16                                the popular wxWindows cross platform GUI library, \
17                                which is written in C++.
18
19homepage                http://www.wxpython.org/
20master_sites    sourceforge:wxpython
21distname                wxPython-src-${version}
22use_bzip2               yes
23checksums               sha1 917b690a1e39cb4919d086a184ae0fdbc0df8c99
24patchfiles              patch-config.py
25
26depends_lib             port:python24 \
27                        port:wxWidgets-devel
28
29worksrcdir              ${distname}/wxPython
30
31extract.post_args       "| tar -xf - ${worksrcdir} ${distname}/docs"
32
33use_configure   no
34
35build.env               WX_CONFIG="${prefix}/bin/wx-config" UNICODE="1" WXPORT="mac"
36build.cmd               ${prefix}/bin/python2.4 setup.py
37build.target    build
38
39destroot.cmd    ${build.cmd}
40destroot.destdir        --prefix=${prefix} --root=${destroot}
41
42post-destroot {
43        xinstall -d -m 755 ${destroot}${prefix}/share/doc/
44        file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
45        file copy ${worksrcpath}/samples \
46                ${destroot}${prefix}/share/doc/${name}/examples
47}