Ticket #33590: Portfile

File Portfile, 1.7 KB (added by neurodroid (Christoph Schmidt-Hieber), 13 years ago)

py26-wxpython-devel Portfile

Line 
1# $Id$
2
3PortSystem 1.0
4PortGroup       python26 1.0
5
6name            py26-wxpython-devel
7version         2.9.3.1
8
9categories      python graphics
10platforms       darwin
11maintainers     gmx.de:christsc
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     11f5a423c05c43b4ff8c9f11f1986f04 \
26                    sha1    0202f64e1e99fb69d22d7be0d38cf7dcf3d80d79 \
27                    rmd160  cd19b1d07d39c7918c72cf124f4f5cd48836d781
28
29depends_lib     port:wxWidgets-devel
30
31worksrcdir      ${distname}/wxPython
32
33extract.post_args       "| tar -xf - ${worksrcdir} ${distname}/docs"
34
35universal_variant       no
36
37build.env       UNICODE="1" WXPORT="osx_cocoa" PATH="${prefix}/lib/wx/config:$env(PATH)"
38
39destroot.env    UNICODE="1" WXPORT="osx_cocoa" PATH="${prefix}/lib/wx/config:$env(PATH)"
40
41if {${os.platform} == "darwin" && ${os.major} >= 10} {
42    patchfiles          patch-config.py.diff
43}
44
45post-destroot {
46    xinstall -d -m 755 ${destroot}${prefix}/share/doc/
47    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
48    file copy ${worksrcpath}/samples \
49        ${destroot}${prefix}/share/doc/${name}/examples
50}
51
52livecheck.type  regex
53livecheck.url   ${homepage}
54livecheck.regex wxPython(?: | \\(classic\\) )(2\\.\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)