1 | # -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python26 1.0 |
---|
5 | |
---|
6 | name py26-wxpython-devel |
---|
7 | version svn |
---|
8 | categories-append graphics |
---|
9 | maintainers jameskyle |
---|
10 | description Python interface to the wxWindows (leading edge development) |
---|
11 | long_description wxPython is a GUI toolkit for the Python programming \ |
---|
12 | language. It allows Python programmers to create \ |
---|
13 | programs with a robust, highly functional graphical \ |
---|
14 | user interface, simply and easily. It is implemented \ |
---|
15 | as a Python extension module (native code) that wraps \ |
---|
16 | the popular wxWindows cross platform GUI library, \ |
---|
17 | which is written in C++. |
---|
18 | homepage http://www.wxpython.org/ |
---|
19 | |
---|
20 | platforms darwin |
---|
21 | depends_lib port:python26 \ |
---|
22 | port:wxWidgets-devel |
---|
23 | |
---|
24 | fetch.type svn |
---|
25 | svn.url http://svn.wxwidgets.org/svn/wx/wxPython/trunk/ |
---|
26 | |
---|
27 | worksrcdir trunk |
---|
28 | |
---|
29 | use_configure no |
---|
30 | |
---|
31 | variant universal description {Builds osx_cocoa version} {} |
---|
32 | |
---|
33 | patchfiles patch-setup_py.diff patch-propgrid_wrap.diff |
---|
34 | |
---|
35 | build { |
---|
36 | if {[variant_isset universal]} { |
---|
37 | set bopts "WX_CONFIG=${prefix}/lib/wx-devel/bin/wx-config " |
---|
38 | append bopts "WXPORT=osx_cocoa " |
---|
39 | |
---|
40 | system "cd ${worksrcpath} && \ |
---|
41 | ${python.bin} setup.py build ${bopts}" |
---|
42 | } |
---|
43 | } |
---|
44 | |
---|
45 | destroot { |
---|
46 | if {[variant_isset universal]} { |
---|
47 | set bopts "--prefix=${python.prefix} --root=${destroot} " |
---|
48 | append bopts "--install-headers=${prefix}/include " |
---|
49 | append bopts "WX_CONFIG=${prefix}/lib/wx-devel/bin/wx-config " |
---|
50 | append bopts "WXPORT=osx_cocoa " |
---|
51 | |
---|
52 | system "cd ${worksrcpath} && \ |
---|
53 | ${python.bin} setup.py install ${bopts}" |
---|
54 | } |
---|
55 | } |
---|
56 | |
---|
57 | post-destroot { |
---|
58 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/ |
---|
59 | file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name} |
---|
60 | file copy ${worksrcpath}/samples \ |
---|
61 | ${destroot}${prefix}/share/doc/${name}/examples |
---|
62 | } |
---|
63 | |
---|
64 | livecheck.type regex |
---|
65 | livecheck.url ${homepage} |
---|
66 | livecheck.regex wxPython (2\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+) |
---|