| 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 openmaintener |
|---|
| 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 | variant wx29 { |
|---|
| 36 | depends_lib-delete port:wxWidgets-devel |
|---|
| 37 | depends_lib-append port:wxWidgets-2.9 |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | build.cmd ${python.bin} setup.py |
|---|
| 41 | build.target build |
|---|
| 42 | build.args "WX_CONFIG=${prefix}/lib/wx-devel/bin/wx-config \ |
|---|
| 43 | WXPORT=osx_carbon" |
|---|
| 44 | |
|---|
| 45 | destroot.cmd ${python.bin} setup.py |
|---|
| 46 | destroot.target install |
|---|
| 47 | destroot.args "--prefix=${python.prefix} --root=${destroot} \ |
|---|
| 48 | WXHEADERS=${prefix}/include/wx-devel \ |
|---|
| 49 | WX_CONFIG=${prefix}/lib/wx-devel/bin/wx-config \ |
|---|
| 50 | WXPORT=osx_carbon" |
|---|
| 51 | |
|---|
| 52 | variant cocoa description {Builds osx_cocoa version} { |
|---|
| 53 | |
|---|
| 54 | build.args "WX_CONFIG=${prefix}/lib/wx-devel/bin/wx-config \ |
|---|
| 55 | WXPORT=osx_cocoa" |
|---|
| 56 | |
|---|
| 57 | destroot.args "--prefix=${python.prefix} --root=${destroot} \ |
|---|
| 58 | WXHEADERS=${prefix}/include/wx-devel \ |
|---|
| 59 | WX_CONFIG=${prefix}/lib/wx-devel/bin/wx-config \ |
|---|
| 60 | WXPORT=osx_cocoa" |
|---|
| 61 | } |
|---|
| 62 | |
|---|
| 63 | variant universal requires cocoa {} |
|---|
| 64 | |
|---|
| 65 | post-destroot { |
|---|
| 66 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/ |
|---|
| 67 | file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name} |
|---|
| 68 | file copy ${worksrcpath}/samples \ |
|---|
| 69 | ${destroot}${prefix}/share/doc/${name}/examples |
|---|
| 70 | } |
|---|