1 | # $Id: Portfile 21141 2007-01-06 16:58:05Z jwa@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name py-wxpython |
---|
6 | version 2.8.0.1 |
---|
7 | categories python graphics |
---|
8 | platforms darwin |
---|
9 | maintainers mww@macports.org jwa@macports.org |
---|
10 | description Python interface to the wxWindows cross platform GUI |
---|
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 | master_sites sourceforge:wxpython |
---|
21 | distname wxPython-src-${version} |
---|
22 | use_bzip2 yes |
---|
23 | checksums sha1 917b690a1e39cb4919d086a184ae0fdbc0df8c99 |
---|
24 | patchfiles patch-config.py |
---|
25 | |
---|
26 | depends_lib port:python24 \ |
---|
27 | port:wxWidgets-devel |
---|
28 | |
---|
29 | worksrcdir ${distname}/wxPython |
---|
30 | |
---|
31 | extract.post_args "| tar -xf - ${worksrcdir} ${distname}/docs" |
---|
32 | |
---|
33 | use_configure no |
---|
34 | |
---|
35 | build.env WX_CONFIG="${prefix}/bin/wx-config" UNICODE="1" WXPORT="mac" |
---|
36 | build.cmd ${prefix}/bin/python2.4 setup.py |
---|
37 | build.target build |
---|
38 | |
---|
39 | destroot.cmd ${build.cmd} |
---|
40 | destroot.destdir --prefix=${prefix} --root=${destroot} |
---|
41 | |
---|
42 | post-destroot { |
---|
43 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/ |
---|
44 | file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name} |
---|
45 | file copy ${worksrcpath}/samples \ |
---|
46 | ${destroot}${prefix}/share/doc/${name}/examples |
---|
47 | } |
---|