Ticket #18561: Portfile

File Portfile, 1.5 KB (added by krunk7@…, 16 years ago)

Portfile

Line 
1PortSystem 1.0
2PortGroup python26 1.0
3
4name            py26-wxpython
5version         2.8.9.1
6categories      python graphics
7
8platforms       darwin
9
10maintainers     jameskyle@ucla.edu
11
12description     Python interface to the wxWindows cross platform GUI
13long_description        wxPython is a GUI toolkit for the Python programming \
14    language. It allows Python programmers to create \
15    programs with a robust, highly functional graphical \
16    user interface, simply and easily. It is implemented \
17    as a Python extension module (native code) that wraps \
18    the popular wxWindows cross platform GUI library, \
19    which is written in C++.
20
21homepage        http://www.wxpython.org/
22master_sites    sourceforge:wxpython
23distname        wxPython-src-${version}
24use_bzip2       yes
25checksums       md5 4ad9a64e05529097618c7e48fbb10a84 \
26    sha1 7359af790d58082330c867f5c10f51b6382d9a35 \
27    rmd160 2b193c867a028985f8ead4084a9c1f024a1d37c6
28#patchfiles             patch-config.py
29
30depends_lib     port:python26 \
31    port:wxWidgets
32
33worksrcdir      ${distname}/wxPython
34
35extract.post_args       "| tar -xf - ${worksrcdir} ${distname}/docs"
36
37build.env       CC="gcc-mp-4.3" UNICODE="1" WXPORT="mac" PATH="${python.prefix}/lib/wx/config:$env(PATH)"
38
39destroot.env    UNICODE="1" WXPORT="mac" PATH="${python.prefix}/lib/wx/config:$env(PATH)"
40
41post-destroot {
42  xinstall -d -m 755 ${destroot}${prefix}/share/doc/
43  file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
44  file copy ${worksrcpath}/samples \
45        ${destroot}${prefix}/share/doc/${name}/examples
46}
47
48livecheck.check regex
49livecheck.url   ${homepage}
50livecheck.regex wxPython (2\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+)