Ticket #12329: Portfile.12

File Portfile.12, 1.6 KB (added by yves@…, 17 years ago)

py25-wxpython -- not tested

Line 
1# $Id: Portfile 26561 2007-06-28 12:19:10Z jwa@macports.org $
2
3PortSystem 1.0
4
5name                    py25-wxpython
6version                 2.8.4.0
7categories              python graphics
8platforms               darwin
9maintainers             mww@macports.org jwa
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 0947c74762d1419f503d19b8b5fe4ac7c81b9cc6
24#patchfiles             patch-config.py
25
26depends_lib             port:python25 \
27    port:wxWidgets
28
29worksrcdir              ${distname}/wxPython
30
31extract.post_args       "| tar -xf - ${worksrcdir} ${distname}/docs"
32
33use_configure   no
34
35build.env               UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx-devel/bin:$env(PATH)"
36build.cmd               ${prefix}/bin/python2.5 setup.py
37build.target    build
38
39destroot.env    UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx-devel/bin:$env(PATH)"
40destroot.cmd    ${build.cmd}
41destroot.destdir        --prefix=${prefix} --root=${destroot}
42
43post-destroot {
44    xinstall -d -m 755 ${destroot}${prefix}/share/doc/
45    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
46    file copy ${worksrcpath}/samples \
47        ${destroot}${prefix}/share/doc/${name}/examples
48}
49
50livecheck.check regex
51livecheck.url   ${homepage}
52livecheck.regex wxPython (2\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+)