1 | # $Id: Portfile 73275 2010-11-08 21:04:38Z mww@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python27 1.0 |
---|
5 | |
---|
6 | name py27-wxpython-devel |
---|
7 | version 2.9.1.1 |
---|
8 | |
---|
9 | categories python graphics |
---|
10 | platforms darwin |
---|
11 | maintainers jwa |
---|
12 | description Python interface to the wxWindows cross platform GUI |
---|
13 | long_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 | |
---|
21 | homepage http://www.wxpython.org/ |
---|
22 | master_sites sourceforge:wxpython |
---|
23 | distname wxPython-src-${version} |
---|
24 | use_bzip2 yes |
---|
25 | checksums md5 f7ef8d0f68b514e17da40f957f48ca4e \ |
---|
26 | sha1 886196021bb7712ddf0f2a368137fde26e6e7823 \ |
---|
27 | rmd160 921fdd48c3a0c6fca86073a0588c357231d6fd5c |
---|
28 | depends_build port:python27 |
---|
29 | depends_lib port:wxWidgets-devel |
---|
30 | |
---|
31 | worksrcdir ${distname}/wxPython |
---|
32 | |
---|
33 | extract.post_args "| tar -xf - ${worksrcdir} ${distname}/docs" |
---|
34 | |
---|
35 | universal_variant no |
---|
36 | |
---|
37 | build.env UNICODE="1" WXPORT="osx_cocoa" PATH="${prefix}/lib/wx/config:$env(PATH)" |
---|
38 | build.cmd ${python.bin} setup.py --no-user-cfg UNICODE=1 WXPORT=osx_cocoa |
---|
39 | |
---|
40 | destroot.env UNICODE="1" WXPORT="osx_cocoa" PATH="${prefix}/lib/wx/config:$env(PATH)" |
---|
41 | destroot.cmd ${python.bin} setup.py --no-user-cfg UNICODE=1 WXPORT=osx_cocoa |
---|
42 | |
---|
43 | post-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 | |
---|
50 | livecheck.type regex |
---|
51 | livecheck.url ${homepage} |
---|
52 | livecheck.regex wxPython (2\\.\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+) |
---|