Ticket #12390: Portfile

File Portfile, 1.7 KB (added by mdroe@…, 17 years ago)
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
7revision                0
8categories              python graphics
9platforms               darwin
10maintainers             mww@macports.org jwa
11description             Python interface to the wxWindows cross platform GUI
12long_description        wxPython is a GUI toolkit for the Python programming \
13    language. It allows Python programmers to create \
14    programs with a robust, highly functional graphical \
15    user interface, simply and easily. It is implemented \
16    as a Python extension module (native code) that wraps \
17    the popular wxWindows cross platform GUI library, \
18    which is written in C++.
19
20homepage                http://www.wxpython.org/
21master_sites            sourceforge:wxpython
22distname                wxPython-src-${version}
23use_bzip2               yes
24checksums               sha1 0947c74762d1419f503d19b8b5fe4ac7c81b9cc6
25#patchfiles             patch-config.py
26
27depends_lib             port:python25 \
28                        port:wxWidgets
29
30worksrcdir              ${distname}/wxPython
31
32extract.post_args       "| tar -xf - ${worksrcdir} ${distname}/docs"
33
34use_configure   no
35
36build.env               UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx-devel/bin:$env(PATH)"
37build.cmd               ${prefix}/bin/python2.5 setup.py
38build.target    build
39
40destroot.env    UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx-devel/bin:$env(PATH)"
41destroot.cmd    ${build.cmd}
42destroot.destdir        --prefix=${prefix} --root=${destroot}
43
44post-destroot {
45    xinstall -d -m 755 ${destroot}${prefix}/share/doc/
46    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
47    file copy ${worksrcpath}/samples \
48        ${destroot}${prefix}/share/doc/${name}/examples
49}
50
51livecheck.check regex
52livecheck.url   ${homepage}
53livecheck.regex wxPython (2\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+)