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 | |
---|
19 | homepage http://www.wxpython.org/ |
---|
20 | |
---|
21 | platforms darwin |
---|
22 | depends_lib port:python26 \ |
---|
23 | port:wxWidgets-devel |
---|
24 | |
---|
25 | fetch.type svn |
---|
26 | svn.url http://svn.wxwidgets.org/svn/wx/wxPython/trunk/ |
---|
27 | |
---|
28 | worksrcdir trunk |
---|
29 | |
---|
30 | use_configure no |
---|
31 | |
---|
32 | patchfiles patch-setup_py.diff patch-propgrid_wrap.diff \ |
---|
33 | patch-config_py.diff |
---|
34 | |
---|
35 | build.cmd ${python.bin} setup.py |
---|
36 | build.target build |
---|
37 | build.args "WX_CONFIG=${prefix}/lib/wx-devel/bin/wx-config \ |
---|
38 | WXPORT=osx_carbon" |
---|
39 | |
---|
40 | destroot.cmd ${python.bin} setup.py |
---|
41 | destroot.target install |
---|
42 | destroot.args "--prefix=${python.prefix} --root=${destroot} \ |
---|
43 | WXHEADERS=${prefix}/include/wx-devel \ |
---|
44 | WX_CONFIG=${prefix}/lib/wx-devel/bin/wx-config \ |
---|
45 | WXPORT=osx_carbon" |
---|
46 | |
---|
47 | variant universal description {Builds osx_cocoa version} { |
---|
48 | |
---|
49 | build.args "WX_CONFIG=${prefix}/lib/wx-devel/bin/wx-config \ |
---|
50 | WXPORT=osx_cocoa" |
---|
51 | |
---|
52 | destroot.args "--prefix=${python.prefix} --root=${destroot} \ |
---|
53 | WXHEADERS=${prefix}/include/wx-devel \ |
---|
54 | WX_CONFIG=${prefix}/lib/wx-devel/bin/wx-config \ |
---|
55 | WXPORT=osx_cocoa" |
---|
56 | } |
---|
57 | |
---|
58 | post-destroot { |
---|
59 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/ |
---|
60 | file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name} |
---|
61 | file copy ${worksrcpath}/samples \ |
---|
62 | ${destroot}${prefix}/share/doc/${name}/examples |
---|
63 | } |
---|