Ticket #27955: Portfile

File Portfile, 1.8 KB (added by stevecheckoway (Stephen Checkoway), 14 years ago)
Line 
1# $Id: Portfile 73275 2010-11-08 21:04:38Z mww@macports.org $
2
3PortSystem 1.0
4PortGroup       python27 1.0
5
6name            py27-wxpython-devel
7version         2.9.1.1
8
9categories      python graphics
10platforms       darwin
11maintainers     jwa
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     f7ef8d0f68b514e17da40f957f48ca4e \
26                    sha1    886196021bb7712ddf0f2a368137fde26e6e7823 \
27                    rmd160  921fdd48c3a0c6fca86073a0588c357231d6fd5c
28depends_build   port:python27
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)"
38build.cmd       ${python.bin} setup.py --no-user-cfg UNICODE=1 WXPORT=osx_cocoa
39
40destroot.env    UNICODE="1" WXPORT="osx_cocoa" PATH="${prefix}/lib/wx/config:$env(PATH)"
41destroot.cmd    ${python.bin} setup.py --no-user-cfg UNICODE=1 WXPORT=osx_cocoa
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.type  regex
51livecheck.url   ${homepage}
52livecheck.regex wxPython (2\\.\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)